Permalink
Browse files

Choose platform more reliably. (Works with Jruby.)

  • Loading branch information...
1 parent 7f907a0 commit 0979db4675a50f0ca7ee232916a4afde49be02e4 John Hume committed with halogenandtoast Oct 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/capybara_webkit_builder.rb
@@ -1,4 +1,5 @@
require "fileutils"
+require "rbconfig"
module CapybaraWebkitBuilder
extend self
@@ -11,7 +12,7 @@ def make_bin
def makefile
qmake_binaries = ['qmake', 'qmake-qt4']
qmake = qmake_binaries.detect { |qmake| system("which #{qmake}") }
- case RUBY_PLATFORM
+ case RbConfig::CONFIG['host_os']
when /linux/
system("#{qmake} -spec linux-g++")
when /freebsd/

0 comments on commit 0979db4

Please sign in to comment.