Sha256: a4013deeec7a190fc901e2e33f0e270ce17f707403eaf59445e73f7a8ef47f1d
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# Detect the platform we're running on so we can tweak behaviour # in various places. require 'rbconfig' module Cucumber unless defined?(Cucumber::VERSION) VERSION = '1.2.1.cb2' BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber') LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib') JRUBY = defined?(JRUBY_VERSION) IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby" WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ OS_X = RbConfig::CONFIG['host_os'] =~ /darwin/ WINDOWS_MRI = WINDOWS && !JRUBY && !IRONRUBY RAILS = defined?(Rails) RUBY_BINARY = File.join(RbConfig::CONFIG['bindir'], RbConfig::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, encoding="UTF-8") #:nodoc: RUBY_1_9 ? "#{m}:#{encoding}" : m end end self.use_full_backtrace = false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
casecumber-1.2.1.cb2 | lib/cucumber/platform.rb |