Skip to content

Update Ruby docs sample to latest Ruby 3.4 version #1563

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion appengine/flexible/hello_world/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ gem "sinatra"
gem "webrick", "~> 1.8"

# [END gae_flex_quickstart_dependencies]
ruby "~>3.2"
ruby "~>3.4"
group :test do
gem "rack-test"
gem "rspec"
gem "rspec_junit_formatter"
end

gem "puma", "~> 6.6"
gem "rackup", "~> 2.2"
65 changes: 41 additions & 24 deletions appengine/flexible/hello_world/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,50 +1,67 @@
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.5.0)
mustermann (3.0.0)
base64 (0.2.0)
diff-lcs (1.6.1)
logger (1.7.0)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
rack (2.2.8.1)
rack-protection (3.1.0)
rack (~> 2.2, >= 2.2.4)
rack-test (2.1.0)
nio4r (2.7.4)
puma (6.6.0)
nio4r (~> 2.0)
rack (3.1.13)
rack-protection (4.1.1)
base64 (>= 0.1.0)
logger (>= 1.6.0)
rack (>= 3.0.0, < 4)
rack-session (2.1.0)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rackup (2.2.1)
rack (>= 3)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.3)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
ruby2_keywords (0.0.5)
sinatra (3.1.0)
sinatra (4.1.1)
logger (>= 1.6.0)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.1.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.1.1)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.2.0)
webrick (1.8.1)
tilt (2.6.0)
webrick (1.9.1)

PLATFORMS
ruby


DEPENDENCIES
puma (~> 6.6)
rack-test
rackup (~> 2.2)
rspec
rspec_junit_formatter
sinatra
webrick (~> 1.8)

RUBY VERSION
ruby 3.2.2p53
ruby 3.4.2

BUNDLED WITH
2.4.19
2.6.6
3 changes: 3 additions & 0 deletions appengine/standard-hello_world/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ group :test do
gem "rspec"
gem "rspec_junit_formatter"
end

gem "puma", "~> 6.6"
gem "rackup", "~> 2.2"
9 changes: 8 additions & 1 deletion appengine/standard-hello_world/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ GEM
logger (1.6.6)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
nio4r (2.7.4)
puma (6.6.0)
nio4r (~> 2.0)
rack (3.1.10)
rack-protection (4.1.0)
base64 (>= 0.1.0)
Expand All @@ -16,6 +19,8 @@ GEM
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
Expand Down Expand Up @@ -46,11 +51,13 @@ PLATFORMS
ruby

DEPENDENCIES
puma (~> 6.6)
rack-test
rackup (~> 2.2)
rspec
rspec_junit_formatter
sinatra (~> 4.1.0)
webrick (~> 1.7)

BUNDLED WITH
2.4.19
2.6.6
2 changes: 1 addition & 1 deletion appengine/standard-hello_world/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# [START gae_standard_quickstart_yaml]
runtime: ruby33
runtime: ruby34
entrypoint: bundle exec ruby app.rb
instance_class: F2
# [END gae_standard_quickstart_yaml]
1 change: 1 addition & 0 deletions functions/helloworld/get/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
# [START functions_framework_version]
source "https://rubygems.org"

gem "base64", "~> 0.2"
gem "functions_framework", "~> 1.4"
# [END functions_framework_version]
2 changes: 2 additions & 0 deletions functions/helloworld/get/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
base64 (0.2.0)
cloud_events (0.7.1)
functions_framework (1.4.1)
cloud_events (>= 0.7.0, < 2.a)
Expand All @@ -15,6 +16,7 @@ PLATFORMS
ruby

DEPENDENCIES
base64 (~> 0.2)
functions_framework (~> 1.4)

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions functions/helloworld/pubsub/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@

source "https://rubygems.org"

gem "base64", "~> 0.2"
gem "functions_framework", "~> 1.4"
2 changes: 2 additions & 0 deletions functions/helloworld/pubsub/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
base64 (0.2.0)
cloud_events (0.7.1)
functions_framework (1.4.1)
cloud_events (>= 0.7.0, < 2.a)
Expand All @@ -15,6 +16,7 @@ PLATFORMS
ruby

DEPENDENCIES
base64 (~> 0.2)
functions_framework (~> 1.4)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion run/helloworld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Use the official Ruby image.
# https://hub.docker.com/_/ruby
FROM ruby:3.2-buster
FROM ruby:3.4

# Install production dependencies.
WORKDIR /usr/src/app
Expand Down
3 changes: 3 additions & 0 deletions run/helloworld/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ group :test do
gem "rspec-retry"
gem "rubysl-securerandom"
end

gem "puma", "~> 6.6"
gem "rackup", "~> 1.0"
11 changes: 10 additions & 1 deletion run/helloworld/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ GEM
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
netrc (0.11.0)
nio4r (2.7.4)
puma (6.6.0)
nio4r (~> 2.0)
rack (2.2.8.1)
rack-protection (3.1.0)
rack (~> 2.2, >= 2.2.4)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.1)
rack (< 3)
webrick
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
Expand Down Expand Up @@ -57,12 +63,15 @@ GEM
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
webrick (1.9.1)

PLATFORMS
ruby

DEPENDENCIES
puma (~> 6.6)
rack-test
rackup (~> 1.0)
rest-client
rspec
rspec-retry
Expand All @@ -72,4 +81,4 @@ DEPENDENCIES
thin

BUNDLED WITH
2.4.19
2.6.6