Sha256: b54dd67024f610a8526353e6a294263ac24bda1e7f2dd2b3ca1152013fdb549e

Contents?: true

Size: 709 Bytes

Versions: 7

Compression:

Stored size: 709 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
  VERSION       = File.read(File.expand_path('../../VERSION', __dir__)).strip
  BINARY        = File.expand_path("#{File.dirname(__FILE__)}/../../bin/cucumber")
  LIBDIR        = File.expand_path("#{File.dirname(__FILE__)}/../../lib")
  RUBY_BINARY   = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])

  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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
cucumber-9.2.0 lib/cucumber/platform.rb
cucumber-9.1.2 lib/cucumber/platform.rb
cucumber-9.1.1 lib/cucumber/platform.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/platform.rb
cucumber-9.1.0 lib/cucumber/platform.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.0.2/lib/cucumber/platform.rb
cucumber-9.0.2 lib/cucumber/platform.rb