-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for uninitialized constant Capistrano::VERSION (NameError) #1288
Conversation
Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>
Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>
Fix for uninitialized constant Capistrano::VERSION (NameError)
It seems to me Capistrano::VERSION is the correct one based on this: https://github.com/capistrano/capistrano/blob/master/lib/capistrano/version.rb Using Capistrano::Version doesn't work for me. |
you're looking at 3.x code. Look at the 2.x branch. On Mon, Oct 28, 2013 at 8:15 AM, Juan Ibiapina notifications@github.comwrote:
|
Why? if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new('3.0.0') If Capistrano::Version is defined, then we're using version 2, not 3. So the second part will never be true. Capistrano 3 deploy is not working like this. Maybe with my change it worked but broke version 2? I have only tested with capistrano 3, although I don't think it should break. |
Oh nuts, you're right. Thanks! |
This hasn't been released yet, has it? |
I'm using the version from master. I would suggest the deployment code be moved to a different gem, so it can be released and tested separately. |
It will be released today.
|
@mperham great, thanks! |
Hi
This is a fix for the uninitialized constant Capistrano::VERSION (NameError) error I was getting.
Thanks.