Sha256: 607810cba7f71040fa67ac8d6a0abd6da9c8184ee92eb30f7e21fe7ac8d358c4
Contents?: true
Size: 1013 Bytes
Versions: 2
Compression:
Stored size: 1013 Bytes
Contents
# Detect the platform we're running on so we can tweak behaviour # in various places. require 'rbconfig' require 'yaml' module Cucumber 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/ WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/ 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/ class << self attr_accessor :use_full_backtrace def file_mode(m) #:nodoc: RUBY_1_9 ? "#{m}:UTF-8" : m end end self.use_full_backtrace = false end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-0.4.0 | lib/cucumber/platform.rb |
cucumber-0.4.0.rc1 | lib/cucumber/platform.rb |