From d621358c6236b96ae1b6eeb063e749eac7567ada Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 25 Jul 2013 13:29:17 +0530 Subject: Load current_ruby from shared_helpers.rb In case of commands run via bundle exec, we do not require all of bundler in that environment and we only require bundler/setup there. Which creates problems because Bundler is unable to find current_ruby therej --- lib/bundler/current_ruby.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/bundler/current_ruby.rb') diff --git a/lib/bundler/current_ruby.rb b/lib/bundler/current_ruby.rb index a08d353947..bbb9e41303 100644 --- a/lib/bundler/current_ruby.rb +++ b/lib/bundler/current_ruby.rb @@ -1,4 +1,11 @@ module Bundler + # Returns current version of Ruby + # + # @return [CurrentRuby] Current version of Ruby + def self.current_ruby + @current_ruby ||= CurrentRuby.new + end + class CurrentRuby def on_18? RUBY_VERSION =~ /^1\.8/ -- cgit v1.2.1