gherkin 2.2.7-universal-dotnet → 2.2.8-universal-dotnet

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,19 @@
1
- == 2.2.7 (2010-10-1)
1
+ == 2.2.8 (2010-10-04)
2
+
3
+ === Removed Features
4
+ * Trollop based CLI - didn't find a good use for it yet. (Aslak Hellesøy)
5
+
6
+ == 2.2.7 (2010-10-01)
2
7
 
3
8
  === Bugfixes
4
9
  * I18n.getCodeKeywords() on Java didn't strip '!'. Not anymore. (Aslak Hellesøy)
5
10
 
6
- == 2.2.6 (2010-10-1)
11
+ == 2.2.6 (2010-10-01)
7
12
 
8
13
  === Bugfixes
9
14
  * I18n.getCodeKeywords() on Java included '*'. Not anymore. (Aslak Hellesøy)
10
15
 
11
- == 2.2.5 (2010-10-1)
16
+ == 2.2.5 (2010-10-01)
12
17
 
13
18
  === New Features
14
19
  * Gherkin will scan all top comments for the language comment. (Aslak Hellesøy)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.7
1
+ 2.2.8
@@ -48,12 +48,11 @@ Gem::Specification.new do |s|
48
48
  s.add_development_dependency('rake-compiler', '~> 0.7.1')
49
49
  end
50
50
 
51
- s.add_dependency('trollop', '~> 1.16.2')
52
51
  s.add_dependency('json', '~> 1.4.6')
53
52
  s.add_dependency('term-ansicolor','~> 1.0.5')
54
53
 
55
54
  s.add_development_dependency('rake', '~> 0.8.7')
56
55
  s.add_development_dependency('awesome_print', '~> 0.2.1')
57
56
  s.add_development_dependency('rspec', '~> 2.0.0.beta.22')
58
- s.add_development_dependency('cucumber', '~> 0.9.0')
57
+ s.add_development_dependency('cucumber', '~> 0.9.1')
59
58
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
4
  prerelease: false
6
5
  segments:
7
6
  - 2
8
7
  - 2
9
- - 7
10
- version: 2.2.7
8
+ - 8
9
+ version: 2.2.8
11
10
  platform: universal-dotnet
12
11
  authors:
13
12
  - Mike Sassak
@@ -17,98 +16,77 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2010-10-03 00:00:00 +02:00
19
+ date: 2010-10-04 00:00:00 +02:00
21
20
  default_executable: gherkin
22
21
  dependencies:
23
- - !ruby/object:Gem::Dependency
24
- name: trollop
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 83
32
- segments:
33
- - 1
34
- - 16
35
- - 2
36
- version: 1.16.2
37
- type: :runtime
38
- version_requirements: *id001
39
22
  - !ruby/object:Gem::Dependency
40
23
  name: json
41
24
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
43
26
  none: false
44
27
  requirements:
45
28
  - - ~>
46
29
  - !ruby/object:Gem::Version
47
- hash: 11
48
30
  segments:
49
31
  - 1
50
32
  - 4
51
33
  - 6
52
34
  version: 1.4.6
53
35
  type: :runtime
54
- version_requirements: *id002
36
+ version_requirements: *id001
55
37
  - !ruby/object:Gem::Dependency
56
38
  name: term-ansicolor
57
39
  prerelease: false
58
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
59
41
  none: false
60
42
  requirements:
61
43
  - - ~>
62
44
  - !ruby/object:Gem::Version
63
- hash: 29
64
45
  segments:
65
46
  - 1
66
47
  - 0
67
48
  - 5
68
49
  version: 1.0.5
69
50
  type: :runtime
70
- version_requirements: *id003
51
+ version_requirements: *id002
71
52
  - !ruby/object:Gem::Dependency
72
53
  name: rake
73
54
  prerelease: false
74
- requirement: &id004 !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
75
56
  none: false
76
57
  requirements:
77
58
  - - ~>
78
59
  - !ruby/object:Gem::Version
79
- hash: 49
80
60
  segments:
81
61
  - 0
82
62
  - 8
83
63
  - 7
84
64
  version: 0.8.7
85
65
  type: :development
86
- version_requirements: *id004
66
+ version_requirements: *id003
87
67
  - !ruby/object:Gem::Dependency
88
68
  name: awesome_print
89
69
  prerelease: false
90
- requirement: &id005 !ruby/object:Gem::Requirement
70
+ requirement: &id004 !ruby/object:Gem::Requirement
91
71
  none: false
92
72
  requirements:
93
73
  - - ~>
94
74
  - !ruby/object:Gem::Version
