Only allow Jekyll 3.x on Ruby >2.0

This commit is contained in:
Joseph Wynn 2015-11-04 23:09:14 +00:00
parent 04c56a071b
commit 2847c083b3
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,12 @@ Gem::Specification.new do |spec|
spec.executables = [] spec.executables = []
spec.require_path = 'lib' spec.require_path = 'lib'
spec.add_runtime_dependency 'jekyll', ['>= 2.0', '< 4.0'] if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
max_jekyll_version = '3.0'
else
max_jekyll_version = '4.0'
end
spec.add_runtime_dependency 'jekyll', ['>= 2.0', "< #{max_jekyll_version}"]
spec.add_runtime_dependency 'rmagick' spec.add_runtime_dependency 'rmagick'
end end