summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-10-29 17:14:22 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-10-29 17:55:24 -0600
commit905f406e452becdbab05339e510535406bc65e13 (patch)
treef2b6c4405a9690cf10f211f6a01d6a098812b9ea /Gemfile
parent7c009d0bc4942e48485537d2754717ada16d1f7e (diff)
don't run build on unsupported versions of Ruby (part of #2764)
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile32
1 files changed, 3 insertions, 29 deletions
diff --git a/Gemfile b/Gemfile
index e06f497e..e9f83a59 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,35 +4,9 @@ source 'https://rubygems.org'
gemspec
group :development do
- ruby_version = Gem::Version.new RUBY_VERSION
- gem 'concurrent-ruby', '~> 1.0.0' unless ruby_version < (Gem::Version.new '1.9.3')
- if ruby_version < (Gem::Version.new '2.2.0')
- if ruby_version < (Gem::Version.new '2.1.0')
- if ruby_version < (Gem::Version.new '2.0.0')
- gem 'haml', '~> 4.0.0'
- if ruby_version < (Gem::Version.new '1.9.3')
- gem 'cucumber', '~> 1.3.0'
- gem 'nokogiri', '~> 1.5.0'
- gem 'slim', '~> 2.1.0'
- gem 'thread_safe', '0.3.6'
- gem 'tilt', '2.0.7'
- else
- gem 'nokogiri', '~> 1.6.0'
- gem 'slim', '<= 3.0.7'
- end
- else
- gem 'nokogiri', '~> 1.6.0'
- end
- else
- gem 'nokogiri', '~> 1.7.0' if Gem::Platform.local =~ 'x86-mingw32' || Gem::Platform.local =~ 'x64-mingw32'
- # pin nokogiri because XPath behavior changed on JRuby starting in 1.8.3 (see sparklemotion/nokogiri#1803)
- gem 'nokogiri', '1.8.2' if RUBY_ENGINE == 'jruby'
- gem 'racc', '~> 1.4.0' if RUBY_VERSION == '2.1.0' && RUBY_ENGINE == 'rbx'
- end
- else
- # pin nokogiri because XPath behavior changed on JRuby starting in 1.8.3 (see sparklemotion/nokogiri#1803)
- gem 'nokogiri', '1.8.2' if RUBY_ENGINE == 'jruby'
- end
+ gem 'concurrent-ruby', '~> 1.0.0'
+ # pin nokogiri because XPath behavior changed on JRuby starting in 1.8.3 (see sparklemotion/nokogiri#1803)
+ gem 'nokogiri', '1.8.2' if RUBY_ENGINE == 'jruby'
end
group :doc do