Skip to content

Commit d8dd8f5

Browse files
authored
docs: Update App Engine samples to latest Ruby 3.4 version (#1563)
1 parent 0237041 commit d8dd8f5

File tree

12 files changed

+77
-29
lines changed

12 files changed

+77
-29
lines changed

appengine/flexible/hello_world/Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ gem "sinatra"
1919
gem "webrick", "~> 1.8"
2020

2121
# [END gae_flex_quickstart_dependencies]
22-
ruby "~>3.2"
22+
ruby "~>3.4"
2323
group :test do
2424
gem "rack-test"
2525
gem "rspec"
2626
gem "rspec_junit_formatter"
2727
end
28+
29+
gem "puma", "~> 6.6"
30+
gem "rackup", "~> 2.2"
Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,67 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
diff-lcs (1.5.0)
5-
mustermann (3.0.0)
4+
base64 (0.2.0)
5+
diff-lcs (1.6.1)
6+
logger (1.7.0)
7+
mustermann (3.0.3)
68
ruby2_keywords (~> 0.0.1)
7-
rack (2.2.8.1)
8-
rack-protection (3.1.0)
9-
rack (~> 2.2, >= 2.2.4)
10-
rack-test (2.1.0)
9+
nio4r (2.7.4)
10+
puma (6.6.0)
11+
nio4r (~> 2.0)
12+
rack (3.1.13)
13+
rack-protection (4.1.1)
14+
base64 (>= 0.1.0)
15+
logger (>= 1.6.0)
16+
rack (>= 3.0.0, < 4)
17+
rack-session (2.1.0)
18+
base64 (>= 0.1.0)
19+
rack (>= 3.0.0)
20+
rack-test (2.2.0)
1121
rack (>= 1.3)
12-
rspec (3.12.0)
13-
rspec-core (~> 3.12.0)
14-
rspec-expectations (~> 3.12.0)
15-
rspec-mocks (~> 3.12.0)
16-
rspec-core (3.12.2)
17-
rspec-support (~> 3.12.0)
18-
rspec-expectations (3.12.3)
22+
rackup (2.2.1)
23+
rack (>= 3)
24+
rspec (3.13.0)
25+
rspec-core (~> 3.13.0)
26+
rspec-expectations (~> 3.13.0)
27+
rspec-mocks (~> 3.13.0)
28+
rspec-core (3.13.3)
29+
rspec-support (~> 3.13.0)
30+
rspec-expectations (3.13.3)
1931
diff-lcs (>= 1.2.0, < 2.0)
20-
rspec-support (~> 3.12.0)
21-
rspec-mocks (3.12.6)
32+
rspec-support (~> 3.13.0)
33+
rspec-mocks (3.13.2)
2234
diff-lcs (>= 1.2.0, < 2.0)
23-
rspec-support (~> 3.12.0)
24-
rspec-support (3.12.1)
35+
rspec-support (~> 3.13.0)
36+
rspec-support (3.13.2)
2537
rspec_junit_formatter (0.6.0)
2638
rspec-core (>= 2, < 4, != 2.12.0)
2739
ruby2_keywords (0.0.5)
28-
sinatra (3.1.0)
40+
sinatra (4.1.1)
41+
logger (>= 1.6.0)
2942
mustermann (~> 3.0)
30-
rack (~> 2.2, >= 2.2.4)
31-
rack-protection (= 3.1.0)
43+
rack (>= 3.0.0, < 4)
44+
rack-protection (= 4.1.1)
45+
rack-session (>= 2.0.0, < 3)
3246
tilt (~> 2.0)
33-
tilt (2.2.0)
34-
webrick (1.8.1)
47+
tilt (2.6.0)
48+
webrick (1.9.1)
3549

3650
PLATFORMS
3751
ruby
3852

53+
3954
DEPENDENCIES
55+
puma (~> 6.6)
4056
rack-test
57+
rackup (~> 2.2)
4158
rspec
4259
rspec_junit_formatter
4360
sinatra
4461
webrick (~> 1.8)
4562

4663
RUBY VERSION
47-
ruby 3.2.2p53
64+
ruby 3.4.2
4865

4966
BUNDLED WITH
50-
2.4.19
67+
2.6.6

appengine/standard-hello_world/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ group :test do
2424
gem "rspec"
2525
gem "rspec_junit_formatter"
2626
end
27+
28+
gem "puma", "~> 6.6"
29+
gem "rackup", "~> 2.2"

appengine/standard-hello_world/Gemfile.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ GEM
66
logger (1.6.6)
77
mustermann (3.0.3)
88
ruby2_keywords (~> 0.0.1)
9+
nio4r (2.7.4)
10+
puma (6.6.0)
11+
nio4r (~> 2.0)
912
rack (3.1.14)
1013
rack-protection (4.1.0)
1114
base64 (>= 0.1.0)
@@ -16,6 +19,8 @@ GEM
1619
rack (>= 3.0.0)
1720
rack-test (2.1.0)
1821
rack (>= 1.3)
22+
rackup (2.2.1)
23+
rack (>= 3)
1924
rspec (3.12.0)
2025
rspec-core (~> 3.12.0)
2126
rspec-expectations (~> 3.12.0)
@@ -46,11 +51,13 @@ PLATFORMS
4651
ruby
4752

4853
DEPENDENCIES
54+
puma (~> 6.6)
4955
rack-test
56+
rackup (~> 2.2)
5057
rspec
5158
rspec_junit_formatter
5259
sinatra (~> 4.1.0)
5360
webrick (~> 1.7)
5461

5562
BUNDLED WITH
56-
2.4.19
63+
2.6.6

appengine/standard-hello_world/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# [START gae_standard_quickstart_yaml]
16-
runtime: ruby33
16+
runtime: ruby34
1717
entrypoint: bundle exec ruby app.rb
1818
instance_class: F2
1919
# [END gae_standard_quickstart_yaml]

functions/helloworld/get/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
# [START functions_framework_version]
1616
source "https://rubygems.org"
1717

18+
gem "base64", "~> 0.2"
1819
gem "functions_framework", "~> 1.4"
1920
# [END functions_framework_version]

functions/helloworld/get/Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
base64 (0.2.0)
45
cloud_events (0.7.1)
56
functions_framework (1.4.1)
67
cloud_events (>= 0.7.0, < 2.a)
@@ -15,6 +16,7 @@ PLATFORMS
1516
ruby
1617

1718
DEPENDENCIES
19+
base64 (~> 0.2)
1820
functions_framework (~> 1.4)
1921

2022
BUNDLED WITH

functions/helloworld/pubsub/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414

1515
source "https://rubygems.org"
1616

17+
gem "base64", "~> 0.2"
1718
gem "functions_framework", "~> 1.4"

functions/helloworld/pubsub/Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
base64 (0.2.0)
45
cloud_events (0.7.1)
56
functions_framework (1.4.1)
67
cloud_events (>= 0.7.0, < 2.a)
@@ -15,6 +16,7 @@ PLATFORMS
1516
ruby
1617

1718
DEPENDENCIES
19+
base64 (~> 0.2)
1820
functions_framework (~> 1.4)
1921

2022
BUNDLED WITH

run/helloworld/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

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

2222
# Install production dependencies.
2323
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)