6
unless defined?(Cucumber::VERSION)
8
BINARY = '/usr/bin/cucumber'
9
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/..')
10
JRUBY = defined?(JRUBY_VERSION)
11
IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
12
WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
13
OS_X = RbConfig::CONFIG['host_os'] =~ /darwin/
14
WINDOWS_MRI = WINDOWS && !JRUBY && !IRONRUBY
15
RAILS = defined?(Rails)
16
RUBY_BINARY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
17
RUBY_2_1 = RUBY_VERSION =~ /^2\.1/
18
RUBY_2_0 = RUBY_VERSION =~ /^2\.0/
19
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
20
RUBY_1_8_7 = RUBY_VERSION =~ /^1\.8\.7/
23
attr_accessor :use_full_backtrace
25
def file_mode(m, encoding="UTF-8") #:nodoc:
26
RUBY_1_8_7 ? m : "#{m}:#{encoding}"
6
unless defined?(Cucumber::VERSION)
8
BINARY = '/usr/bin/cucumber'
9
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/..')
10
JRUBY = defined?(JRUBY_VERSION)
11
WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
12
OS_X = RbConfig::CONFIG['host_os'] =~ /darwin/
13
WINDOWS_MRI = WINDOWS && !JRUBY
14
RAILS = defined?(Rails)
15
RUBY_BINARY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
16
RUBY_2_2 = RUBY_VERSION =~ /^2\.2/
17
RUBY_2_1 = RUBY_VERSION =~ /^2\.1/
18
RUBY_2_0 = RUBY_VERSION =~ /^2\.0/
19
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
22
attr_accessor :use_full_backtrace
25
def file_mode(m, encoding="UTF-8")
29
self.use_full_backtrace = false
29
self.use_full_backtrace = false