mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Rake::VERSION instead of deprecated RAKEVERSION
RAKEVERSION was dropped in Rake 11.0.0. This change ensures `cap -v` works with Rake 11.0.0 and newer.
This commit is contained in:
parent
9eb92b48cf
commit
71045b5c80
3 changed files with 3 additions and 2 deletions
|
@ -17,6 +17,7 @@ default of Capistrano 3.4.0 and earlier.
|
|||
|
||||
Other changes:
|
||||
|
||||
* Capistrano is now fully-compatible with Rake 11.0. (@mattbrictson)
|
||||
* Internal Rubocop cleanups.
|
||||
* `remove` DSL method for removing values like from arrays like `linked_dirs`
|
||||
* `append` DSL method for pushing values like `linked_dirs`
|
||||
|
|
|
@ -105,7 +105,7 @@ module Capistrano
|
|||
["--version", "-V",
|
||||
"Display the program version.",
|
||||
lambda { |_value|
|
||||
puts "Capistrano Version: #{Capistrano::VERSION} (Rake Version: #{RAKEVERSION})"
|
||||
puts "Capistrano Version: #{Capistrano::VERSION} (Rake Version: #{Rake::VERSION})"
|
||||
exit
|
||||
}
|
||||
]
|
||||
|
|
|
@ -29,7 +29,7 @@ describe Capistrano::Application do
|
|||
expect(out).to match(/\bCapistrano Version\b/)
|
||||
expect(out).to match(/\b#{Capistrano::VERSION}\b/)
|
||||
expect(out).to match(/\bRake Version\b/)
|
||||
expect(out).to match(/\b#{RAKEVERSION}\b/)
|
||||
expect(out).to match(/\b#{Rake::VERSION}\b/)
|
||||
end
|
||||
|
||||
it "overrides the rake method, and sets the sshkit_backend to SSHKit::Backend::Printer" do
|
||||
|
|
Loading…
Reference in a new issue