Skip to content
Browse files

Various platform issues. Less lame IronRuby support. Trying to adress…

… disappearing a's on Windows MRI.
  • Loading branch information...
1 parent 24348ef commit e0f4f9ef01bc3114f88fec60d04daa1e65b76d3c @aslakhellesoy aslakhellesoy committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/cucumber/platform.rb
View
12 lib/cucumber/platform.rb
@@ -0,0 +1,12 @@
+# Detect the platform we're running on so we can tweak behaviour
+# in various places.
+require 'rbconfig'
+
+$CUCUMBER_JRUBY = defined?(JRUBY_VERSION)
+$CUCUMBER_IRONRUBY = Config::CONFIG['sitedir'] =~ /IronRuby/
+$CUCUMBER_WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/
+$CUCUMBER_WINDOWS_MRI = $CUCUMBER_WINDOWS && !$CUCUMBER_JRUBY && !$CUCUMBER_IRONRUBY
+
+if $CUCUMBER_IRONRUBY
+ ENV['GEM_PATH'] ||= "C:/ruby/lib/ruby/gems/1.8"
+end

0 comments on commit e0f4f9e

Please sign in to comment.
Something went wrong with that request. Please try again.