Skip to content

Commit dcc9f35

Browse files
feat: ruby 3.1 minimum, 3.4 default (googleapis#22594)
1 parent 1d1263b commit dcc9f35

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
strategy:
1414
matrix:
1515
include:
16-
- os: ubuntu-latest
17-
ruby: "3.0"
18-
task: "--include-spec"
1916
- os: ubuntu-latest
2017
ruby: "3.1"
2118
task: "--include-spec"
@@ -24,12 +21,15 @@ jobs:
2421
task: "--include-spec"
2522
- os: ubuntu-latest
2623
ruby: "3.3"
24+
task: "--include-spec"
25+
- os: ubuntu-latest
26+
ruby: "3.4"
2727
task: "--include-spec --include-yardoc --include-build"
2828
- os: macos-latest
29-
ruby: "3.3"
29+
ruby: "3.4"
3030
task: "--include-spec"
3131
- os: windows-latest
32-
ruby: "3.3"
32+
ruby: "3.4"
3333
task: "--include-spec"
3434
fail-fast: false
3535
runs-on: ${{ matrix.os }}

.github/workflows/generate-updates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
steps:
1616
- name: Checkout repo
1717
uses: actions/checkout@v4
18-
- name: Install Ruby 3.3
18+
- name: Install Ruby 3.4
1919
uses: ruby/setup-ruby@v1
2020
with:
21-
ruby-version: "3.3"
21+
ruby-version: "3.4"
2222
- name: Install tools
2323
run: |
2424
gem install --no-document toys

.github/workflows/release-freeze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Checkout repo
1313
uses: actions/checkout@v4
14-
- name: Install Ruby 3.3
14+
- name: Install Ruby 3.4
1515
uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: "3.3"
17+
ruby-version: "3.4"
1818
- name: Install tools
1919
run: |
2020
gem install --no-document toys

.github/workflows/release-unfreeze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Checkout repo
1313
uses: actions/checkout@v4
14-
- name: Install Ruby 3.3
14+
- name: Install Ruby 3.4
1515
uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: "3.3"
17+
ruby-version: "3.4"
1818
- name: Install tools
1919
run: |
2020
gem install --no-document toys

.github/workflows/weekly-generate-updates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout repo
1414
uses: actions/checkout@v4
15-
- name: Install Ruby 3.3
15+
- name: Install Ruby 3.4
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
ruby-version: "3.3"
18+
ruby-version: "3.4"
1919
- name: Install tools
2020
run: |
2121
gem install --no-document toys

google-apis-core/google-apis-core.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
1919
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
2020
gem.require_paths = ["lib"]
2121

22-
gem.required_ruby_version = '>= 2.7'
22+
gem.required_ruby_version = '>= 3.1'
2323
gem.add_runtime_dependency "representable", "~> 3.0"
2424
gem.add_runtime_dependency "retriable", ">= 2.0", "< 4.a"
2525
gem.add_runtime_dependency "addressable", "~> 2.5", ">= 2.5.1"

google-apis-generator/google-apis-generator.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
2020
gem.executables = ["generate-api"]
2121
gem.require_paths = ["lib"]
2222

23-
gem.required_ruby_version = ">= 2.7"
23+
gem.required_ruby_version = ">= 3.1"
2424
gem.add_runtime_dependency "activesupport", ">= 5.0"
2525
gem.add_runtime_dependency "gems", "~> 1.2"
2626
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"

google-apis-generator/lib/google/apis/generator/templates/gemspec.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
2828
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
2929
gem.require_paths = ["lib"]
3030

31-
gem.required_ruby_version = '>= 2.7'
31+
gem.required_ruby_version = '>= 3.1'
3232
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
3333
end

google-apis-generator/lib/google/apis/generator/templates/overview.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The [product documentation](<%= api.documentation_link %>) may provide guidance
8383

8484
## Supported Ruby versions
8585

86-
This library is supported on Ruby 2.7+.
86+
This library is supported on Ruby 3.1+.
8787

8888
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
8989

0 commit comments

Comments
 (0)