1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Exclude danger to fix Ruby 2.0.0 CI error (#2030)

danger no longer installs cleanly on Ruby 2.0.0. Our CI only runs danger
on Ruby 2.5, so there is no reason to install it for older versions.

Fixes #2029
This commit is contained in:
Matt Brictson 2019-08-29 08:59:45 -07:00 committed by GitHub
parent 28205f45e4
commit a7ae1a6c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -30,3 +30,8 @@ end
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "i18n", "< 1.3.0"
end
# We only run danger once on a new-ish ruby; no need to install it otherwise
if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "danger"
end

View file

@ -28,7 +28,6 @@ Gem::Specification.new do |gem|
gem.add_dependency "rake", ">= 10.0.0"
gem.add_dependency "sshkit", ">= 1.9.0"
gem.add_development_dependency "danger"
gem.add_development_dependency "mocha"
gem.add_development_dependency "rspec"
gem.add_development_dependency "rubocop", "0.48.1"