lib/cucumber/platform.rb in cucumber-3.2.0 vs lib/cucumber/platform.rb in cucumber-4.0.0.rc.1

- old
+ new

@@ -5,22 +5,22 @@ require 'rbconfig' require 'cucumber/core/platform' module Cucumber unless defined?(Cucumber::VERSION) - VERSION = File.read(File.expand_path('../version', __FILE__)) + 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(m, encoding = 'UTF-8') - "#{m}:#{encoding}" + def file_mode(mode, encoding = 'UTF-8') + "#{mode}:#{encoding}" end end self.use_full_backtrace = false end end