Roger Pack wrote:
> Initial release of the OS gem.
> The OS gem allows for some easy telling if you're on windows or not.
> 
>>> require 'os'
>>> OS.windows? 
> => true
> 
>>> OS.bits
> => 32
> 
>>> OS.java?
> => 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.

Does it do OS.mac? yet?  If not, that would be nice, particularly for 
JRuby/Swing apps where certain UI stuff is done differently for Mac OS.

> 
> github.com/rdp/os
> 
> Related:
>   Gem.ruby
>   Platform gem
> 
> -rp

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen / marnen.org
-- 
Posted via http://www.ruby-forum.com/.