Sha256: ce030079c4e66001f224f050da9333823264435d7bd2f884ca1df408aad70418

Contents?: true

Size: 850 Bytes

Versions: 6

Compression:

Stored size: 850 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__)).strip
    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

6 entries across 6 versions & 2 rubygems

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/platform.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/platform.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/platform.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/platform.rb
cucumber-8.0.0 lib/cucumber/platform.rb
cucumber-8.0.0.rc.1 lib/cucumber/platform.rb