diff options
author | sanemat <o.gata.ken@gmail.com> | 2013-08-31 04:12:19 +0900 |
---|---|---|
committer | sanemat <o.gata.ken@gmail.com> | 2013-08-31 04:12:19 +0900 |
commit | 29b07d2073b8e54a0766a2c96f10374bc21b4f83 (patch) | |
tree | 7ab4bc25d3326fbef4b439ec882d3fe3af238728 /lib | |
parent | 5851b6fabbe7e0b27f2aa41d9d1b374ca6d4a205 (diff) | |
download | bundler-29b07d2073b8e54a0766a2c96f10374bc21b4f83.tar.gz |
Simple check const exist
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/capistrano.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/capistrano.rb b/lib/bundler/capistrano.rb index 6baf87a33b..336f04cacf 100644 --- a/lib/bundler/capistrano.rb +++ b/lib/bundler/capistrano.rb @@ -3,12 +3,8 @@ # Just add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and # Bundler will be activated after each new deployment. require 'bundler/deployment' -begin - require 'capistrano/version' -rescue LoadError -end -if !defined?(Capistrano::Version) || 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 |