Sha256: 78311567cde45b9b97c48ec132b9cf6da3f3387d67e057de152c7f9fdd2785a0

Contents?: true

Size: 1.11 KB

Versions: 19

Compression:

Stored size: 1.11 KB

Contents

# Detect the platform we're running on so we can tweak behaviour
# in various places.
require 'rbconfig'
require 'yaml'

module Cucumber
  version       = YAML.load_file(File.dirname(__FILE__) + '/../../VERSION.yml')
  VERSION       = [version[:major], version[:minor], version[:patch], version[:build]].compact.join('.')
  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       = 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/

  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

19 entries across 19 versions & 1 rubygems

Version Path
cucumber-0.8.7 lib/cucumber/platform.rb
cucumber-0.8.5 lib/cucumber/platform.rb
cucumber-0.8.4 lib/cucumber/platform.rb
cucumber-0.8.3 lib/cucumber/platform.rb
cucumber-0.8.2 lib/cucumber/platform.rb
cucumber-0.8.1 lib/cucumber/platform.rb
cucumber-0.8.0 lib/cucumber/platform.rb
cucumber-0.7.3 lib/cucumber/platform.rb
cucumber-0.7.2 lib/cucumber/platform.rb
cucumber-0.7.1 lib/cucumber/platform.rb
cucumber-0.7.0 lib/cucumber/platform.rb
cucumber-0.7.0.beta.8 lib/cucumber/platform.rb
cucumber-0.7.0.beta.7 lib/cucumber/platform.rb
cucumber-0.7.0.beta.6 lib/cucumber/platform.rb
cucumber-0.7.0.beta.5 lib/cucumber/platform.rb
cucumber-0.7.0.beta.4 lib/cucumber/platform.rb
cucumber-0.7.0.beta.3 lib/cucumber/platform.rb
cucumber-0.7.0.beta.2 lib/cucumber/platform.rb
cucumber-0.7.0.beta.1 lib/cucumber/platform.rb