summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <andre@arko.net>2013-08-31 19:01:13 -0700
committerAndré Arko <andre@arko.net>2013-08-31 19:01:13 -0700
commit0ab0cd9058d39a7c8ead6a796fa319ec877c53e5 (patch)
tree7ab4bc25d3326fbef4b439ec882d3fe3af238728
parent3623a5df01e8ef26228ef279a34923a16241f6cb (diff)
parent29b07d2073b8e54a0766a2c96f10374bc21b4f83 (diff)
downloadbundler-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.rb2
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