-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Rails 8, use Appraisal to test gem against older Rail…
…s versions (#100) See svenfuchs/rails-i18n#1130 (comment) for upper constraint removal
- Loading branch information
1 parent
af70f76
commit bb8ded3
Showing
10 changed files
with
134 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'rails_7.0' do | ||
gem 'rails', '~> 7.0.0' | ||
gem 'sqlite3', '~> 1.5.0' | ||
|
||
# Fix: LoadError: cannot load such file -- base64 | ||
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do | ||
gem 'base64' | ||
gem 'bigdecimal' | ||
gem 'mutex_m' | ||
gem 'drb' | ||
gem 'logger' | ||
end | ||
end | ||
|
||
appraise 'rails_7.1' do | ||
gem 'rails', '~> 7.1.0' | ||
gem 'sqlite3', '~> 1.5.0' | ||
|
||
# Fix: | ||
# warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. | ||
# Add logger to your Gemfile or gemspec. | ||
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do | ||
gem 'logger' | ||
end | ||
end | ||
|
||
appraise 'rails_7.2' do | ||
gem 'rails', '~> 7.2.0' | ||
gem 'sqlite3', '~> 1.5.0' | ||
end | ||
|
||
appraise 'rails_8.0' do | ||
gem 'rails', '~> 8.0.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" | ||
gem "capybara" | ||
gem "minitest-reporters", ">= 0.5.0" | ||
gem "puma" | ||
gem "rake" | ||
gem "rdoc" | ||
gem "shoulda" | ||
gem "sprockets-rails" | ||
gem "sqlite3", "~> 1.5.0" | ||
gem "standardrb" | ||
gem "rails", "~> 7.0.0" | ||
|
||
install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") } do | ||
gem "base64" | ||
gem "bigdecimal" | ||
gem "mutex_m" | ||
gem "drb" | ||
gem "logger" | ||
end | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" | ||
gem "capybara" | ||
gem "minitest-reporters", ">= 0.5.0" | ||
gem "puma" | ||
gem "rake" | ||
gem "rdoc" | ||
gem "shoulda" | ||
gem "sprockets-rails" | ||
gem "sqlite3", "~> 1.5.0" | ||
gem "standardrb" | ||
gem "rails", "~> 7.1.0" | ||
|
||
install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") } do | ||
gem "logger" | ||
end | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" | ||
gem "capybara" | ||
gem "minitest-reporters", ">= 0.5.0" | ||
gem "puma" | ||
gem "rake" | ||
gem "rdoc" | ||
gem "shoulda" | ||
gem "sprockets-rails" | ||
gem "sqlite3", "~> 1.5.0" | ||
gem "standardrb" | ||
gem "rails", "~> 7.2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" | ||
gem "capybara" | ||
gem "minitest-reporters", ">= 0.5.0" | ||
gem "puma" | ||
gem "rake" | ||
gem "rdoc" | ||
gem "shoulda" | ||
gem "sprockets-rails" | ||
gem "sqlite3", "~> 2.1" | ||
gem "standardrb" | ||
gem "rails", "~> 8.0.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters