Skip to content

Commit

Permalink
Loosen Ruby version constraints
Browse files Browse the repository at this point in the history
Bundler was not able to resolve a Rails pessimistic constraint for both the `rails` and `actionview` gems at the same time.
  • Loading branch information
lowjoel committed Jan 29, 2017
1 parent 70e4fcd commit 61c5c66
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions activerecord-userstamp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,19 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']

if ENV['CI'] == 'true'
rails_version = ENV['RAILS_VERSION'] || 'default'

rails_version = case rails_version
when 'default'
'>= 4.0'
else
"~> #{rails_version}"
end
rails_version =
case ENV['RAILS_VERSION']
when nil, ''
'>= 4.0'
else
"~> #{ENV['RAILS_VERSION']}"
end
else
rails_version = '>= 4.0'
end

s.add_dependency 'rails', rails_version

s.add_development_dependency 'actionview', rails_version
s.add_development_dependency 'tzinfo-data'
s.add_development_dependency 'rake'
s.add_development_dependency 'rdoc'
Expand Down

0 comments on commit 61c5c66

Please sign in to comment.