You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

platform.rb 856 B

2 years ago
123456789101112131415161718192021222324252627
  1. # frozen_string_literal: true
  2. # Detect the platform we're running on so we can tweak behaviour
  3. # in various places.
  4. require 'rbconfig'
  5. require 'cucumber/core/platform'
  6. module Cucumber
  7. unless defined?(Cucumber::VERSION)
  8. VERSION = File.read(File.expand_path('../../VERSION', __dir__)).strip
  9. BINARY = File.expand_path("#{File.dirname(__FILE__)}/../../bin/cucumber")
  10. LIBDIR = File.expand_path("#{File.dirname(__FILE__)}/../../lib")
  11. RAILS = defined?(Rails)
  12. RUBY_BINARY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
  13. RUBY = defined? RUBY_VERSION
  14. class << self
  15. attr_accessor :use_full_backtrace
  16. # @private
  17. def file_mode(mode, encoding = 'UTF-8')
  18. "#{mode}:#{encoding}"
  19. end
  20. end
  21. self.use_full_backtrace = false
  22. end
  23. end

No Description

Contributors (1)