lib/bundler/ruby_version.rb in bundler-1.4.0.pre.2 vs lib/bundler/ruby_version.rb in bundler-1.4.0.rc.1
- old
+ new
@@ -55,10 +55,18 @@
[ :patchlevel, patchlevel, other.patchlevel ]
else
nil
end
end
+
+ def host
+ @host ||= [
+ RbConfig::CONFIG["host_cpu"],
+ RbConfig::CONFIG["host_vendor"],
+ RbConfig::CONFIG["host_os"]
+ ].join("-")
+ end
end
# A subclass of RubyVersion that implements version,
# engine and engine_version based upon the current
# information in the system. It can be used anywhere
@@ -95,10 +103,10 @@
when "rbx"
Rubinius::VERSION.dup
when "jruby"
JRUBY_VERSION.dup
else
- raise BundlerError, "That RUBY_ENGINE is not recognized"
+ raise BundlerError, "RUBY_ENGINE value #{RUBY_ENGINE} is not recognized"
nil
end
end
def patchlevel