@@ -30,9 +30,9 @@ Google Cloud Functions is Google's scalable pay-as-you-go Functions-as-a-Service
3030Functions Framework is designed especially for functions that can be hosted on
3131Cloud 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
6161gcloud 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
8888gcloud 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
121121needs of your project:
122122
123123```
124- FROM ruby:2.7
124+ FROM ruby:3.3
125125WORKDIR /app
126126COPY . .
127127RUN gem install --no-document bundler \
@@ -147,8 +147,8 @@ command may ask you for permission to enable the Cloud Build API for the project
147147if it isn't already enabled.
148148
149149Because 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
0 commit comments