Skip to content

Commit

Permalink
accomodate for jruby on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Aug 11, 2011
1 parent c561447 commit dd825b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/rautomation/adapter/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ module Helper
# @private
# Retrieves default {Adapter} for the current platform.
def default_adapter
case RUBY_PLATFORM
when /mswin|msys|mingw32/
:win_ffi
else
raise "unsupported platform for RAutomation: #{RUBY_PLATFORM}"
if ENV['OS'] == 'Windows_NT'
:win_ffi
else
raise "unsupported platform for RAutomation: #{RUBY_PLATFORM}"
end
end
end
Expand Down

0 comments on commit dd825b0

Please sign in to comment.