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 3, 2024
1 parent 399922f commit 11a35d3
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 /(stable|main)/.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 11a35d3

Please sign in to comment.