Skip to content

Commit

Permalink
Merge pull request #2355 from tvdeyen/fix-rails-7-builds
Browse files Browse the repository at this point in the history
Use released Rails gems again for local testing
  • Loading branch information
tvdeyen authored Jun 28, 2022
2 parents 0c0f126 + 7b8dc73 commit 7262c05
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@ source "https://rubygems.org"
gemspec

rails_version = ENV.fetch("RAILS_VERSION", 7.0).to_f
# Necessary until a new 6.1.5 version has been released
# https://github.com/rails/rails/pull/44691
if rails_version.to_s.match?(/6.1/)
gem "rails", git: "https://github.com/rails/rails", branch: "6-1-stable"
elsif rails_version.to_s.match?(/7.0/)
gem "rails", git: "https://github.com/rails/rails", branch: "7-0-stable"
else
gem "rails", "~> #{rails_version}.0"
end
gem "rails", "~> #{rails_version}.0"

if ENV["DB"].nil? || ENV["DB"] == "sqlite"
gem "sqlite3", "~> 1.4.1"
Expand Down

0 comments on commit 7262c05

Please sign in to comment.