gherkin 1.0.0 → 1.0.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.
@@ -10,8 +10,7 @@ that makes it possible to plug in a builder that can build an AST.
10
10
 
11
11
  == Testing
12
12
 
13
- rake ragel
14
- rake spec cucumber
13
+ rake clean spec cucumber
15
14
 
16
15
  == Cleaning generated code
17
16
 
@@ -20,12 +19,12 @@ rake clobber
20
19
  == Release process
21
20
 
22
21
  Run just "rake clean spec cucumber" for each platform (1.8.6, 1.8.7, 1.9, jruby) to make sure all is green.
23
- Make sure jruby was run last, so the jar file is left intact.
24
22
 
25
- 0) rvm 1.8.7
26
- 1) Bump version in the VERSION file
23
+ 1) rvm 1.8.7
24
+ 2) Bump version in the VERSION file
25
+ 3) rake clean jar compile
27
26
  2) rake gemspec
28
- 3) Commit everything
27
+ 3) git commit -a -m "Release vX.Y.Z"
29
28
  4) rake release
30
29
  5) ./nativegems.sh
31
30
  6) gem push pkg/... (for each native gem)
data/Rakefile CHANGED
@@ -13,7 +13,8 @@ begin
13
13
  gem.email = "cukes@googlegroups.com"
14
14
  gem.homepage = "http://github.com/aslakhellesoy/gherkin"
15
15
  gem.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
16
- gem.executables = ["gherkin"]
16
+ gem.default_executable = "gherkin"
17
+ gem.executables = ["gherkin", "gherkin-purdy"]
17
18
  gem.add_development_dependency "rspec", "1.2.9"
18
19
  gem.add_development_dependency "cucumber", "0.4.4"
19
20
  gem.add_development_dependency "rake-compiler", "0.6.0" unless defined?(JRUBY_VERSION)
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 0
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 1
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
3
+
4
+ require 'stringio'
5
+ require 'gherkin'
6
+ require 'gherkin/tools/pretty_printer'
7
+
8
+ Dir[ARGV[0]].each do |f|
9
+ purdy = StringIO.new
10
+ listener = Gherkin::Tools::PrettyPrinter.new(purdy)
11
+ parser = Gherkin::Parser.new(listener, true) # We could skip the parser here, if we don't want to verify well-formedness
12
+ lexer = Gherkin::I18nLexer.new(parser)
13
+ lexer.scan(IO.read(f))
14
+ purdy.rewind
15
+ File.open(f, 'w') {|io| io.write(purdy.read)}
16
+ end
@@ -5,15 +5,16 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gherkin}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Helles\303\270y"]
12
- s.date = %q{2009-12-01}
12
+ s.date = %q{2009-12-02}
13
13
  s.default_executable = %q{gherkin}
14
14
  s.description = %q{A fast Gherkin lexer in Ragel}
15
15
  s.email = %q{cukes@googlegroups.com}
