Browse files

updated documentation and fixed a typo

  • Loading branch information...
1 parent 3ba4b08 commit bcfd1ac160959a0cf724d12ea85dacd45c426423 @roja committed Jan 23, 2010
Showing with 4 additions and 3 deletions.
  1. +2 −1 README.markdown
  2. +2 −2 lib/system.rb
View
3 README.markdown
@@ -26,7 +26,8 @@ Heres a few little examples of using system within your programs.
require 'rubygems'
require 'system'
- HostSystem::os => Current OS as a symbol i.e. :windows, :linux, :osx, :bsd
+ HostSystem::os # => Current OS as a symbol i.e. :windows, :linux, :osx, :bsd, :darwin, :solaris
+ HostSystem::jruby? # => Are we running on jruby?
## Note on Patches/Pull Requests ##
View
4 lib/system.rb
@@ -30,7 +30,7 @@ def os
when /linux/ then :linux
when /win/ then :windows
when /solaris/ then :solaris
- when /bsd/ then :basd
+ when /bsd/ then :bsd
when /darwin/ then :darwin
when /mac.*?os.*?x/ then :osx
else
@@ -41,7 +41,7 @@ def os
when /linux/ then :linux
when /win/ then :windows
when /solaris/ then :solaris
- when /bsd/ then :basd
+ when /bsd/ then :bsd
when /darwin/ then :darwin
else
:unknown

0 comments on commit bcfd1ac

Please sign in to comment.