mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix Travis failure for Ruby < 2.2.6
This commit is contained in:
parent
1ac86a230d
commit
d83e4469c5
1 changed files with 18 additions and 1 deletions
19
Gemfile
19
Gemfile
|
@ -4,7 +4,24 @@ source "https://rubygems.org"
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
group :cucumber do
|
group :cucumber do
|
||||||
gem "cucumber"
|
# Latest versions of cucumber don't support Ruby < 2.1
|
||||||
|
# rubocop:disable Bundler/DuplicatedGem
|
||||||
|
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
||||||
|
gem "cucumber", "< 3.0.1"
|
||||||
|
else
|
||||||
|
gem "cucumber"
|
||||||
|
end
|
||||||
|
# rubocop:enable Bundler/DuplicatedGem
|
||||||
gem "rspec"
|
gem "rspec"
|
||||||
gem "rspec-core", "~> 3.4.4"
|
gem "rspec-core", "~> 3.4.4"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Latest versions of net-ssh don't support Ruby < 2.2.6
|
||||||
|
if Gem::Requirement.new("< 2.2.6").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
||||||
|
gem "net-ssh", "< 5.0.0"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Latest versions of public_suffix don't support Ruby < 2.1
|
||||||
|
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
||||||
|
gem "public_suffix", "< 3.0.0"
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue