lib/bundler/definition.rb in bundler-1.4.0.pre.2 vs lib/bundler/definition.rb in bundler-1.4.0.rc.1

- old
+ new

@@ -367,20 +367,19 @@ end def validate_ruby! return unless ruby_version - system_ruby_version = Bundler::SystemRubyVersion.new - if diff = ruby_version.diff(system_ruby_version) + if diff = ruby_version.diff(Bundler.ruby_version) problem, expected, actual = diff msg = case problem when :engine "Your Ruby engine is #{actual}, but your Gemfile specified #{expected}" when :version "Your Ruby version is #{actual}, but your Gemfile specified #{expected}" when :engine_version - "Your #{system_ruby_version.engine} version is #{actual}, but your Gemfile specified #{ruby_version.engine} #{expected}" + "Your #{Bundler.ruby_version.engine} version is #{actual}, but your Gemfile specified #{ruby_version.engine} #{expected}" when :patchlevel "Your Ruby patchlevel is #{actual}, but your Gemfile specified #{expected}" end raise RubyVersionMismatch, msg