lib/deploy-context/deploy/ruby.rb in deploy-context-2.0.10.1.g6db0997 vs lib/deploy-context/deploy/ruby.rb in deploy-context-2.0.10.1.g6db0997.1.gafb2bd3

- old
+ new

@@ -39,10 +39,12 @@ `chef gem list #{context.context_name}` # sleep(60) end def gem_installed?(context) - Gem::Specification.find_by_name(context.context_name).version == context.version + installed_version = Gem::Specification.find_by_name(context.context_name).version + puts "Compare #{context.context_name} installed_version #{installed_version} with #{context.version}" + installed_version == context.version end def ruby_cycle(context) if context.new_update_available? context.clean