1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fixed uninitialized constant Capistrano::VERSION (NameError)

Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>
This commit is contained in:
Yuri Tománek 2013-10-28 14:31:28 +10:30
parent d24f02c7a9
commit bf18fbdcf5

View file

@ -1,4 +1,4 @@
if Gem::Version.new(Capistrano::VERSION).release >= Gem::Version.new('3.0.0')
if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::VERSION).release >= Gem::Version.new('3.0.0')
load File.expand_path("../tasks/sidekiq.rake", __FILE__)
else
require_relative 'capistrano2'