Sha256: 597fb6dc458029eaae20999c2a2ec1e14e4179e8001074d6a61321f5cf24779e

Contents?: true

Size: 901 Bytes

Versions: 3

Compression:

Stored size: 901 Bytes

Contents

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

module Cucumber
  unless defined?(Cucumber::VERSION)
    VERSION       = File.read(File.expand_path("../version", __FILE__))
    BINARY        = File.expand_path(File.dirname(__FILE__) + '/../../bin/mobiusloop')
    LIBDIR        = File.expand_path(File.dirname(__FILE__) + '/../../lib')
    RAILS         = defined?(Rails)
    RUBY_BINARY   = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
    RUBY_2_2      = RUBY_VERSION =~ /^2\.2/
    RUBY_2_1      = RUBY_VERSION =~ /^2\.1/
    RUBY_2_3      = RUBY_VERSION =~ /^2\.3/

    class << self
      attr_accessor :use_full_backtrace

      # @private
      def file_mode(m, encoding="UTF-8")
        "#{m}:#{encoding}"
      end
    end
    self.use_full_backtrace = false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mobiusloop-0.1.5 lib/cucumber/platform.rb
mobiusloop-0.1.3 lib/cucumber/platform.rb
mobiusloop-0.1.2 lib/cucumber/platform.rb