gherkin 2.3.2-x86-mingw32 → 2.3.3-x86-mingw32

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.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm @cucumber
1
+ rvm @cucumber --create
@@ -1,3 +1,10 @@
1
+ == 2.3.3 (2010-12-26)
2
+
3
+ === Changes
4
+ * No more dependencies on external ANSI escape libraries (Ruby:term-ansicolor, Java:Jansi). DIY is better! (Aslak Hellesøy)
5
+ * Added duration (in millseconds) to Result. (Aslak Hellesøy)
6
+ * Additional Polish aliases (Mike Połtyn)
7
+
1
8
  == 2.3.2 (2010-12-05)
2
9
 
3
10
  (Somehow 2.3.1 was released improperly shortly after 2.3.0 - not sure what fixes went into that!)
@@ -23,7 +23,7 @@ the C code.
23
23
 
24
24
  === Common dependencies
25
25
 
26
- These are the minimal tools you need to install, even if you are building non-Ruby packages.
26
+ These are the minimal tools you need to install:
27
27
 
28
28
  * Ragel (brew install ragel or apt-get install ragel)
29
29
  * Ruby (any version should do).
@@ -80,6 +80,15 @@ Now you can build the .NET dll with:
80
80
 
81
81
  === MinGW Rubies (for Windows gems)
82
82
 
83
+ In order to build Windows binaries (so we can release Windows gems from OS X/Linux) we need to set up rake-compiler.
84
+
85
+ http://github.com/luislavena/rake-compiler/
86
+
87
+ Now, let's install MinGW...
88
+
89
+ I didn't want to install macports (I'm on homebrew) and I couldn't figure out how to build MinGW myself. I got prebuilt binaries (version 4.3.0):
90
+ http://crossgcc.rts-software.org/doku.php - just add the bin folder to your PATH
91
+
83
92
  You must install MinGW rubies to build gems fow Windows.
84
93
  First you need to download and install MinGW:
85
94
 
@@ -123,14 +132,6 @@ Make sure you have openssl installed first.
123
132
  * rake gems:prepare && ./build_native_gems.sh && rake release:ALL
124
133
  * Announce on Cucumber list, IRC and Twitter.
125
134
 
126
- == Configuring Rake-Compiler for cross compilation
127
- In order to build Windows binaries (so we can release Windows gems from OS X/Linux) we need to set up rake-compiler.
128
-
129
- http://github.com/luislavena/rake-compiler/
130
-
131
- I didn't want to install macports (I'm on homebrew) and I couldn't figure out how to build MinGW myself. I got prebuilt binaries (version 4.3.0):
132
- http://crossgcc.rts-software.org/doku.php - just add the bin folder to your PATH
133
-
134
135
  == Note on Patches/Pull Requests
135
136
 
136
137
  * Fork the project.
data/Rakefile CHANGED
@@ -1,8 +1,10 @@
1
1
  # encoding: utf-8
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
- Bundler.setup
5
- Bundler::GemHelper.install_tasks
4
+ unless ENV['RUBY_CC_VERSION']
5
+ Bundler.setup
6
+ Bundler::GemHelper.install_tasks
7
+ end
6
8
  ENV['RUBYOPT'] = nil # Necessary to prevent Bundler from *&^%$#ing up rake-compiler.
7
9
 
8
10
  require 'rake/clean'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.2
1
+ 2.3.3
@@ -2,8 +2,6 @@ require 'stringio'
2
2
  require 'gherkin/formatter/pretty_formatter'
3
3
  require 'gherkin/json_parser'
4
4
 
5
- World(Gherkin::Formatter::Colors)
6
-
7
5
  Given /^a PrettyFormatter$/ do
8
6
  @io = StringIO.new
9
7
  @formatter = Gherkin::Formatter::PrettyFormatter.new(@io, true, false)
@@ -6,7 +6,6 @@ require 'gherkin/formatter/json_formatter'
6
6
  require 'gherkin/json_parser'
7
7
 
