Stop coercing MACOS_VERSION to a float
This commit is contained in:
parent
ed3343565a
commit
e67286369e
@ -71,10 +71,10 @@ RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG[
|
||||
|
||||
if RUBY_PLATFORM =~ /darwin/
|
||||
MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
|
||||
MACOS_VERSION = MACOS_FULL_VERSION[/10\.\d+/].to_f
|
||||
MACOS_VERSION = MACOS_FULL_VERSION[/10\.\d+/]
|
||||
OS_VERSION = "Mac OS X #{MACOS_FULL_VERSION}"
|
||||
else
|
||||
MACOS_FULL_VERSION = MACOS_VERSION = 0
|
||||
MACOS_FULL_VERSION = MACOS_VERSION = "0"
|
||||
OS_VERSION = RUBY_PLATFORM
|
||||
end
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ RUBY_BIN = Pathname.new(RbConfig::CONFIG['bindir'])
|
||||
RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
|
||||
|
||||
MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
|
||||
MACOS_VERSION = ENV.fetch('MACOS_VERSION') { MACOS_FULL_VERSION[/10\.\d+/] }.to_f
|
||||
MACOS_VERSION = ENV.fetch('MACOS_VERSION') { MACOS_FULL_VERSION[/10\.\d+/] }
|
||||
|
||||
ORIGINAL_PATHS = ENV['PATH'].split(File::PATH_SEPARATOR).map{ |p| Pathname.new(p).expand_path rescue nil }.compact.freeze
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user