Skip to content

Commit bb1919e

Browse files
authored
feat: drop support for ruby <3.0 (#210)
1 parent 06cbd15 commit bb1919e

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

.github/workflows/conformance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
19+
ruby: ['3.0', '3.1', '3.2', '3.3']
2020
steps:
2121
- name: Harden Runner
2222
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
@@ -71,4 +71,4 @@ jobs:
7171
useBuildpacks: false
7272
validateConcurrency: true
7373
cmd: "'bundle exec functions-framework-ruby --source test/conformance/app.rb --target concurrent_http_func --signature-type http'"
74-
74+

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest]
19-
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
19+
ruby: ['3.0', '3.1', '3.2', '3.3']
2020
flags: ["--only --test-unit"]
2121
include:
2222
- os: ubuntu-latest

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source "https://rubygems.org"
1616

1717
gemspec
1818

19-
gem "google-style", "~> 1.26.3"
19+
gem "google-style", "~> 1.30.1"
2020
gem "minitest", "~> 5.16"
2121
gem "minitest-focus", "~> 1.2"
2222
gem "minitest-rg", "~> 5.2"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ requiring an HTTP server or complicated request handling logic.
4141

4242
## Supported Ruby versions
4343

44-
This library is supported on Ruby 2.6+.
44+
This library is supported on Ruby 3.0+.
4545

4646
Google provides official support for Ruby versions that are actively supported
4747
by Ruby Core—that is, Ruby versions that are either in normal maintenance or

docs/deploying-functions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Google Cloud Functions is Google's scalable pay-as-you-go Functions-as-a-Service
3030
Functions Framework is designed especially for functions that can be hosted on
3131
Cloud Functions.
3232

33-
You can run Ruby functions on Google Cloud Functions by selecting the `ruby26`
34-
runtime or `ruby27` runtime to use a recent release of Ruby 2.6 or Ruby 2.7.
35-
Support for Ruby 3.0 is forthcoming.
33+
You can run Ruby functions on Google Cloud Functions by selecting the `ruby32`
34+
runtime or `ruby33` runtime to use a recent release of Ruby 3.2 or Ruby 3.3.
35+
Support for Ruby 3.4 is forthcoming.
3636

3737
### Deploying and updating your function
3838

@@ -60,7 +60,7 @@ Then, issue the gcloud command to deploy:
6060
```sh
6161
gcloud functions deploy $YOUR_FUNCTION_NAME \
6262
--project=$YOUR_PROJECT_ID \
63-
--runtime=ruby27 \
63+
--runtime=ruby33 \
6464
--trigger-http \
6565
--entry-point=$YOUR_FUNCTION_TARGET
6666
```
@@ -86,7 +86,7 @@ and above, set `FUNCTION_LOGGING_LEVEL` to `WARN` when deploying:
8686

8787
```sh
8888
gcloud functions deploy $YOUR_FUNCTION_NAME --project=$YOUR_PROJECT_ID \
89-
--runtime=ruby27 --trigger-http --source=$YOUR_FUNCTION_SOURCE \
89+
--runtime=ruby33 --trigger-http --source=$YOUR_FUNCTION_SOURCE \
9090
--entry-point=$YOUR_FUNCTION_TARGET \
9191
--set-env-vars=FUNCTION_LOGGING_LEVEL=WARN
9292
```
@@ -121,7 +121,7 @@ Dockerfile that you can use as a starting point. Feel free to adjust it to the
121121
needs of your project:
122122

123123
```
124-
FROM ruby:2.7
124+
FROM ruby:3.3
125125
WORKDIR /app
126126
COPY . .
127127
RUN gem install --no-document bundler \
@@ -147,8 +147,8 @@ command may ask you for permission to enable the Cloud Build API for the project
147147
if it isn't already enabled.
148148

149149
Because you provide your own Docker image when deploying to Cloud Run, you can
150-
use any version of Ruby supported by the Functions Framework, from 2.6 through
151-
3.1.
150+
use any version of Ruby supported by the Functions Framework, from 3.0 through
151+
3.3.
152152

153153
### Deploying an image to Cloud Run
154154

docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ requiring an HTTP server or complicated request handling logic.
4646

4747
## Supported Ruby versions
4848

49-
This library is supported on Ruby 2.6+.
49+
This library is supported on Ruby 3.0+.
5050

5151
Google provides official support for Ruby versions that are actively supported
5252
by Ruby Core—that is, Ruby versions that are either in normal maintenance or

functions_framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ version = ::FunctionsFramework::VERSION
4444
spec.bindir = "bin"
4545
spec.executables = ["functions-framework", "functions-framework-ruby"]
4646

47-
spec.required_ruby_version = ">= 2.6.0"
47+
spec.required_ruby_version = ">= 3.0.0"
4848
spec.add_dependency "cloud_events", ">= 0.7.0", "< 2.a"
4949
spec.add_dependency "puma", ">= 4.3.0", "< 7.a"
5050
spec.add_dependency "rack", ">= 2.1", "< 4.a"

0 commit comments

Comments
 (0)