8
8
  module PrettyPlease
9
- include Gherkin::Formatter::Colors
10
9
 
11
10
  def pretty_machinery(gherkin, feature_path)
12
11
  io = StringIO.new
@@ -45,14 +45,17 @@ Gem::Specification.new do |s|
45
45
  s.files += Dir['lib/gherkin/rb_lexer/*.rb']
46
46
  s.files += Dir['ext/**/*.c']
47
47
  s.extensions = Dir['ext/**/extconf.rb']
48
- s.add_development_dependency('rake-compiler', '~> 0.7.1')
48
+ s.add_development_dependency('rake-compiler', '~> 0.7.5')
49
49
  end
50
50
 
51
51
  s.add_dependency('json', '~> 1.4.6')
52
- s.add_dependency('term-ansicolor','~> 1.0.5')
53
52
 
54
53
  s.add_development_dependency('rake', '~> 0.8.7')
54
+ s.add_development_dependency('bundler', '~> 1.0.7')
55
+ s.add_development_dependency('rspec', '~> 2.3.0')
55
56
  s.add_development_dependency('awesome_print', '~> 0.2.1')
56
- s.add_development_dependency('rspec', '~> 2.0.1')
57
57
  s.add_development_dependency('cucumber', '~> 0.10.0')
58
+ # Only needed by Cucumber. Remove when Cucumber no longer needs those.
59
+ s.add_development_dependency('term-ansicolor', '~> 1.0.5')
60
+ s.add_development_dependency('builder', '~> 3.0.0')
58
61
  end
@@ -1,9 +1,6 @@
1
- require 'term/ansicolor'
2
-
3
1
  module Gherkin
4
2
  module Formatter
5
- # Defines aliases for coloured output. You don't invoke any methods from this
6
- # module directly, but you can change the output colours by defining
3
+ # Defines aliases for ANSI coloured output. Default colours can be overridden by defining
7
4
  # a <tt>GHERKIN_COLORS</tt> variable in your shell, very much like how you can
8
5
  # tweak the familiar POSIX command <tt>ls</tt> with
9
6
  # <a href="http://mipsisrisc.com/rambling/2008/06/27/lscolorsls_colors-now-with-linux-support/">$LSCOLORS/$LS_COLORS</a>
@@ -39,8 +36,19 @@ module Gherkin
39
36
  # ruby -e "require 'rubygems'; require 'term/ansicolor'; puts Term::ANSIColor.attributes"
40
37
  #
41
38
  # Although not listed, you can also use <tt>grey</tt>
42
- module Colors
43
- include Term::ANSIColor
39
+ module AnsiEscapes
40
+ COLORS = {
41
+ 'black' => "\e[30m",
42
+ 'red' => "\e[31m",
43
+ 'green' => "\e[32m",
44
+ 'yellow' => "\e[33m",
45
+ 'blue' => "\e[34m",
46
+ 'magenta' => "\e[35m",
47
+ 'cyan' => "\e[36m",
48
+ 'white' => "\e[37m",
49
+ 'grey' => "\e[90m",
50
+ 'bold' => "\e[1m"
51
+ }
44
52
 
45
53
  ALIASES = Hash.new do |h,k|
46
54
  if k.to_s =~ /(.*)_arg/
@@ -65,55 +73,23 @@ module Gherkin
65
73
  end
66
74
  end
67
75
 
68
- ALIASES.each do |method, color|
69
- unless method =~ /.*_arg$/
70
- code = <<-EOF
71
- def #{method}(string=nil, &proc)
72
- #{ALIASES[method].split(",").join("(") + "(string, &proc" + ")" * ALIASES[method].split(",").length}
73
- end
74
- def #{method}_arg(string=nil, &proc)
75
- #{ALIASES[method+'_arg'].split(",").join("(") + "(string, &proc" + ")" * ALIASES[method+'_arg'].split(",").length}
76
- end
77
- EOF
78
- eval(code)
76
+ ALIASES.keys.each do |key|
77
+ define_method(key) do
78
+ ALIASES[key].split(',').map{|color| COLORS[color]}.join('')
79
79
  end
