Skip to content
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

Merged
merged 2 commits into from
Oct 28, 2013
Merged

Fix for uninitialized constant Capistrano::VERSION (NameError) #1288

merged 2 commits into from
Oct 28, 2013

Conversation

yuritomanek
Copy link

Hi

This is a fix for the uninitialized constant Capistrano::VERSION (NameError) error I was getting.

Thanks.

Yuri Tománek added 2 commits October 28, 2013 14:31
Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>
Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>
mperham added a commit that referenced this pull request Oct 28, 2013
Fix for uninitialized constant Capistrano::VERSION (NameError)
@mperham mperham merged commit 3f70bfb into sidekiq:master Oct 28, 2013
@juanibiapina
Copy link
Contributor

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.

@mperham
Copy link
Collaborator

mperham commented Oct 28, 2013

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:

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.


Reply to this email directly or view it on GitHubhttps://github.com//pull/1288#issuecomment-27220430
.

@juanibiapina
Copy link
Contributor

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.

@mperham
Copy link
Collaborator

mperham commented Oct 28, 2013

Oh nuts, you're right. Thanks!

@tisba
Copy link

tisba commented Oct 30, 2013

This hasn't been released yet, has it?

@juanibiapina
Copy link
Contributor

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.

@mperham
Copy link
Collaborator

mperham commented Oct 30, 2013

It will be released today.

On Oct 30, 2013, at 4:42, Sebastian Cohnen notifications@github.com wrote:

This hasn't been released yet, has it?


Reply to this email directly or view it on GitHub.

@tisba
Copy link

tisba commented Oct 30, 2013

@mperham great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants