Sha256: 3eb2e9f7a92f7515d5ad816ca4231b940c39a0b2586b33ee3c9be312281f0570

Contents?: true

Size: 844 Bytes

Versions: 5

Compression:

Stored size: 844 Bytes

Contents

# frozen_string_literal: true

# 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', __dir__))
    BINARY        = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
    LIBDIR        = File.expand_path(File.dirname(__FILE__) + '/../../lib')
    RAILS         = defined?(Rails)
    RUBY_BINARY   = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
    RUBY          = defined? RUBY_VERSION

    class << self
      attr_accessor :use_full_backtrace

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-4.0.0.rc.5 lib/cucumber/platform.rb
cucumber-4.0.0.rc.4 lib/cucumber/platform.rb
cucumber-4.0.0.rc.3 lib/cucumber/platform.rb
cucumber-4.0.0.rc.2 lib/cucumber/platform.rb
cucumber-4.0.0.rc.1 lib/cucumber/platform.rb