diff options
author | sanemat <o.gata.ken@gmail.com> | 2013-08-30 17:46:41 +0900 |
---|---|---|
committer | sanemat <o.gata.ken@gmail.com> | 2013-08-30 17:46:41 +0900 |
commit | 2ffd162f5be6cd88d32013330b620379f9f325c7 (patch) | |
tree | f4c050b8e29051d563f040619f1168bd44fd1ee9 /lib/bundler/capistrano.rb | |
parent | 3623a5df01e8ef26228ef279a34923a16241f6cb (diff) | |
download | bundler-2ffd162f5be6cd88d32013330b620379f9f325c7.tar.gz |
Require version file for checking capistrano version
bundler-1.4.0.pre.1 works fine, but bundler-1.4.0.pre.2 shows error below:
```
$ bundle exec cap production deploy
/path/to/bundler-1.4.0.pre.2/lib/bundler/capistrano.rb:7:in `<top (required)>': uninitialized constant Capistrano::Version (NameError)
```
This commit brings this error, so I add require version file.
1d7a7893dfeb85afa25a3a526354b31c85f05dbf
bundler: 1.4.0.pre.2
capistrano: 2.14.2
Diffstat (limited to 'lib/bundler/capistrano.rb')
-rw-r--r-- | lib/bundler/capistrano.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/capistrano.rb b/lib/bundler/capistrano.rb index 40d7da15..441a9ad7 100644 --- a/lib/bundler/capistrano.rb +++ b/lib/bundler/capistrano.rb @@ -3,6 +3,7 @@ # Just add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and # Bundler will be activated after each new deployment. require 'bundler/deployment' +require 'capistrano/version' if Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0") raise "For Capistrano 3.x integration, please use http://github.com/capistrano/bundler" |