80
- end
81
-
82
- def self.define_grey #:nodoc:
83
- begin
84
- gem 'genki-ruby-terminfo'
85
- require 'terminfo'
86
- case TermInfo.default_object.tigetnum("colors")
87
- when 0
88
- raise "Your terminal doesn't support colours"
89
- when 1
90
- ::Term::ANSIColor.coloring = false
91
- alias grey white
92
- when 2..8
93
- alias grey white
94
- else
95
- define_real_grey
96
- end
97
- rescue Exception => e
98
- if e.class.name == 'TermInfo::TermInfoError'
99
- STDERR.puts "*** WARNING ***"
100
- STDERR.puts "You have the genki-ruby-terminfo gem installed, but you haven't set your TERM variable."
101
- STDERR.puts "Try setting it to TERM=xterm-256color to get grey colour in output"
102
- STDERR.puts "\n"
103
- alias grey white
104
- else
105
- define_real_grey
106
- end
80
+
81
+ define_method("#{key}_arg") do
82
+ ALIASES["#{key}_arg"].split(',').map{|color| COLORS[color]}.join('')
107
83
  end
108
84
  end
109
-
110
- def self.define_real_grey #:nodoc:
111
- def grey(m) #:nodoc:
112
- "\e[90m#{m}\e[0m"
113
- end
85
+
86
+ def reset
87
+ "\e[0m"
114
88
  end
115
89
 
116
- define_grey
90
+ def up(n)
91
+ "\e[#{n}A"
92
+ end
117
93
  end
118
94
  end
119
95
  end
@@ -221,10 +221,10 @@ module Gherkin
221
221
  class Result < Hashable
222
222
  native_impl('gherkin')
223
223
 
224
- attr_reader :status, :error_message
224
+ attr_reader :status, :duration, :error_message
225
225
 
226
- def initialize(status, error_message)
227
- @status, @error_message = status, error_message
226
+ def initialize(status, duration, error_message)
227
+ @status, @duration, @error_message = status, duration, error_message
228
228
  end
229
229
 
230
230
  def replay(formatter)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- require 'gherkin/formatter/colors'
2
+ require 'gherkin/formatter/ansi_escapes'
3
3
  require 'gherkin/formatter/step_printer'
4
4
  require 'gherkin/formatter/argument'
5
5
  require 'gherkin/formatter/escaping'
@@ -11,7 +11,7 @@ module Gherkin
11
11
  class PrettyFormatter
12
12
  native_impl('gherkin')
13
13
 
14
- include Colors
14
+ include AnsiEscapes
15
15
  include Escaping
16
16
 
17
17
  def initialize(io, monochrome, executing)
@@ -77,7 +77,7 @@ module Gherkin
77
77
  end
78
78
 
79
79
  def result(result)
80
- @io.write("\033[1A")
80
+ @io.write(up(1))
81
81
  print_step(result.status, @match.arguments, @match.location)
82
82
  end
83
83
 
@@ -107,14 +107,14 @@ module Gherkin
107
107
  end
108
108
 
109
109
  class ColorFormat
110
- include Colors
110
+ include AnsiEscapes
111
111
 
112
112
  def initialize(status)
113
113
  @status = status
114
114
  end
115
115
 
116
116
  def text(text)
117
- self.__send__(@status, text)
117
+ self.__send__(@status) + text + reset
118
118
  end
119
119
  end
120
120
 
@@ -221,13 +221,13 @@ module Gherkin
221
221
  l = (keyword+name).unpack("U*").length
222
222
  @max_step_length = [@max_step_length, l].max
223
223
  indent = @max_step_length - l
224
- ' ' * indent + ' ' + comments("# #{@uri}:#{line}")
224
+ ' ' * indent + ' ' + comments + "# #{@uri}:#{line}" + reset
225
225
  end
226
226
 
227
227
  def print_indented_step_location(location)
