lib/bundler/ruby_version.rb in bundler-1.13.0.rc.1 vs lib/bundler/ruby_version.rb in bundler-1.13.0.rc.2

- old
+ new

@@ -40,11 +40,11 @@ # @private PATTERN = / ruby\s ([\d.]+) # ruby version - (?:p(\d+))? # optional patchlevel + (?:p(-?\d+))? # optional patchlevel (?:\s\((\S+)\s(.+)\))? # optional engine info /xo # Returns a RubyVersion from the given string. # @param [String] the version string to match. @@ -113,10 +113,12 @@ when "jruby" JRUBY_VERSION.dup else raise BundlerError, "RUBY_ENGINE value #{RUBY_ENGINE} is not recognized" end - @ruby_version ||= RubyVersion.new(ruby_version, RUBY_PATCHLEVEL.to_s, ruby_engine, ruby_engine_version) + patchlevel = RUBY_PATCHLEVEL.to_s + + @ruby_version ||= RubyVersion.new(ruby_version, patchlevel, ruby_engine, ruby_engine_version) end def to_gem_version_with_patchlevel @gem_version_with_patch ||= begin Gem::Version.create("#{@gem_version}.#{@patchlevel}")