Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Ruby 3.0 #700

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,6 @@ api = "0.7"
[metadata.default-versions]
ruby = "3.1.*"

[[metadata.dependencies]]
checksum = "sha256:0de6dcaca9e8dd1efdcf07e400eab8a7a8f19b5b5bdf206cd8da16b59f93752c"
cpe = "cpe:2.3:a:ruby-lang:ruby:3.0.5:*:*:*:*:*:*:*"
id = "ruby"
licenses = ["BSD-2-Clause", "BSD-2-Clause-NetBSD", "BSD-3-Clause", "BSD-3-Clause-No-Nuclear-License-2014", "Bison-exception-2.2", "FSFUL", "GPL-2.0-only", "GPL-2.0-or-later", "MIT", "MIT-0", "Ruby", "deprecated_GPL-2.0", "deprecated_GPL-2.0+"]
name = "Ruby"
purl = "pkg:generic/ruby@3.0.5?checksum=9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776&download_url=https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz"
source = "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz"
source-checksum = "sha256:9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776"
stacks = ["io.buildpacks.stacks.bionic"]
uri = "https://artifacts.paketo.io/ruby/ruby_3.0.5_linux_x64_bionic_0de6dcac.tgz"
version = "3.0.5"

[[metadata.dependencies]]
checksum = "sha256:f2dbef7e3cd197b81de4f1a9493c16a51ab9dc62b1bbbcd52f48ce8b18c996a6"
cpe = "cpe:2.3:a:ruby-lang:ruby:3.0.6:*:*:*:*:*:*:*"
id = "ruby"
licenses = ["BSD-2-Clause", "BSD-2-Clause-NetBSD", "BSD-3-Clause", "BSD-3-Clause-No-Nuclear-License-2014", "Bison-exception-2.2", "FSFUL", "GPL-2.0-only", "GPL-2.0-or-later", "MIT", "MIT-0", "Ruby", "deprecated_GPL-2.0", "deprecated_GPL-2.0+"]
name = "Ruby"
purl = "pkg:generic/ruby@3.0.6?checksum=6e6cbd490030d7910c0ff20edefab4294dfcd1046f0f8f47f78b597987ac683e&download_url=https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.6.tar.gz"
source = "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.6.tar.gz"
source-checksum = "sha256:6e6cbd490030d7910c0ff20edefab4294dfcd1046f0f8f47f78b597987ac683e"
stacks = ["io.buildpacks.stacks.bionic"]
uri = "https://artifacts.paketo.io/ruby/ruby_3.0.6_linux_x64_bionic_f2dbef7e.tgz"
version = "3.0.6"

[[metadata.dependencies]]
checksum = "sha256:a9c084d0785d047f9b2394cccfb16acd326654c74f201abd6d220eef386addca"
cpe = "cpe:2.3:a:ruby-lang:ruby:3.1.3:*:*:*:*:*:*:*"
Expand Down Expand Up @@ -174,11 +148,6 @@ api = "0.7"
uri = "https://artifacts.paketo.io/ruby/ruby_3.3.0_linux_x64_bionic_70d46d54.tgz"
version = "3.3.0"

[[metadata.dependency-constraints]]
constraint = "3.0.*"
id = "ruby"
patches = 2

[[metadata.dependency-constraints]]
constraint = "3.1.*"
id = "ruby"
Expand Down
35 changes: 0 additions & 35 deletions integration/simple_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,41 +78,6 @@ func testSimpleApp(t *testing.T, context spec.G, it spec.S) {
Eventually(container).Should(Serve(MatchRegexp(`Hello from Ruby 3\.1\.\d+`)).OnPort(8080))
})

// This test is not currently applicable on jammy because currently Jammy support
// only applies to one version of Ruby (version 3.1 and above)
if builder.LocalInfo.Stack.ID != "io.buildpacks.stacks.jammy" {
context("using an older version of Ruby", func() {
it("pack builds and runs the app successfully", func() {
var err error
var logs fmt.Stringer

image, logs, err = pack.WithNoColor().Build.
WithPullPolicy("never").
WithBuildpacks(
settings.Buildpacks.MRI.Online,
settings.Buildpacks.BuildPlan.Online,
).
WithEnv(map[string]string{
"BP_MRI_VERSION": "3.0.*",
"BP_LOG_LEVEL": "DEBUG",
}).
Execute(name, source)
Expect(err).ToNot(HaveOccurred(), logs.String)

container, err = docker.Container.Run.
WithCommand("ruby run.rb").
WithEnv(map[string]string{"PORT": "8080"}).
WithPublish("8080").
WithPublishAll().
Execute(image.ID)
Expect(err).NotTo(HaveOccurred())

Eventually(container).Should(BeAvailable(), logs.String())
Eventually(container).Should(Serve(MatchRegexp(`Hello from Ruby 3\.0\.\d+`)).OnPort(8080))
})
})
}

context("validating SBOM", func() {
var (
container2 occam.Container
Expand Down
Loading