lib/cucumber/platform.rb in cucumber-0.10.0 vs lib/cucumber/platform.rb in cucumber-0.10.1
- old
+ new
@@ -2,11 +2,11 @@
# in various places.
require 'rbconfig'
module Cucumber
unless defined?(Cucumber::VERSION)
- VERSION = '0.10.0'
+ VERSION = '0.10.1'
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY = defined?(JRUBY_VERSION)
IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
@@ -18,11 +18,11 @@
RUBY_1_8_7 = RUBY_VERSION =~ /^1\.8\.7/
class << self
attr_accessor :use_full_backtrace
- def file_mode(m) #:nodoc:
- RUBY_1_9 ? "#{m}:UTF-8" : m
+ def file_mode(m, encoding="UTF-8") #:nodoc:
+ RUBY_1_9 ? "#{m}:#{encoding}" : m
end
end
self.use_full_backtrace = false
end
end