Skip to content

Commit

Permalink
updated documentation and fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
roja committed Jan 23, 2010
1 parent 3ba4b08 commit bcfd1ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##

Expand Down
4 changes: 2 additions & 2 deletions lib/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bcfd1ac

Please sign in to comment.