From 7e1122e2d59edbaa5dd0ab551e469881eb0b25bc Mon Sep 17 00:00:00 2001 From: Luiz Eduardo Kowalski Date: Mon, 2 Dec 2024 21:48:12 +0100 Subject: [PATCH] Appraisal (#47) --- .github/workflows/ruby.yml | 15 +++++++-------- .gitignore | 2 ++ Appraisals | 16 ++++++++++++++++ Gemfile | 2 ++ .../{Gemfile-rails-7-0 => rails_7.1.gemfile} | 12 ++++++++---- .../{Gemfile-rails-7-2 => rails_7.2.gemfile} | 14 +++++++++----- .../{Gemfile-rails-7-1 => rails_8.0.gemfile} | 14 +++++++++----- 7 files changed, 53 insertions(+), 22 deletions(-) create mode 100644 Appraisals rename gemfiles/{Gemfile-rails-7-0 => rails_7.1.gemfile} (60%) rename gemfiles/{Gemfile-rails-7-2 => rails_7.2.gemfile} (53%) rename gemfiles/{Gemfile-rails-7-1 => rails_8.0.gemfile} (55%) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 42acf1e..8beb064 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -12,19 +12,18 @@ jobs: strategy: matrix: gemfile: - - Gemfile # latest Rails (8.0) - - gemfiles/Gemfile-rails-7-0 - - gemfiles/Gemfile-rails-7-1 - - gemfiles/Gemfile-rails-7-2 + - gemfiles/rails_7.1 + - gemfiles/rails_7.2 + - gemfiles/rails_8.0 ruby: - "3.1" - "3.2" - "3.3" - # exclude: - # - gemfile: gemfiles/Gemfile-rails-6-0 - # ruby: '3.2' + exclude: + - gemfile: gemfiles/rails_8.0 + ruby: '3.1' env: - BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} + BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 diff --git a/.gitignore b/.gitignore index a5ca158..f35e9d4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ .DS_Store Gemfile.lock + +/gemfiles/*.lock diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..0c4d313 --- /dev/null +++ b/Appraisals @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +appraise "rails-7.1" do + gem "rails", "~> 7.1.0" + gem "sqlite3", "~> 1.6" +end + +appraise "rails-7.2" do + gem "rails", "~> 7.2.0" + gem "sqlite3", "~> 1.7" +end + +appraise "rails-8.0" do + gem "rails", "~> 8.0.0" + gem "sqlite3" +end diff --git a/Gemfile b/Gemfile index cefc713..ed147bf 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,8 @@ gemspec gem "activerecord" # needed for app_test test case gem "sqlite3" +gem "appraisal" + gem "minitest-reporters" gem "rubocop" diff --git a/gemfiles/Gemfile-rails-7-0 b/gemfiles/rails_7.1.gemfile similarity index 60% rename from gemfiles/Gemfile-rails-7-0 rename to gemfiles/rails_7.1.gemfile index f61376a..72ad242 100644 --- a/gemfiles/Gemfile-rails-7-0 +++ b/gemfiles/rails_7.1.gemfile @@ -1,14 +1,18 @@ # frozen_string_literal: true -source "https://rubygems.org" - -gemspec path: ".." +# This file was generated by Appraisal -gem "rails", github: "rails/rails", branch: "7-0-stable" +source "https://rubygems.org" +gem "activerecord" +gem "appraisal" gem "minitest-reporters" +gem "rails", "~> 7.1.0" gem "rubocop" gem "rubocop-minitest" gem "rubocop-performance" gem "rubocop-thread_safety" +gem "ruby-lsp" gem "sqlite3", "~> 1.6" + +gemspec path: "../" diff --git a/gemfiles/Gemfile-rails-7-2 b/gemfiles/rails_7.2.gemfile similarity index 53% rename from gemfiles/Gemfile-rails-7-2 rename to gemfiles/rails_7.2.gemfile index 2365789..a7bd882 100644 --- a/gemfiles/Gemfile-rails-7-2 +++ b/gemfiles/rails_7.2.gemfile @@ -1,14 +1,18 @@ # frozen_string_literal: true -source "https://rubygems.org" - -gemspec path: ".." +# This file was generated by Appraisal -gem "rails", github: "rails/rails", branch: "7-2-stable" +source "https://rubygems.org" +gem "activerecord" +gem "appraisal" gem "minitest-reporters" +gem "rails", "~> 7.2.0" gem "rubocop" gem "rubocop-minitest" gem "rubocop-performance" gem "rubocop-thread_safety" -gem "sqlite3", "~> 1.6" +gem "ruby-lsp" +gem "sqlite3", "~> 1.7" + +gemspec path: "../" diff --git a/gemfiles/Gemfile-rails-7-1 b/gemfiles/rails_8.0.gemfile similarity index 55% rename from gemfiles/Gemfile-rails-7-1 rename to gemfiles/rails_8.0.gemfile index bb145a1..757399d 100644 --- a/gemfiles/Gemfile-rails-7-1 +++ b/gemfiles/rails_8.0.gemfile @@ -1,14 +1,18 @@ # frozen_string_literal: true -source "https://rubygems.org" - -gemspec path: ".." +# This file was generated by Appraisal -gem "rails", github: "rails/rails", branch: "7-1-stable" +source "https://rubygems.org" +gem "activerecord" +gem "appraisal" gem "minitest-reporters" +gem "rails", "~> 8.0.0" gem "rubocop" gem "rubocop-minitest" gem "rubocop-performance" gem "rubocop-thread_safety" -gem "sqlite3", "~> 1.6" +gem "ruby-lsp" +gem "sqlite3" + +gemspec path: "../"