Skip to content

Commit

Permalink
0-10-stable: [snapshot]
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jun 7, 2018
1 parent ab2063f commit 6b20987
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Gemfile
@@ -1,23 +1,27 @@
source 'https://rubygems.org'
gemspec

tilt_version = ENV['TILT_VERSION']
rack_version = ENV['RACK_VERSION']
sprockets_version = ENV['SPROCKETS_VERSION']
v = -> version { Gem::Version.new(version) if version }

ruby_version = v[RUBY_VERSION]
tilt_version = v[ENV['TILT_VERSION']]
rack_version = v[ENV['RACK_VERSION']]
sprockets_version = v[ENV['SPROCKETS_VERSION']]

# Stick with older racc until
# https://github.com/tenderlove/racc/issues/22
# is solved.
gem 'racc', '< 1.4.10', platform: :jruby
gem 'json', '< 1.8.1', platform: :ruby if RUBY_VERSION.to_f == 2.1
gem 'json', '< 1.8.1', platform: :ruby if ruby_version < v['2.2']
gem 'rubysl', platform: :rbx
gem 'rack-test', '< 1.0' if ruby_version < v['2.2.2']

# thin requires rack < 2
gem 'thin', platform: :mri if !rack_version || (rack_version < '2')
gem 'thin', platform: :mri if !rack_version || (rack_version < v['2'])

gem 'rack', rack_version if rack_version
gem 'tilt', tilt_version if tilt_version
gem 'sprockets', sprockets_version if sprockets_version
gem 'rack', rack_version.to_s if rack_version
gem 'tilt', tilt_version.to_s if tilt_version
gem 'sprockets', sprockets_version.to_s if sprockets_version

group :repl do
gem 'therubyracer', platform: :mri, require: 'v8'
Expand Down

0 comments on commit 6b20987

Please sign in to comment.