228
228
  indent = @max_step_length - @step_lengths[@step_index]
229
229
  return if location.nil?
230
- @io.write(' ' * indent + ' ' + comments("# #{location}"))
230
+ @io.write(' ' * indent + ' ' + comments + "# #{location}" + reset)
231
231
  end
232
232
  end
233
233
  end
@@ -412,10 +412,10 @@
412
412
  scenario: Scenariusz
413
413
  scenario_outline: Szablon scenariusza
414
414
  examples: Przykłady
415
- given: "*|Zakładając"
416
- when: "*|Jeżeli"
415
+ given: "*|Zakładając|Mając"
416
+ when: "*|Jeżeli|Jeśli"
417
417
  then: "*|Wtedy"
418
- and: "*|Oraz"
418
+ and: "*|Oraz|I"
419
419
  but: "*|Ale"
420
420
  "pt":
421
421
  name: Portuguese
@@ -72,7 +72,7 @@ module Gherkin
72
72
 
73
73
  def result(o)
74
74
  if(r = o['result'])
75
- Formatter::Model::Result.new(status(r), error_message(r)).replay(@formatter)
75
+ Formatter::Model::Result.new(status(r), duration(r), error_message(r)).replay(@formatter)
76
76
  end
77
77
  end
78
78
 
@@ -126,6 +126,10 @@ module Gherkin
126
126
  r['status']
127
127
  end
128
128
 
129
+ def duration(r)
130
+ r['duration']
131
+ end
132
+
129
133
  def error_message(r)
130
134
  r['error_message']
131
135
  end
@@ -142,11 +142,6 @@ module Gherkin
142
142
  %% write exec;
143
143
  end
144
144
 
145
- CRLF_RE = /\r\n/
146
- LF_RE = /[^\r]\n/
147
- CRLF = "\r\n"
148
- LF = "\n"
149
-
150
145
  def unindent(startcol, text)