95
- hash: 21
96
75
  segments:
97
76
  - 0
98
77
  - 2
99
78
  - 1
100
79
  version: 0.2.1
101
80
  type: :development
102
- version_requirements: *id005
81
+ version_requirements: *id004
103
82
  - !ruby/object:Gem::Dependency
104
83
  name: rspec
105
84
  prerelease: false
106
- requirement: &id006 !ruby/object:Gem::Requirement
85
+ requirement: &id005 !ruby/object:Gem::Requirement
107
86
  none: false
108
87
  requirements:
109
88
  - - ~>
110
89
  - !ruby/object:Gem::Version
111
- hash: 62196431
112
90
  segments:
113
91
  - 2
114
92
  - 0
@@ -117,27 +95,26 @@ dependencies:
117
95
  - 22
118
96
  version: 2.0.0.beta.22
119
97
  type: :development
120
- version_requirements: *id006
98
+ version_requirements: *id005
121
99
  - !ruby/object:Gem::Dependency
122
100
  name: cucumber
123
101
  prerelease: false
124
- requirement: &id007 !ruby/object:Gem::Requirement
102
+ requirement: &id006 !ruby/object:Gem::Requirement
125
103
  none: false
126
104
  requirements:
127
105
  - - ~>
128
106
  - !ruby/object:Gem::Version
129
- hash: 59
130
107
  segments:
131
108
  - 0
132
109
  - 9
133
- - 0
134
- version: 0.9.0
110
+ - 1
111
+ version: 0.9.1
135
112
  type: :development
136
- version_requirements: *id007
113
+ version_requirements: *id006
137
114
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
115
  email: cukes@googlegroups.com
139
- executables:
140
- - gherkin
116
+ executables: []
117
+
141
118
  extensions: []
142
119
 
143
120
  extra_rdoc_files:
@@ -156,7 +133,6 @@ files:
156
133
  - README.rdoc
157
134
  - Rakefile
158
135
  - VERSION
159
- - bin/gherkin
160
136
  - build_native_gems.sh
161
137
  - cucumber.yml
162
138
  - features/escaped_pipes.feature
@@ -181,7 +157,6 @@ files:
181
157
  - lib/.gitignore
182
158
  - lib/gherkin.rb
183
159
  - lib/gherkin/c_lexer.rb
184
- - lib/gherkin/cli/main.rb
185
160
  - lib/gherkin/formatter/argument.rb
186
161
  - lib/gherkin/formatter/colors.rb
187
162
  - lib/gherkin/formatter/escaping.rb
@@ -213,11 +188,6 @@ files:
213
188
  - lib/gherkin/rb_lexer/README.rdoc
214
189
  - lib/gherkin/rubify.rb
215
190
  - lib/gherkin/tag_expression.rb
216
- - lib/gherkin/tools.rb
217
- - lib/gherkin/tools/files.rb
218
- - lib/gherkin/tools/reformat.rb
219
- - lib/gherkin/tools/stats.rb
220
- - lib/gherkin/tools/stats_listener.rb
221
191
  - lib/gherkin/version.rb
222
192
  - ragel/i18n/.gitignore
223
193
  - ragel/lexer.c.rl.erb
@@ -295,7 +265,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
265
  requirements:
296
266
  - - ">="
297
267
  - !ruby/object:Gem::Version
298
- hash: 3
299
268
  segments:
300
269
  - 0
301
270
  version: "0"
@@ -304,7 +273,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
273
  requirements:
305
274
  - - ">="
306
275
  - !ruby/object:Gem::Version
307
- hash: 3
308
276
  segments:
309
277
  - 0
310
278
  version: "0"
@@ -314,7 +282,7 @@ rubyforge_project:
314
282
  rubygems_version: 1.3.7
315
283
  signing_key:
316
284
  specification_version: 3
317
- summary: gherkin-2.2.7
285
+ summary: gherkin-2.2.8
318
286
  test_files:
319
287
  - features/escaped_pipes.feature
