From 83b63886524260df1d61296a1beee96d42bb2aec Mon Sep 17 00:00:00 2001 From: Masaki Hara Date: Fri, 10 Nov 2023 17:10:24 +0900 Subject: [PATCH] Bump Ruby and Rails --- .github/workflows/test.yml | 14 +++++++------- .ruby-version | 2 +- gemfiles/{rails-5.2.gemfile => rails-6.1.gemfile} | 2 +- gemfiles/{rails-6.0.gemfile => rails-7.0.gemfile} | 2 +- open_api_annotator.gemspec | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) rename gemfiles/{rails-5.2.gemfile => rails-6.1.gemfile} (87%) rename gemfiles/{rails-6.0.gemfile => rails-7.0.gemfile} (87%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b36e6a4..b93c609 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,26 +4,26 @@ jobs: test: strategy: matrix: - ruby: ["2.5", "2.6", "2.7", "3.0"] + ruby: ["3.0", "3.1", "3.2"] gemfile: [Gemfile] include: - - ruby: "2.7" - gemfile: "gemfiles/rails-6.0.gemfile" - - ruby: "2.6" - gemfile: "gemfiles/rails-5.2.gemfile" + - ruby: "3.2" + gemfile: "gemfiles/rails-7.0.gemfile" + - ruby: "3.2" + gemfile: "gemfiles/rails-6.1.gemfile" env: BUNDLE_GEMFILE: "${{ matrix.gemfile }}" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle exec rake - name: Send coverage - uses: paambaati/codeclimate-action@v2.7.5 + uses: paambaati/codeclimate-action@v5 env: CC_TEST_REPORTER_ID: 921d046db793707b7d0c0d1305970a137fdf98fbc6ceeb6c355c44757040244f diff --git a/.ruby-version b/.ruby-version index b502146..be94e6f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.2 +3.2.2 diff --git a/gemfiles/rails-5.2.gemfile b/gemfiles/rails-6.1.gemfile similarity index 87% rename from gemfiles/rails-5.2.gemfile rename to gemfiles/rails-6.1.gemfile index 5309745..5fec9e5 100644 --- a/gemfiles/rails-5.2.gemfile +++ b/gemfiles/rails-6.1.gemfile @@ -5,4 +5,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } # Specify your gem's dependencies in open_api_annotator.gemspec gemspec path: '..' -gem 'railties', '~> 5.2.0' +gem 'railties', '~> 6.1.0' diff --git a/gemfiles/rails-6.0.gemfile b/gemfiles/rails-7.0.gemfile similarity index 87% rename from gemfiles/rails-6.0.gemfile rename to gemfiles/rails-7.0.gemfile index 7128040..72a95f6 100644 --- a/gemfiles/rails-6.0.gemfile +++ b/gemfiles/rails-7.0.gemfile @@ -5,4 +5,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } # Specify your gem's dependencies in open_api_annotator.gemspec gemspec path: '..' -gem 'railties', '~> 6.0.0' +gem 'railties', '~> 7.0.0' diff --git a/open_api_annotator.gemspec b/open_api_annotator.gemspec index 3e45179..5420347 100644 --- a/open_api_annotator.gemspec +++ b/open_api_annotator.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.add_dependency "open_api", ">= 0.5.0" spec.add_dependency "active_model_serializers", "~> 0.10.0" - rails_versions = ['>= 5.0', '< 6.2'] + rails_versions = ['>= 5.0', '< 7.2'] spec.add_dependency "actionpack", rails_versions spec.add_dependency "railties", rails_versions