Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

='u' is no longer done automatically.

  • Loading branch information...
commit ec82b0ed7f41c5a7c1ed8359f82c3462d99eb48c 1 parent 3a15d39
@aslakhellesoy aslakhellesoy authored
View
1  History.txt
@@ -23,6 +23,7 @@ This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
* Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk)
=== Removed features
+* $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb.
* Step definition without a block being treated as pending (#64 Joseph Wilk)
* The --line option has been removed. Use the new file.feature:line format instead.
View
1  examples/i18n/ar/features/step_definitons/calculator_steps.rb
@@ -1,3 +1,4 @@
+$KCODE='u'
require 'spec'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'
View
1  lib/cucumber.rb
@@ -1,6 +1,7 @@
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+require 'jcode'
require 'cucumber/platform'
require 'rubygems'
require 'treetop/runtime'
View
10 lib/cucumber/formatters/ansicolor.rb
@@ -1,8 +1,7 @@
-gem 'term-ansicolor'
-
# Hack to work around Win32/Console, which bundles a licence-violating, outdated
# copy of term/ansicolor that doesn't implement Term::ANSIColor#coloring=.
# We want the official one!
+gem 'term-ansicolor'
$LOAD_PATH.each{|path| $LOAD_PATH.unshift($LOAD_PATH.delete(path)) if path =~ /term-ansicolor/}
require 'term/ansicolor'
@@ -10,15 +9,12 @@
begin
require 'Win32/Console/ANSI'
rescue LoadError
- STDERR.puts "You must gem install win32console to get coloured output on this ruby platform (#{PLATFORM})"
+ STDERR.puts "You must gem install win32console to get coloured output on MRI/Windows"
Term::ANSIColor.coloring = false
end
-else
- $KCODE='u'
end
Term::ANSIColor.coloring = false if !STDOUT.tty? || ($CUCUMBER_WINDOWS && !$CUCUMBER_WINDOWS_MRI)
-require 'jcode'
module Cucumber
module Formatters
@@ -91,7 +87,7 @@ module ANSIColor
end
end
- #Not supported in Term::ANSIColor
+ # Not supported in Term::ANSIColor
def grey(m)
if ::Term::ANSIColor.coloring?
"\e[90m#{m}\e[0m"
View
1  spec/spec_helper.rb
@@ -2,6 +2,7 @@
gem 'rspec'
require 'spec'
+$KCODE='u'
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'cucumber'
require 'cucumber/treetop_parser/feature_en'
Please sign in to comment.
Something went wrong with that request. Please try again.