320
288
  - features/feature_parser.feature
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
3
-
4
- require 'gherkin/cli/main'
5
- Gherkin::Cli::Main.run(ARGV)
@@ -1,33 +0,0 @@
1
- begin
2
- require 'trollop'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'trollop'
6
- end
7
- require 'gherkin/tools'
8
-
9
- module Gherkin
10
- module Cli
11
- class Main
12
- def self.run(args)
13
- Trollop::options(args) do
14
- banner "Super fast gherkin parser"
15
- stop_on Tools::SUB_COMMANDS
16
- end
17
-
18
- cmd_name = args.shift
19
- die("Missing command") if cmd_name.nil?
20
- begin
21
- cmd = Tools.const_get(cmd_name.capitalize.to_sym).new(args)
22
- cmd.run
23
- rescue => e
24
- Trollop::die(e.message + "\n#{e.backtrace.join("\n")}\n\nCommand: #{cmd_name}")
25
- end
26
- end
27
-
28
- def self.die(msg)
29
- Trollop::die("#{msg}\nusage: gherkin COMMAND [ARGS]\nAvailable commands: #{Tools::SUB_COMMANDS.join(' ')}")
30
- end
31
- end
32
- end
33
- end
@@ -1,8 +0,0 @@
1
- module Gherkin
2
- module Tools
3
- SUB_COMMANDS = %w(stats reformat)
4
- SUB_COMMANDS.each do |cmd|
5
- autoload cmd.capitalize.to_sym, "gherkin/tools/#{cmd}"
6
- end
7
- end
8
- end
@@ -1,34 +0,0 @@
1
- require 'gherkin'
2
-
3
- module Gherkin
4
- module Tools
5
- # Base class for file based operations
6
- class Files
7
- include Enumerable
8
-
9
- def initialize(paths)
10
- raise "Please specify one or more paths" if paths.empty?
11
- @paths = paths
12
- end
13
-
14
- def each(&proc)
15
- globs = @paths.map do |path|
16
- raise "#{path} does not exist" unless File.exist?(path)
17
- File.directory?(path) ? File.join(path, '**', '*.feature') : path
18
- end
19
-
20
- Dir[*globs].uniq.sort.each(&proc)
21
- end
22
-
23
- def parse(file, formatter)
24
- parser = Gherkin::Parser::Parser.new(formatter, true, "root")
25
- begin
26
- parser.parse(IO.read(file), file, 0)
27
- rescue => e
28
- e.message << " (#{file})"
29
- raise e
30
- end
31
- end
32
- end
33
- end
34
- end
@@ -1,20 +0,0 @@
1
- require 'stringio'
2
- require 'gherkin/tools/files'
3
- require 'gherkin/formatter/pretty_formatter'
4
- require 'gherkin/listener/formatter_listener'
5
-
6
- module Gherkin
7
- module Tools
8
- class Reformat < Files
9
- def run
10
- each do |file|
11
- io = defined?(JRUBY_VERSION) ? Java.java.io.StringWriter.new : StringIO.new
12
- formatter = Formatter::PrettyFormatter.new(io, true)
13
- parse(file, formatter)
14
- string = defined?(JRUBY_VERSION) ? io.getBuffer.toString : io.string
15
- File.open(file, 'w') {|io| io.write(string)}
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- require 'gherkin'
2
- require 'gherkin/tools/files'
3
- require 'gherkin/tools/stats_listener'
4
-
5
- module Gherkin
6
- module Tools
7
- class Stats < Files
8
- def run
9
- formatter = StatsFormatter.new
10
- each do |f|
11
- parser = Gherkin::Parser::Parser.new(formatter, true)
12
- parser.parse(IO.read(f), f, 0)
13
- end
14
- puts "Features: #{listener.features}"
15
- puts "Scenarios: #{listener.scenarios}"
16
- puts "Steps: #{listener.steps}"
17
- end
18
- end
19
- end
20
- end
@@ -1,60 +0,0 @@
1
- require 'gherkin/native'
2
-
3
- # encoding: utf-8
4
- module Gherkin
5
- module Tools
6
- class StatsListener
7
- implements 'gherkin.Listener'
8
-
9
- attr_reader :features, :scenarios, :steps
10
-
11
- def initialize
12
- @features = 0
13
- @scenarios = 0
14
- @steps = 0
15
- end
16
-
17
- def location(uri)
18
- end
19
-
20
- def tag(name, line)
21
- end
22
-
23
- def comment(content, line)
24
- end
25
-
26
- def feature(keyword, name, description, line)
27
- @features += 1
28
- end
29
-
30
- def background(keyword, name, description, line)
31
- end
32
-
33
- def scenario(keyword, name, description, line)
34
- @scenarios += 1
35
- end
36
-
37
- def scenario_outline(keyword, name, description, line)
38
- end
39
-
40
- def examples(keyword, name, description, line)
41
- end
42
-
43
- def step(keyword, name, line)
44
- @steps += 1
45
- end
46
-
47
- def row(row, line)
48
- end
49
-
50
- def py_string(string, line)
51
- end
52
-
53
- def syntax_error(state, event, legal_events, uri, line)
54
- end
55
-
56
- def eof
57
- end
58
- end
59
- end
60
- end