cucumber 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,8 @@
1
+ == 0.6.1 2010-01-03
2
+
3
+ === Bugfixes
4
+ * Fixed broken console handling on Windows/JRuby that was introduced in 0.6.0. (Aslak Hellesøy)
5
+
1
6
  == 0.6.0 2010-01-03
2
7
 
3
8
  Bumping to 0.6.0 for this release since we're breaking backwards compatibility with tags.
@@ -1,5 +1,5 @@
1
1
  ---
2
+ :patch: 1
3
+ :build:
2
4
  :major: 0
3
5
  :minor: 6
4
- :patch: 0
5
- :build:
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aslak Helles\303\270y"]
@@ -547,7 +547,7 @@ Gem::Specification.new do |s|
547
547
 
548
548
  (::) U P G R A D I N G (::)
549
549
 
550
- Thank you for installing cucumber-0.6.0.
550
+ Thank you for installing cucumber-0.6.1.
551
551
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
552
552
  for important information about this release. Happy cuking!
553
553
 
@@ -18,7 +18,7 @@ if Cucumber::WINDOWS_MRI
18
18
  end
19
19
  end
20
20
 
21
- Term::ANSIColor.coloring = false if !STDOUT.tty? and not ENV.has_key?("AUTOTEST")
21
+ Term::ANSIColor.coloring = false if !STDOUT.tty? && !ENV.has_key?("AUTOTEST")
22
22
 
23
23
  module Cucumber
24
24
  module Formatter
@@ -4,9 +4,15 @@ require 'cucumber/formatter/ansicolor'
4
4
  $KCODE='u' unless Cucumber::RUBY_1_9
5
5
 
6
6
  if Cucumber::WINDOWS
7
+ if Cucumber::WINDOWS_MRI
8
+ Cucumber::CODEPAGE = "cp#{Win32::Console::OutputCP()}"
9
+ elsif `cmd /c chcp` =~ /(\d+)/
10
+ Cucumber::CODEPAGE = "cp#{$1.to_i}"
11
+ else
12
+ raise "Cucumber couldn't detect the output codepage"
13
+ end
14
+
7
15
  require 'iconv'
8
- require 'Win32/Console/ANSI'
9
- Cucumber::CODEPAGE = "cp#{Win32::Console::OutputCP()}"
10
16
 
11
17
  module Cucumber
12
18
  module WindowsOutput #:nodoc:
@@ -32,9 +38,9 @@ if Cucumber::WINDOWS
32
38
  end
33
39
  end
34
40
 
35
- Kernel.extend(self) if STDOUT.tty?
36
- STDOUT.extend(self) if STDOUT.tty?
37
- STDERR.extend(self) if STDERR.tty?
41
+ Kernel.extend(self)
42
+ STDOUT.extend(self)
43
+ STDERR.extend(self)
38
44
  end
39
45
  end
40
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"
@@ -653,7 +653,7 @@ post_install_message: |+
653
653
 
654
654
  (::) U P G R A D I N G (::)
655
655
 
656
- Thank you for installing cucumber-0.6.0.
656
+ Thank you for installing cucumber-0.6.1.
657
657
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
658
658
  for important information about this release. Happy cuking!
659
659