diff options
author | Hemant Kumar <gethemant@gmail.com> | 2013-07-25 13:29:17 +0530 |
---|---|---|
committer | Hemant Kumar <gethemant@gmail.com> | 2013-07-25 23:56:36 +0530 |
commit | d621358c6236b96ae1b6eeb063e749eac7567ada (patch) | |
tree | cd38f8a5b64bf5d04bc5909c152a0e3a1af18991 /lib/bundler/current_ruby.rb | |
parent | 1a493004fd0646d53633eadcb02de17b206289b9 (diff) | |
download | bundler-d621358c6236b96ae1b6eeb063e749eac7567ada.tar.gz |
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
Diffstat (limited to 'lib/bundler/current_ruby.rb')
-rw-r--r-- | lib/bundler/current_ruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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/ |