From: Roger Pack on
Initial release of the OS gem.
The OS gem allows for some easy telling if you're on windows or not.

>> require 'os'
=> true

>> OS.bits
=> 32

=> true

>> OS.ruby_exe
=> "c:\ruby18\bin\ruby.exe" # or "/usr/local/bin/ruby" or what not

>> OS.posix?
=> false

If there are any other features you'd like, let me know.

Platform gem

Posted via