16
- s.executables = ["gherkin"]
16
+ s.executables = ["gherkin", "gherkin-purdy"]
17
+ s.extensions = ["ext/gherkin_lexer_ar/extconf.rb", "ext/gherkin_lexer_bg/extconf.rb", "ext/gherkin_lexer_cat/extconf.rb", "ext/gherkin_lexer_cs/extconf.rb", "ext/gherkin_lexer_cy/extconf.rb", "ext/gherkin_lexer_da/extconf.rb", "ext/gherkin_lexer_de/extconf.rb", "ext/gherkin_lexer_en/extconf.rb", "ext/gherkin_lexer_enau/extconf.rb", "ext/gherkin_lexer_enlol/extconf.rb", "ext/gherkin_lexer_entx/extconf.rb", "ext/gherkin_lexer_es/extconf.rb", "ext/gherkin_lexer_et/extconf.rb", "ext/gherkin_lexer_fi/extconf.rb", "ext/gherkin_lexer_fr/extconf.rb", "ext/gherkin_lexer_he/extconf.rb", "ext/gherkin_lexer_hr/extconf.rb", "ext/gherkin_lexer_hu/extconf.rb", "ext/gherkin_lexer_id/extconf.rb", "ext/gherkin_lexer_it/extconf.rb", "ext/gherkin_lexer_ja/extconf.rb", "ext/gherkin_lexer_ko/extconf.rb", "ext/gherkin_lexer_lt/extconf.rb", "ext/gherkin_lexer_lv/extconf.rb", "ext/gherkin_lexer_nl/extconf.rb", "ext/gherkin_lexer_no/extconf.rb", "ext/gherkin_lexer_pl/extconf.rb", "ext/gherkin_lexer_pt/extconf.rb", "ext/gherkin_lexer_ro/extconf.rb", "ext/gherkin_lexer_ro2/extconf.rb", "ext/gherkin_lexer_ru/extconf.rb", "ext/gherkin_lexer_se/extconf.rb", "ext/gherkin_lexer_sk/extconf.rb", "ext/gherkin_lexer_sr/extconf.rb", "ext/gherkin_lexer_srLatn/extconf.rb", "ext/gherkin_lexer_tr/extconf.rb", "ext/gherkin_lexer_uz/extconf.rb", "ext/gherkin_lexer_vi/extconf.rb", "ext/gherkin_lexer_zhCN/extconf.rb", "ext/gherkin_lexer_zhTW/extconf.rb"]
17
18
  s.extra_rdoc_files = [
18
19
  "LICENSE",
19
20
  "README.rdoc"
@@ -25,7 +26,48 @@ Gem::Specification.new do |s|
25
26
  "Rakefile",
26
27
  "VERSION.yml",
27
28
  "bin/gherkin",
29
+ "bin/gherkin-purdy",
28
30
  "cucumber.yml",
31
+ "ext/gherkin_lexer_ar/gherkin_lexer_ar.c",
32
+ "ext/gherkin_lexer_bg/gherkin_lexer_bg.c",
33
+ "ext/gherkin_lexer_cat/gherkin_lexer_cat.c",
34
+ "ext/gherkin_lexer_cs/gherkin_lexer_cs.c",
35
+ "ext/gherkin_lexer_cy/gherkin_lexer_cy.c",
36
+ "ext/gherkin_lexer_da/gherkin_lexer_da.c",
37
+ "ext/gherkin_lexer_de/gherkin_lexer_de.c",
38
+ "ext/gherkin_lexer_en/gherkin_lexer_en.c",
39
+ "ext/gherkin_lexer_enau/gherkin_lexer_enau.c",
40
+ "ext/gherkin_lexer_enlol/gherkin_lexer_enlol.c",
41
+ "ext/gherkin_lexer_entx/gherkin_lexer_entx.c",
42
+ "ext/gherkin_lexer_es/gherkin_lexer_es.c",
43
+ "ext/gherkin_lexer_et/gherkin_lexer_et.c",
44
+ "ext/gherkin_lexer_fi/gherkin_lexer_fi.c",
45
+ "ext/gherkin_lexer_fr/gherkin_lexer_fr.c",
46
+ "ext/gherkin_lexer_he/gherkin_lexer_he.c",
47
+ "ext/gherkin_lexer_hr/gherkin_lexer_hr.c",
48
+ "ext/gherkin_lexer_hu/gherkin_lexer_hu.c",
49
+ "ext/gherkin_lexer_id/gherkin_lexer_id.c",
50
+ "ext/gherkin_lexer_it/gherkin_lexer_it.c",
51
+ "ext/gherkin_lexer_ja/gherkin_lexer_ja.c",
52
+ "ext/gherkin_lexer_ko/gherkin_lexer_ko.c",
53
+ "ext/gherkin_lexer_lt/gherkin_lexer_lt.c",
54
+ "ext/gherkin_lexer_lv/gherkin_lexer_lv.c",
55
+ "ext/gherkin_lexer_nl/gherkin_lexer_nl.c",
56
+ "ext/gherkin_lexer_no/gherkin_lexer_no.c",
57
+ "ext/gherkin_lexer_pl/gherkin_lexer_pl.c",
58
+ "ext/gherkin_lexer_pt/gherkin_lexer_pt.c",
59
+ "ext/gherkin_lexer_ro/gherkin_lexer_ro.c",
60
+ "ext/gherkin_lexer_ro2/gherkin_lexer_ro2.c",
61
+ "ext/gherkin_lexer_ru/gherkin_lexer_ru.c",
62
+ "ext/gherkin_lexer_se/gherkin_lexer_se.c",
63
+ "ext/gherkin_lexer_sk/gherkin_lexer_sk.c",
64
+ "ext/gherkin_lexer_sr/gherkin_lexer_sr.c",
65
+ "ext/gherkin_lexer_srLatn/gherkin_lexer_srLatn.c",
66
+ "ext/gherkin_lexer_tr/gherkin_lexer_tr.c",
67
+ "ext/gherkin_lexer_uz/gherkin_lexer_uz.c",
68
+ "ext/gherkin_lexer_vi/gherkin_lexer_vi.c",
69
+ "ext/gherkin_lexer_zhCN/gherkin_lexer_zhCN.c",
70
+ "ext/gherkin_lexer_zhTW/gherkin_lexer_zhTW.c",
29
71
  "features/feature_parser.feature",
30
72
  "features/native_lexer.feature",
31
73
  "features/parser_with_native_lexer.feature",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Sassak
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-01 00:00:00 +01:00
14
+ date: 2009-12-02 00:00:00 +01:00
15
15
  default_executable: gherkin
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -48,8 +48,48 @@ description: A fast Gherkin lexer in Ragel
48
48
  email: cukes@googlegroups.com
49
49
  executables:
50
50
  - gherkin
51
- extensions: []
52
-
51
+ - gherkin-purdy
52
+ extensions:
53
+ - ext/gherkin_lexer_ar/extconf.rb
54
+ - ext/gherkin_lexer_bg/extconf.rb
55
+ - ext/gherkin_lexer_cat/extconf.rb
56
+ - ext/gherkin_lexer_cs/extconf.rb
57
+ - ext/gherkin_lexer_cy/extconf.rb
58
+ - ext/gherkin_lexer_da/extconf.rb
59
+ - ext/gherkin_lexer_de/extconf.rb
60
+ - ext/gherkin_lexer_en/extconf.rb
61
+ - ext/gherkin_lexer_enau/extconf.rb
62
+ - ext/gherkin_lexer_enlol/extconf.rb
63
+ - ext/gherkin_lexer_entx/extconf.rb
64
+ - ext/gherkin_lexer_es/extconf.rb
65
+ - ext/gherkin_lexer_et/extconf.rb
66
+ - ext/gherkin_lexer_fi/extconf.rb
67
+ - ext/gherkin_lexer_fr/extconf.rb
68
+ - ext/gherkin_lexer_he/extconf.rb
69
+ - ext/gherkin_lexer_hr/extconf.rb
70
+ - ext/gherkin_lexer_hu/extconf.rb
71
+ - ext/gherkin_lexer_id/extconf.rb
72
+ - ext/gherkin_lexer_it/extconf.rb
73
+ - ext/gherkin_lexer_ja/extconf.rb
74
+ - ext/gherkin_lexer_ko/extconf.rb
75
+ - ext/gherkin_lexer_lt/extconf.rb
76
+ - ext/gherkin_lexer_lv/extconf.rb
77
+ - ext/gherkin_lexer_nl/extconf.rb
78
+ - ext/gherkin_lexer_no/extconf.rb
79
+ - ext/gherkin_lexer_pl/extconf.rb
80
+ - ext/gherkin_lexer_pt/extconf.rb
81
+ - ext/gherkin_lexer_ro/extconf.rb
82
+ - ext/gherkin_lexer_ro2/extconf.rb
83
+ - ext/gherkin_lexer_ru/extconf.rb
84
+ - ext/gherkin_lexer_se/extconf.rb
85
+ - ext/gherkin_lexer_sk/extconf.rb
86
+ - ext/gherkin_lexer_sr/extconf.rb
87
+ - ext/gherkin_lexer_srLatn/extconf.rb
88
+ - ext/gherkin_lexer_tr/extconf.rb
89
+ - ext/gherkin_lexer_uz/extconf.rb
90
+ - ext/gherkin_lexer_vi/extconf.rb
91
+ - ext/gherkin_lexer_zhCN/extconf.rb
92
+ - ext/gherkin_lexer_zhTW/extconf.rb
53
93
  extra_rdoc_files:
54
94
  - LICENSE
55
95
  - README.rdoc
@@ -60,7 +100,48 @@ files:
60
100
  - Rakefile
61
101
  - VERSION.yml
62
102
  - bin/gherkin
103
+ - bin/gherkin-purdy
63
104
  - cucumber.yml
105
+ - ext/gherkin_lexer_ar/gherkin_lexer_ar.c
106
+ - ext/gherkin_lexer_bg/gherkin_lexer_bg.c
107
+ - ext/gherkin_lexer_cat/gherkin_lexer_cat.c
108
+ - ext/gherkin_lexer_cs/gherkin_lexer_cs.c
109
+ - ext/gherkin_lexer_cy/gherkin_lexer_cy.c
110
+ - ext/gherkin_lexer_da/gherkin_lexer_da.c
111
+ - ext/gherkin_lexer_de/gherkin_lexer_de.c
112
+ - ext/gherkin_lexer_en/gherkin_lexer_en.c
113
+ - ext/gherkin_lexer_enau/gherkin_lexer_enau.c
114
+ - ext/gherkin_lexer_enlol/gherkin_lexer_enlol.c
115
+ - ext/gherkin_lexer_entx/gherkin_lexer_entx.c
116
+ - ext/gherkin_lexer_es/gherkin_lexer_es.c
117
+ - ext/gherkin_lexer_et/gherkin_lexer_et.c
118
+ - ext/gherkin_lexer_fi/gherkin_lexer_fi.c
119
+ - ext/gherkin_lexer_fr/gherkin_lexer_fr.c
120
+ - ext/gherkin_lexer_he/gherkin_lexer_he.c
121
+ - ext/gherkin_lexer_hr/gherkin_lexer_hr.c
122
+ - ext/gherkin_lexer_hu/gherkin_lexer_hu.c
123
+ - ext/gherkin_lexer_id/gherkin_lexer_id.c
124
+ - ext/gherkin_lexer_it/gherkin_lexer_it.c
125
+ - ext/gherkin_lexer_ja/gherkin_lexer_ja.c
126
+ - ext/gherkin_lexer_ko/gherkin_lexer_ko.c
127
+ - ext/gherkin_lexer_lt/gherkin_lexer_lt.c
128
+ - ext/gherkin_lexer_lv/gherkin_lexer_lv.c
129
+ - ext/gherkin_lexer_nl/gherkin_lexer_nl.c
130
+ - ext/gherkin_lexer_no/gherkin_lexer_no.c
131
+ - ext/gherkin_lexer_pl/gherkin_lexer_pl.c
132
+ - ext/gherkin_lexer_pt/gherkin_lexer_pt.c
133
+ - ext/gherkin_lexer_ro/gherkin_lexer_ro.c
134
+ - ext/gherkin_lexer_ro2/gherkin_lexer_ro2.c
135
+ - ext/gherkin_lexer_ru/gherkin_lexer_ru.c
136
+ - ext/gherkin_lexer_se/gherkin_lexer_se.c
137
+ - ext/gherkin_lexer_sk/gherkin_lexer_sk.c
138
+ - ext/gherkin_lexer_sr/gherkin_lexer_sr.c
139
+ - ext/gherkin_lexer_srLatn/gherkin_lexer_srLatn.c
140
+ - ext/gherkin_lexer_tr/gherkin_lexer_tr.c
141
+ - ext/gherkin_lexer_uz/gherkin_lexer_uz.c
142
+ - ext/gherkin_lexer_vi/gherkin_lexer_vi.c
143
+ - ext/gherkin_lexer_zhCN/gherkin_lexer_zhCN.c
144
+ - ext/gherkin_lexer_zhTW/gherkin_lexer_zhTW.c
64
145
  - features/feature_parser.feature
65
146
  - features/native_lexer.feature
66
147
  - features/parser_with_native_lexer.feature