Skip to content

Commit

Permalink
Get known rails branches from the git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jan 2, 2024
1 parent 7ff2f19 commit 92a2df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ source 'https://rubygems.org'
gemspec require: false

# rubocop:disable Bundler/DuplicatedGem
if ENV['RAILS_VERSION'] == 'main'
gem 'rails', github: 'rails', require: false
if %r{^(main|\d-\d-stable)$}.match? ENV['RAILS_VERSION']
gem 'rails', github: 'rails', require: false, branch: ENV['RAILS_VERSION']
else
gem 'rails', ENV['RAILS_VERSION'] || '~> 7.1.0', require: false
end
Expand Down

0 comments on commit 92a2df4

Please sign in to comment.