diff options
author | André Arko <andre@arko.net> | 2013-08-31 19:01:13 -0700 |
---|---|---|
committer | André Arko <andre@arko.net> | 2013-08-31 19:01:13 -0700 |
commit | 0ab0cd9058d39a7c8ead6a796fa319ec877c53e5 (patch) | |
tree | 7ab4bc25d3326fbef4b439ec882d3fe3af238728 | |
parent | 3623a5df01e8ef26228ef279a34923a16241f6cb (diff) | |
parent | 29b07d2073b8e54a0766a2c96f10374bc21b4f83 (diff) | |
download | bundler-0ab0cd9058d39a7c8ead6a796fa319ec877c53e5.tar.gz |
Merge pull request #2616 from sanemat/fix/if-capistrano
Require version file for checking capistrano version
-rw-r--r-- | lib/bundler/capistrano.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/capistrano.rb b/lib/bundler/capistrano.rb index 40d7da15df..336f04cacf 100644 --- a/lib/bundler/capistrano.rb +++ b/lib/bundler/capistrano.rb @@ -4,7 +4,7 @@ # Bundler will be activated after each new deployment. require 'bundler/deployment' -if Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0") +if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0") raise "For Capistrano 3.x integration, please use http://github.com/capistrano/bundler" end |