Skip to content

Commit

Permalink
Install addressable 2.4.0 if ruby version is lower than 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke committed Jan 6, 2017
1 parent 7e8302a commit a8c3770
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ gemspec
gem 'rake'

group :test do
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.0.0")
# for jruby 1.7.x
gem "addressable", "2.4.0"
end

if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
gem "rack", "~> 1.6"
end

gem 'rspec', '~> 3.2'
gem 'rack-test'
gem 'simplecov'
Expand Down

0 comments on commit a8c3770

Please sign in to comment.