lib/jruby_art/config.rb in jruby_art-1.4.9 vs lib/jruby_art/config.rb in jruby_art-1.5.0
- old
+ new
@@ -27,13 +27,14 @@
class HostOS
def self.os
detect_os = RbConfig::CONFIG['host_os']
case detect_os
when /mac|darwin/ then :mac
+ when /gnueabihf/ then :arm
when /linux/ then :linux
when /solaris|bsd/ then :unix
else
- WIN_PATTERNS.find { |reg| detect_os =~ reg }
+ WIN_PATTERNS.find { |reg| reg.match?(detect_os) }
raise "unsupported os: #{detect_os.inspect}" if Regexp.last_match.nil?
:windows
end
end
end