lib/rvm/capistrano/base.rb in rvm-capistrano-1.5.2 vs lib/rvm/capistrano/base.rb in rvm-capistrano-1.5.3

- old
+ new

@@ -75,10 +75,10 @@ end # evaluate :rvm_ruby_string => :local set :rvm_ruby_string_evaluated do value = fetch(:rvm_ruby_string, :default) if value.to_sym == :local - if defined? ENV['RUBY_VERSION'] + unless ENV['RUBY_VERSION'].nil? value = ENV['RUBY_VERSION'].gsub('ruby-','') else value = ENV['GEM_HOME'].gsub(/.*\//,"") end end