Sha256: ea30c61bb6037f15032a142519f0e763ba918b23e2be535c0b7cae85076b1d16
Contents?: true
Size: 568 Bytes
Versions: 22
Compression:
Stored size: 568 Bytes
Contents
def ruby_19? !!(RUBY_VERSION =~ /^1.9/) end def ruby_18? !!(RUBY_VERSION =~ /^1.8/) end def windows? !!(RUBY_PLATFORM =~ /mswin|mingw|windows/) end def windows_win2k3? return false unless windows? require 'ruby-wmi' host = WMI::Win32_OperatingSystem.find(:first) (host.version && host.version.start_with?("5.2")) end # def jruby? def unix? !windows? end def os_x? !!(RUBY_PLATFORM =~ /darwin/) end def solaris? !!(RUBY_PLATFORM =~ /solaris/) end def freebsd? !!(RUBY_PLATFORM =~ /freebsd/) end DEV_NULL = windows? ? 'NUL' : '/dev/null'
Version data entries
22 entries across 22 versions & 1 rubygems