151
146
  text.gsub(/^[\t ]{0,#{startcol}}/, "")
152
147
  end
@@ -166,8 +161,14 @@ module Gherkin
166
161
  utf8_pack(rest[0..rest.index(10)||-1]).strip
167
162
  end
168
163
 
169
- def utf8_pack(array)
170
- (RUBY_VERSION =~ /^1\.9/) ? array.pack("c*").force_encoding("UTF-8") : array.pack("c*")
164
+ if (RUBY_VERSION =~ /^1\.9/)
165
+ def utf8_pack(array)
166
+ array.pack("c*").force_encoding("UTF-8")
167
+ end
168
+ else
169
+ def utf8_pack(array)
170
+ array.pack("c*")
171
+ end
171
172
  end
172
173
  end
173
174
  end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+ require 'gherkin/formatter/ansi_escapes'
3
+
4
+ module Gherkin
5
+ module Formatter
6
+ describe AnsiEscapes do
7
+ include Gherkin::Formatter::AnsiEscapes
8
+
9
+ it "failed should be red" do
10
+ failed.should == "\e[31m"
11
+ end
12
+
13
+ it "failed arg should be red bold" do
14
+ failed_arg.should == "\e[31m\e[1m"
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -8,8 +8,6 @@ require 'gherkin/formatter/pretty_formatter'
8
8
  module Gherkin
9
9
  module Formatter
10
10
  describe FilterFormatter do
11
- include Colors
12
-
13
11
  attr_accessor :file
14
12
 
15
13
  before do
@@ -10,7 +10,7 @@ require 'stringio'
10
10
  module Gherkin
11
11
  module Formatter
12
12
  describe PrettyFormatter do
13
- include Colors
13
+ include AnsiEscapes
14
14
 
15
15
  def assert_io(s)
16
16
  actual = @io.string
@@ -40,11 +40,11 @@ module Gherkin
40
40
 
41
41
  step1 = Model::Step.new([], "Given ", "some stuff", 5)
42
42
  match1 = Model::Match.new([], "features/step_definitions/bar.rb:56")
43
- result1 = Model::Result.new('passed', nil)
43
+ result1 = Model::Result.new('passed', 22, nil)
44
44
 
45
45
  step2 = Model::Step.new([], "When ", "foo", 6)
46
46
  match2 = Model::Match.new([], "features/step_definitions/bar.rb:96")
47
- result2 = Model::Result.new('passed', nil)
47
+ result2 = Model::Result.new('passed', 33, nil)
48
48
 
49
49
  @f.steps([step1, step2])
50
50
  @f.scenario(Model::Scenario.new([], [], "Scenario", "The scenario", "", 4))
@@ -60,11 +60,11 @@ module Gherkin
60
60
  assert_io(%{Feature: Hello
61
61
  World
62
62
 
63
- Scenario: The scenario #{grey('# features/foo.feature:4')}
64
- #{grey('Given ')}#{grey('some stuff')} #{grey('# features/step_definitions/bar.rb:56')}
65
- \033[1A #{green('Given ')}#{green('some stuff')} #{grey('# features/step_definitions/bar.rb:56')}
66
- #{grey('When ')}#{grey('foo')} #{grey('# features/step_definitions/bar.rb:96')}
67
- \033[1A #{green('When ')}#{green('foo')} #{grey('# features/step_definitions/bar.rb:96')}
63
+ Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
64
+ #{executing}Given #{reset}#{executing}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
65
+ #{up(1)} #{passed}Given #{reset}#{passed}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
66
+ #{executing}When #{reset}#{executing}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
67
+ #{up(1)} #{passed}When #{reset}#{passed}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
68
68
  })
69
69
  end
70
70
 
@@ -73,7 +73,7 @@ module Gherkin
73
73
  @f.feature(Model::Feature.new([], [], "Feature", "Hello", "World", 1))
74
74
  step = Model::Step.new([], "Given ", "some stuff that is longer", 5)
75
75
  match = Model::Match.new([], "features/step_definitions/bar.rb:56")
76
- result = Model::Result.new('passed', nil)
76
+ result = Model::Result.new('passed', 0, nil)
77
77
 
78
78
  @f.steps([step])
79
79
  @f.scenario(Model::Scenario.new([], [], "Scenario", "The scenario", "", 4))
@@ -84,34 +84,26 @@ module Gherkin
84
84
  assert_io(%{Feature: Hello
85
85
  World
86
86
 
87
- Scenario: The scenario #{grey('# features/foo.feature:4')}
88
- #{grey('Given ')}#{grey('some stuff that is longer')} #{grey('# features/step_definitions/bar.rb:56')}
89
- \033[1A #{green('Given ')}#{green('some stuff that is longer')} #{grey('# features/step_definitions/bar.rb:56')}
87
+ Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
88
+ #{executing}Given #{reset}#{executing}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
89
+ #{up(1)} #{passed}Given #{reset}#{passed}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
90
90
  })
91
91
  end
92
92
 
93
93
  it "should highlight arguments for regular steps" do
94
94
  step = Model::Step.new([], "Given ", "I have 999 cukes in my belly", 3)
95
95
  match = Model::Match.new([Gherkin::Formatter::Argument.new(7, '999')], nil)
96
- result = Model::Result.new('passed', nil)
96
+ result = Model::Result.new('passed', 6, nil)
97
97
 
98
98
  @f.steps([step])
99
99
  @f.step(step)
100
100
  @f.match(match)
101
101
  @f.result(result)
102
102
 
103
- if defined?(JRUBY_VERSION)
104
- # Not terribly readable. The result on Java is different because JANSI uses semicolons when there are several codes.
105
- assert_io(
106
- " \e[90mGiven \e[0m\e[90mI have \e[0m\e[90m\e[1m999\e[0m\e[90m cukes in my belly\e[0m\n" +
107
- "\e[1A \e[32mGiven \e[0m\e[32mI have \e[0m\e[32;1m999\e[0m\e[32m cukes in my belly\e[0m\n"
108
- )
109
- else
110
- assert_io(
111
- " #{grey('Given ')}#{grey('I have ')}#{grey(bold('999'))}#{grey(' cukes in my belly')}\n" +
112
- "\033[1A #{green('Given ')}#{green('I have ')}#{green(bold('999'))}#{green(' cukes in my belly')}\n"
113
- )
114
- end
103
+ assert_io(
104
+ " #{executing}Given #{reset}#{executing}I have #{reset}#{executing_arg}999#{reset}#{executing} cukes in my belly#{reset}\n" +
105
+ "#{up(1)} #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
106
+ )
115
107
  end
116
108
 
117
109
  it "should prettify scenario" do
@@ -90,7 +90,8 @@ module Gherkin
90
90
  },
91
91
  "result": {
92
92
  "status": "failed",
93
- "error_message": "You suck"
93
+ "error_message": "You suck",
94
+ "duration": -1
94
95
  },
95
96
  "embeddings": [
96
97
  {
@@ -1,3 +1,4 @@
1
+ unless ENV['RUBY_CC_VERSION']
1
2
  require 'cucumber/rake/task'
2
3
 
3
4
  Cucumber::Rake::Task.new(:cucumber) do |t|
@@ -16,3 +17,4 @@ namespace :cucumber do
16
17
  end
17
18
  task :native_lexer => [:clean, :compile]
18
19
  end
20
+ end
@@ -13,7 +13,7 @@ namespace :gems do
13
13
 
14
14
  desc 'Prepare JRuby binares'
15
15
  task :jruby => [:jar] do
16
- sh "rvm jruby@cucumber -S rspec spec"
16
+ sh "rvm jruby@cucumber exec rspec spec"
17
17
  end
18
18
 
19
19
  desc 'Prepare IronRuby binaries'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
- - 2
9
- version: 2.3.2
8
+ - 3
9
+ version: 2.3.3
10
10
  platform: x86-mingw32
11
11
  authors:
12
12
  - Mike Sassak
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-05 00:00:00 +00:00
19
+ date: 2010-12-26 00:00:00 -06:00
20
20
  default_executable: gherkin
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -35,7 +35,7 @@ dependencies:
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: term-ansicolor
38
+ name: rake
39
39
  prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
@@ -43,14 +43,14 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  segments:
46
- - 1
47
46
  - 0
48
- - 5
49
- version: 1.0.5
50
- type: :runtime
47
+ - 8
48
+ - 7
49
+ version: 0.8.7
50
+ type: :development
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- name: rake
53
+ name: bundler
54
54
  prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
56
  none: false
@@ -58,14 +58,14 @@ dependencies:
58
58
  - - ~>
59
59
  - !ruby/object:Gem::Version
60
60
  segments:
61
+ - 1
61
62
  - 0
62
- - 8
63
63
  - 7
64
- version: 0.8.7
64
+ version: 1.0.7
65
65
  type: :development
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- name: awesome_print
68
+ name: rspec
69
69
  prerelease: false
70
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
@@ -73,14 +73,14 @@ dependencies:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  segments:
76
- - 0
77
76
  - 2
78
- - 1
79
- version: 0.2.1
77
+ - 3
78
+ - 0
79
+ version: 2.3.0
80
80
  type: :development
81
81
  version_requirements: *id004
82
82
  - !ruby/object:Gem::Dependency
83
- name: rspec
83
+ name: awesome_print
84
84
  prerelease: false
85
85
  requirement: &id005 !ruby/object:Gem::Requirement
86
86
  none: false
@@ -88,10 +88,10 @@ dependencies:
88
88
  - - ~>
89
89
  - !ruby/object:Gem::Version
90
90
  segments:
91
- - 2
92
91
  - 0
92
+ - 2
93
93
  - 1
94
- version: 2.0.1
94
+ version: 0.2.1
95
95
  type: :development
96
96
  version_requirements: *id005
97
97
  - !ruby/object:Gem::Dependency
@@ -109,6 +109,36 @@ dependencies:
109
109
  version: 0.10.0
110
110
  type: :development
111
111
  version_requirements: *id006
112
+ - !ruby/object:Gem::Dependency
113
+ name: term-ansicolor
114
+ prerelease: false
115
+ requirement: &id007 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ segments:
121
+ - 1
122
+ - 0
123
+ - 5
124
+ version: 1.0.5
125
+ type: :development
126
+ version_requirements: *id007
127
+ - !ruby/object:Gem::Dependency
128
+ name: builder
129
+ prerelease: false
130
+ requirement: &id008 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ~>
134
+ - !ruby/object:Gem::Version
135
+ segments:
136
+ - 3
137
+ - 0
138
+ - 0
139
+ version: 3.0.0
140
+ type: :development
141
+ version_requirements: *id008
112
142
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
113
143
  email: cukes@googlegroups.com
114
144
  executables: []
@@ -150,14 +180,13 @@ files:
150
180
  - gherkin.gemspec
151
181
  - ikvm/.gitignore
152
182
  - java/.gitignore
153
- - java/Gherkin.iml
154
183
  - java/src/main/java/gherkin/lexer/i18n/.gitignore
155
184
  - java/src/main/resources/gherkin/.gitignore
156
185
  - lib/.gitignore
157
186
  - lib/gherkin.rb
158
187
  - lib/gherkin/c_lexer.rb
188
+ - lib/gherkin/formatter/ansi_escapes.rb
159
189
  - lib/gherkin/formatter/argument.rb
160
- - lib/gherkin/formatter/colors.rb
161
190
  - lib/gherkin/formatter/escaping.rb
162
191
  - lib/gherkin/formatter/filter_formatter.rb
163
192
  - lib/gherkin/formatter/hashable.rb
@@ -211,7 +240,7 @@ files:
211
240
  - spec/gherkin/fixtures/simple_with_comments.feature
212
241
  - spec/gherkin/fixtures/simple_with_tags.feature
213
242
  - spec/gherkin/fixtures/with_bom.feature
214
- - spec/gherkin/formatter/colors_spec.rb
243
+ - spec/gherkin/formatter/ansi_escapes_spec.rb
215
244
  - spec/gherkin/formatter/filter_formatter_spec.rb
216
245
  - spec/gherkin/formatter/model_spec.rb
217
246
  - spec/gherkin/formatter/pretty_formatter_spec.rb
@@ -367,7 +396,7 @@ rubyforge_project:
367
396
  rubygems_version: 1.3.7
368
397
  signing_key:
369
398
  specification_version: 3
370
- summary: gherkin-2.3.2
399
+ summary: gherkin-2.3.3
371
400
  test_files:
372
401
  - features/escaped_pipes.feature
373
402
  - features/feature_parser.feature
@@ -400,7 +429,7 @@ test_files:
400
429
  - spec/gherkin/fixtures/simple_with_comments.feature
401
430
  - spec/gherkin/fixtures/simple_with_tags.feature
402
431
  - spec/gherkin/fixtures/with_bom.feature
403
- - spec/gherkin/formatter/colors_spec.rb
432
+ - spec/gherkin/formatter/ansi_escapes_spec.rb
404
433
  - spec/gherkin/formatter/filter_formatter_spec.rb
405
434
  - spec/gherkin/formatter/model_spec.rb
406
435
  - spec/gherkin/formatter/pretty_formatter_spec.rb
@@ -1,18 +0,0 @@
1
- require 'spec_helper'
2
- require 'gherkin/formatter/colors'
3
-
4
- module Gherkin
5
- module Formatter
6
- describe Colors do
7
- include Gherkin::Formatter::Colors
8
-
9
- it "should colour stuff red" do
10
- failed("hello").should == "\e[31mhello\e[0m"
11
- end
12
-
13
- it "should be possible to specify no colouring" do
14
- uncolored(failed("hello")).should == "hello"
15
- end
16
- end
17
- end
18
- end