Sha256: 2dc9a1f2f3a86cf69fece4064415d0de683ac28242e16645676cc57515837042

Contents?: true

Size: 968 Bytes

Versions: 24

Compression:

Stored size: 968 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/

  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

24 entries across 24 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.101.2 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.101 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.102.1 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.102.2 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.102 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.103 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.104 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.98 lib/cucumber/platform.rb
aslakhellesoy-cucumber-0.3.99 lib/cucumber/platform.rb
dwaite-cucumber-0.3.101 lib/cucumber/platform.rb
engineyard-cucumber-0.3.101 lib/cucumber/platform.rb
kosmas58-cucumber-0.3.100 lib/cucumber/platform.rb
kosmas58-cucumber-0.3.102 lib/cucumber/platform.rb
kosmas58-cucumber-0.3.103 lib/cucumber/platform.rb
kosmas58-cucumber-0.3.98 lib/cucumber/platform.rb
kosmas58-cucumber-0.3.99 lib/cucumber/platform.rb
cucumber-0.3.104 lib/cucumber/platform.rb
cucumber-0.3.103 lib/cucumber/platform.rb
cucumber-0.3.102 lib/cucumber/platform.rb