diff options
author | Andre Arko <andre@arko.net> | 2013-02-24 21:14:52 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-02-24 21:14:52 -0800 |
commit | 54af1f2bf2656ffea5fc96a49bbe0b99cbcac66e (patch) | |
tree | 63d6281c7c96ed72d5e31946b7b8bd0c02aff288 /lib | |
parent | 7548b2e0bb30d8bf1260bca4af27bd0ed9e4358b (diff) | |
download | bundler-54af1f2bf2656ffea5fc96a49bbe0b99cbcac66e.tar.gz |
memoize system gem version
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/ruby_version.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb index 2492c94c68..9fff1431ad 100644 --- a/lib/bundler/ruby_version.rb +++ b/lib/bundler/ruby_version.rb @@ -70,6 +70,10 @@ module Bundler RUBY_VERSION.dup end + def gem_version + @gem_version ||= Gem::Version.new(version) + end + def engine if defined?(RUBY_ENGINE) RUBY_ENGINE.dup |