Sha256: 71bd0079107fa5f435c9f1776478f00be1d6578ce1a2fb6810e6da902f4301d2

Contents?: true

Size: 850 Bytes

Versions: 16

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

16 entries across 16 versions & 2 rubygems

Version Path
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/platform.rb
cucumber-7.1.0 lib/cucumber/platform.rb
cucumber-7.0.0 lib/cucumber/platform.rb
cucumber-6.1.0 lib/cucumber/platform.rb
cucumber-6.0.0 lib/cucumber/platform.rb
cucumber-5.3.0 lib/cucumber/platform.rb
cucumber-5.2.0 lib/cucumber/platform.rb
cucumber-5.1.3 lib/cucumber/platform.rb
cucumber-5.1.2 lib/cucumber/platform.rb
cucumber-5.1.1 lib/cucumber/platform.rb
cucumber-5.1.0 lib/cucumber/platform.rb
cucumber-5.0.0 lib/cucumber/platform.rb
cucumber-4.1.0 lib/cucumber/platform.rb
cucumber-4.0.1 lib/cucumber/platform.rb
cucumber-4.0.0 lib/cucumber/platform.rb
cucumber-4.0.0.rc.6 lib/cucumber/platform.rb