Make bundler 1.10 optional groups optional

Optional groups are only available with Bundler 1.10+
We still want older bundlers to parse the gemfile correctly,
thus a workaround is needed.
pull/3454/head
Oliver Günther 9 years ago
parent 2fe77cf310
commit d54c31905d
  1. 12
      Gemfile

@ -181,7 +181,17 @@ group :ldap do
gem "net-ldap", '~> 0.8.0'
end
group :syck, optional: true do
# Optional groups are only available with Bundler 1.10+
# We still want older bundlers to parse this gemfile correctly,
# thus this rather ugly workaround is needed for now.
# TODO: Remove this when 1.10+ is widespread.
if Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('1.10.0')
group :syck, optional: true do
gem "syck", require: false
end
else
gem "syck", require: false
end

Loading…
Cancel
Save