lib/cucumber/platform.rb in cucumber-0.4.3 vs lib/cucumber/platform.rb in cucumber-0.4.4

- old
+ new

@@ -9,12 +9,13 @@ LANGUAGE_FILE = File.expand_path(File.dirname(__FILE__) + '/languages.yml') LANGUAGES = YAML.load_file(LANGUAGE_FILE) BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber') LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib') JRUBY = defined?(JRUBY_VERSION) - IRONRUBY = Config::CONFIG['sitedir'] =~ /IronRuby/i + IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby" WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/ + OS_X = Config::CONFIG['host_os'] =~ /darwin/ WINDOWS_MRI = WINDOWS && !JRUBY && !IRONRUBY RAILS = defined?(Rails) RUBY_BINARY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) RUBY_1_9 = RUBY_VERSION =~ /^1\.9/ RUBY_1_8_7 = RUBY_VERSION =~ /^1\.8\.7/ @@ -25,6 +26,6 @@ def file_mode(m) #:nodoc: RUBY_1_9 ? "#{m}:UTF-8" : m end end self.use_full_backtrace = false -end \ No newline at end of file +end