gherkin 2.12.0-java → 2.12.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.ruby-version +1 -1
- data/.travis.yml +1 -3
- data/History.md +18 -0
- data/LICENSE +1 -1
- data/README.md +22 -28
- data/features/.cucumber/stepdefs.json +66 -66
- data/gherkin.gemspec +12 -11
- data/lib/gherkin.jar +0 -0
- data/lib/gherkin/formatter/filter_formatter.rb +1 -1
- data/lib/gherkin/i18n.json +38 -10
- data/lib/gherkin/i18n.rb +1 -1
- data/lib/gherkin/platform.rb +2 -2
- data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
- data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/tasks/gems.rake +19 -4
- data/tasks/ikvm.rake +10 -7
- data/tasks/ragel_task.rb +3 -2
- data/tasks/rspec.rake +2 -6
- metadata +106 -41
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NjQ1YWI1ZmJhMTFiYjI4MDI4ZDEyMDhlNzI4ZDUzMmViNDczOTBkNWNhMzJk
|
10
|
-
ODdkNmIyZmVlM2U3MWI3YzJmZDRkNmI0Zjk1MGFhOTg1ZGE3Yzk5ZDc1MzA1
|
11
|
-
YzUwODRmMDI5MjI2NjUxZWRmYzY1ZDVjODg4ODliMGQ1ZmY4OWQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzBjYTZhYzU2ZGViNTEzMmZhMTdkOTk3NzY1NWY2MDIzODRlOWEwNjMyYmUy
|
14
|
-
MWQwOTM0YjViN2U0YzI2ZGQwNzJhMzBkZjk3YjMwNWQ2MzkyMzA1NTdhNDYy
|
15
|
-
ODY5NWJkYmNjODY5YTRkYzBjMGE0MWMwNDQ2NmYwMWYxMTE2NmU=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 86a70ad9e2165125e4952b6190193173a2583873
|
4
|
+
data.tar.gz: df4e5f3f809f1fa2f65f57c7f9f572f5dd44f9d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dca548e4ccaf2e5c11922413c813d7c64b725ae28f06d7db6d8d32cac91d5e4c90e2bf9ed3cc930d6f7fcc31c8297a0f56f125dfa080cde51b84a047bc5fd0ee
|
7
|
+
data.tar.gz: 8b256cc805586f56c7595400babbb973a6446798e56743742371f07f1c9fbe5c57565f789d66da67f0c1b832d15f1be6a5070ae6da5f34750551596b0875793d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0-p0
|
data/.travis.yml
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
before_install: gem install bundler -v 1.
|
1
|
+
before_install: gem install bundler -v 1.3.5
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
4
|
- 1.9.3
|
5
|
-
- 1.8.7
|
6
5
|
- jruby
|
7
6
|
# whitelist
|
8
7
|
branches:
|
@@ -14,4 +13,3 @@ notifications:
|
|
14
13
|
- cukes-devs@googlegroups.com
|
15
14
|
irc:
|
16
15
|
- "irc.freenode.org#cucumber"
|
17
|
-
|
data/History.md
CHANGED
@@ -1,4 +1,22 @@
|
|
1
|
+
## [2.12.1](https://github.com/cucumber/gherkin/compare/v2.12.0...v2.12.1)
|
2
|
+
|
3
|
+
* Dropped support for ruby 1.8.7 (Aslak Hellesøy)
|
4
|
+
* Added support for ruby 2.0.0 (still supporting 1.9.3) (Aslak Hellesøy)
|
5
|
+
* Random lexing error; native fallback fails. Switch from C lexer to Ruby lexer with `GHERKIN_RUBY=true` ([#245](https://github.com/cucumber/gherkin/issues/245) Aslak Hellesøy)
|
6
|
+
* Problem with Nuget package 2.12.0 ([#254](https://github.com/cucumber/gherkin/issues/254) Aslak Hellesøy)
|
7
|
+
* problem with "gherkin_lexer_en" ([#257](https://github.com/cucumber/gherkin/issues/257) Aslak Hellesøy)
|
8
|
+
* Fix for dissapearing examples tags ([#187](https://github.com/cucumber/gherkin/issues/187) calebTomlinson)
|
9
|
+
* Handle interleaved calls to step, match and result in the java PrettyFormatter ([#261](https://github.com/cucumber/gherkin/pull/261) Björn Rasmusson)
|
10
|
+
* Change the java JSONFormatter to handle embedding text in the report correctly ([#269](https://github.com/cucumber/gherkin/pull/269) Björn Rasmusson)
|
11
|
+
* Updated Hindi language with "pure form", Sanskrit based versions of the words. ([#262](https://github.com/cucumber/gherkin/pull/262) anandpathaksharma)
|
12
|
+
* [Core] Added support for Panjabi/Punjabi language (Gurmukhi Script) ([#267](https://github.com/cucumber/gherkin/pull/267) Arvinder Singh Kang)
|
13
|
+
* [Core] Update i18n.json change Malay translation using suitable words ([#268](https://github.com/cucumber/gherkin/pull/268) CallMeLaNN)
|
14
|
+
* [Core] Fix typos in Malay ([#256](https://github.com/cucumber/gherkin/pull/256) glts)
|
15
|
+
* [Core] Add plural of Given in German ([#255](https://github.com/cucumber/gherkin/pull/255) glts)
|
16
|
+
* [Core] Added Thai (th) ([#253](https://github.com/cucumber/gherkin/pull/253) Twin Panichsombat)
|
17
|
+
|
1
18
|
## [2.12.0](https://github.com/cucumber/gherkin/compare/v2.11.8...v2.12.0)
|
19
|
+
|
2
20
|
* [Java, Ruby] TagExpression.eval() removed (Oleg Sukhodolsky)
|
3
21
|
* [Java, Ruby] Filter.eval() renamed to evaluate() (Oleg Sukhodolsky)
|
4
22
|
* [Java, JRuby] JSONFormatter's java version changed to connect embedding to the recent step the same way as Ruby's one does. (Oleg Sukhodolsky)
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2009-
|
1
|
+
Copyright (c) 2009-2013 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ A fast lexer and parser for the Gherkin language based on Ragel. Gherkin is two
|
|
7
7
|
|
8
8
|
Supported platforms:
|
9
9
|
|
10
|
-
* [Ruby](https://rubygems.org/gems/gherkin) 1.
|
10
|
+
* [Ruby](https://rubygems.org/gems/gherkin) 1.9.3-2.0.0 (MRI, JRuby, REE, Rubinius)
|
11
11
|
* [Pure Java](http://search.maven.org/#search%7Cga%7C1%7Cgherkin) (jar file)
|
12
12
|
* [JavaScript](http://search.npmjs.org/#/gherkin) (Tested with V8/node.js/Chrome, but might work on other JavaScript engines)
|
13
13
|
* [.NET](http://nuget.org/List/Packages/gherkin) (dll file)
|
@@ -54,7 +54,7 @@ The jar file is in the central Maven repo.
|
|
54
54
|
<dependency>
|
55
55
|
<groupId>info.cukes</groupId>
|
56
56
|
<artifactId>gherkin</artifactId>
|
57
|
-
<version>2.12.
|
57
|
+
<version>2.12.1</version>
|
58
58
|
</dependency>
|
59
59
|
|
60
60
|
You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
|
@@ -126,9 +126,9 @@ Now you can build the jar with:
|
|
126
126
|
|
127
127
|
In order to build and test Gherkin for JavaScript you must install:
|
128
128
|
|
129
|
-
* Node.js (0.
|
129
|
+
* Node.js (0.10.9 or higher with npm)
|
130
130
|
* Ragel with JavaScript support: http://github.com/dominicmarks/ragel-js
|
131
|
-
* Make sure you have gcc/g++ 4.6 (4.7 is
|
131
|
+
* Make sure you have gcc/g++ 4.6 (4.7 is too strict to build ragel-js)
|
132
132
|
* Make sure you have `autoconf` and `automake` (`brew install automake`)
|
133
133
|
* Make sure you have the official ragel (`brew install ragel`)
|
134
134
|
* Make sure you have kelbt (`brew install kelbt`). If that fails, install manually from http://www.complang.org/kelbt/
|
@@ -165,17 +165,16 @@ TODO: Make all specs pass with js lexer - replace 'c(listener)' with 'js(listene
|
|
165
165
|
|
166
166
|
### .NET dll
|
167
167
|
|
168
|
-
You must install Mono SDK 2.
|
168
|
+
You must install Mono SDK 3.2.1 (or possibly newer). The OS X package installer is recommended, but make sure you run `brew doctor`
|
169
|
+
after installing.
|
169
170
|
|
170
|
-
|
171
|
-
|
172
|
-
You must also download NuGet.exe from [CodePlex](http://nuget.codeplex.com/releases) and place it in `/usr/local/nuget/NuGet.exe`. When it's installed, update it and register your NuGet API Key:
|
171
|
+
Now we must update NuGet.exe and register our NuGet API Key:
|
173
172
|
|
174
173
|
# In case we need to update
|
175
|
-
mono /
|
174
|
+
mono ikvm/NuGet.exe Update -self
|
176
175
|
|
177
176
|
# The key is at https://nuget.org/account
|
178
|
-
mono --runtime=v4.0.30319 /
|
177
|
+
mono --runtime=v4.0.30319 ikvm/NuGet.exe SetApiKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
|
179
178
|
(Note: you may need to run 'mozroots --import --sync' to help mono trusts https setificate, see http://monomvc.wordpress.com/2012/03/06/nuget-on-mono/ for more information)
|
180
179
|
|
181
180
|
Now you can build the .NET dll with:
|
@@ -196,44 +195,37 @@ Now, make sure you have openssl installed - it's needed to build the rubies.
|
|
196
195
|
|
197
196
|
brew install openssl
|
198
197
|
|
199
|
-
Next, we're going to install Ruby 1.
|
200
|
-
OS X Lion (or later) doesn't ship with an LLVM free gcc, which you will need in order to install ruby 1.8.7. We can install it with:
|
198
|
+
Next, we're going to install Ruby 1.9.3 and 2.0.0 for MinGW. We need both versions so we can build Windows binaries for both.
|
201
199
|
|
202
|
-
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
|
203
200
|
export PATH=/usr/local/mingw/bin:$PATH
|
204
201
|
# Test that it's on your PATH
|
205
202
|
i686-w64-mingw32-gcc -v
|
206
203
|
|
207
|
-
|
208
|
-
|
209
|
-
* http://stackoverflow.com/questions/6170813/why-cant-i-install-rails-on-lion-using-rvm
|
210
|
-
* https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
|
211
|
-
|
212
|
-
Now we're ready to install the Windows rubies:
|
204
|
+
Now we're ready to install the Windows rubies. You should be able to replace `rvm` with `rbenv`
|
213
205
|
|
214
206
|
unset GHERKIN_JS
|
215
207
|
|
216
208
|
# 1.9.3
|
217
|
-
rvm install 1.9.3-
|
218
|
-
rvm use 1.9.3-
|
209
|
+
rvm install 1.9.3-p448
|
210
|
+
rvm use 1.9.3-p448
|
219
211
|
rvm gemset use cucumber --create
|
220
212
|
gem install bundler
|
221
213
|
bundle install
|
222
|
-
PATH=/usr/local/mingw/bin:$PATH CC=/usr/local/mingw/bin/i686-w64-mingw32-gcc rake-compiler cross-ruby VERSION=1.9.3-
|
214
|
+
PATH=/usr/local/mingw/bin:$PATH CC=/usr/local/mingw/bin/i686-w64-mingw32-gcc rake-compiler cross-ruby VERSION=1.9.3-p448
|
223
215
|
|
224
|
-
#
|
225
|
-
|
226
|
-
rvm use
|
216
|
+
# 2.0.0
|
217
|
+
rvm install 2.0.0-p247
|
218
|
+
rvm use 2.0.0-p247
|
227
219
|
rvm gemset use cucumber --create
|
228
220
|
gem install bundler
|
229
221
|
bundle install
|
230
|
-
PATH=/usr/local/mingw/bin:$PATH CC=/usr/local/mingw/bin/i686-w64-mingw32-gcc rake-compiler cross-ruby VERSION=
|
222
|
+
PATH=/usr/local/mingw/bin:$PATH CC=/usr/local/mingw/bin/i686-w64-mingw32-gcc rake-compiler cross-ruby VERSION=2.0.0-p247
|
231
223
|
|
232
224
|
Now you can build Windows gems:
|
233
225
|
|
234
226
|
rake compile
|
235
227
|
mkdir release
|
236
|
-
rake gems:win
|
228
|
+
PATH=/usr/local/mingw/bin:$PATH CC=/usr/local/mingw/bin/i686-w64-mingw32-gcc rake gems:win
|
237
229
|
|
238
230
|
## Release process
|
239
231
|
|
@@ -241,7 +233,6 @@ Make sure you have access to all the servers where packages are being uploaded:
|
|
241
233
|
|
242
234
|
* npm registry: `npm login`
|
243
235
|
* rubygems.org: `gem push`
|
244
|
-
* cukes.info: `ssh cukes.info`
|
245
236
|
* sonatype: Check `~/.m2/settings.xml` and that you have gnupg (OS X users: Install [GPGTools](http://www.gpgtools.org/installer/index.html))
|
246
237
|
* Make sure you have a key [with no sub-key](https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven)
|
247
238
|
* nuget: See .NET section above
|
@@ -252,6 +243,9 @@ Run tests once with GHERKIN_JS_NATIVE=true:
|
|
252
243
|
|
253
244
|
Now we can release:
|
254
245
|
|
246
|
+
* Make sure you have rbenv installed
|
247
|
+
* And that you have merged this patch: https://github.com/sstephenson/rbenv/issues/121
|
248
|
+
* `cd ~/.rbenv && git pull git@github.com:sstephenson/rbenv.git exec-next`
|
255
249
|
* Make sure GHERKIN_JS is defined (see JavaScript section above)
|
256
250
|
* Bump version in:
|
257
251
|
* This file (Installation/Java section)
|
@@ -1,243 +1,243 @@
|
|
1
1
|
[
|
2
2
|
{
|
3
|
-
"source": "^they have arrived$",
|
4
|
-
"flags": "",
|
5
3
|
"file_colon_line": "features/step_definitions/eyeball_steps.rb:1",
|
4
|
+
"flags": "",
|
5
|
+
"source": "^they have arrived$",
|
6
6
|
"steps": [
|
7
7
|
{
|
8
|
-
"name": "they have arrived",
|
9
8
|
"args": [
|
10
9
|
|
11
|
-
]
|
10
|
+
],
|
11
|
+
"name": "they have arrived"
|
12
12
|
}
|
13
13
|
]
|
14
14
|
},
|
15
15
|
{
|
16
|
-
"source": "^a \"(ruby|native)\" \"([^\\\"]*)\" parser$",
|
17
|
-
"flags": "",
|
18
16
|
"file_colon_line": "features/step_definitions/gherkin_steps.rb:1",
|
17
|
+
"flags": "",
|
18
|
+
"source": "^a \"(ruby|native)\" \"([^\\\"]*)\" parser$",
|
19
19
|
"steps": [
|
20
20
|
|
21
21
|
]
|
22
22
|
},
|
23
23
|
{
|
24
|
-
"source": "^the\\ following\\ text\\ is\\ parsed:$",
|
25
|
-
"flags": "",
|
26
24
|
"file_colon_line": "features/step_definitions/gherkin_steps.rb:5",
|
25
|
+
"flags": "",
|
26
|
+
"source": "^the\\ following\\ text\\ is\\ parsed:$",
|
27
27
|
"steps": [
|
28
28
|
{
|
29
|
-
"name": "the following text is parsed:",
|
30
29
|
"args": [
|
31
30
|
|
32
|
-
]
|
31
|
+
],
|
32
|
+
"name": "the following text is parsed:"
|
33
33
|
}
|
34
34
|
]
|
35
35
|
},
|
36
36
|
{
|
37
|
-
"source": "^there\\ should\\ be\\ no\\ parse\\ errors$",
|
38
|
-
"flags": "",
|
39
37
|
"file_colon_line": "features/step_definitions/gherkin_steps.rb:9",
|
38
|
+
"flags": "",
|
39
|
+
"source": "^there\\ should\\ be\\ no\\ parse\\ errors$",
|
40
40
|
"steps": [
|
41
41
|
{
|
42
|
-
"name": "there should be no parse errors",
|
43
42
|
"args": [
|
44
43
|
|
45
|
-
]
|
44
|
+
],
|
45
|
+
"name": "there should be no parse errors"
|
46
46
|
}
|
47
47
|
]
|
48
48
|
},
|
49
49
|
{
|
50
|
-
"source": "^there should be a parse error on (line \\d+)$",
|
51
|
-
"flags": "",
|
52
50
|
"file_colon_line": "features/step_definitions/gherkin_steps.rb:13",
|
51
|
+
"flags": "",
|
52
|
+
"source": "^there should be a parse error on (line \\d+)$",
|
53
53
|
"steps": [
|
54
54
|
{
|
55
|
-
"name": "there should be a parse error on line 1",
|
56
55
|
"args": [
|
57
56
|
{
|
58
57
|
"offset": 33,
|
59
58
|
"val": "line 1"
|
60
59
|
}
|
61
|
-
]
|
60
|
+
],
|
61
|
+
"name": "there should be a parse error on line 1"
|
62
62
|
}
|
63
63
|
]
|
64
64
|
},
|
65
65
|
{
|
66
|
-
"source": "^there should be parse errors on (lines .*)$",
|
67
|
-
"flags": "",
|
68
66
|
"file_colon_line": "features/step_definitions/gherkin_steps.rb:17",
|
67
|
+
"flags": "",
|
68
|
+
"source": "^there should be parse errors on (lines .*)$",
|
69
69
|
"steps": [
|
70
70
|
{
|
71
|
-
"name": "there should be parse errors on lines 1 and 2",
|
72
71
|
"args": [
|
73
72
|
{
|
74
73
|
"offset": 32,
|
75
74
|
"val": "lines 1 and 2"
|
76
75
|
}
|
77
|
-
]
|
76
|
+
],
|
77
|
+
"name": "there should be parse errors on lines 1 and 2"
|
78
78
|
},
|
79
79
|
{
|
80
|
-
"name": "there should be parse errors on lines 1 through 3",
|
81
80
|
"args": [
|
82
81
|
{
|
83
82
|
"offset": 32,
|
84
83
|
"val": "lines 1 through 3"
|
85
84
|
}
|
86
|
-
]
|
85
|
+
],
|
86
|
+
"name": "there should be parse errors on lines 1 through 3"
|
87
87
|
},
|
88
88
|
{
|
89
|
-
"name": "there should be parse errors on lines 10 and 17",
|
90
89
|
"args": [
|
91
90
|
{
|
92
91
|
"offset": 32,
|
93
92
|
"val": "lines 10 and 17"
|
94
93
|
}
|
95
|
-
]
|
94
|
+
],
|
95
|
+
"name": "there should be parse errors on lines 10 and 17"
|
96
96
|
},
|
97
97
|
{
|
98
|
-
"name": "there should be parse errors on lines 3 and 5",
|
99
98
|
"args": [
|
100
99
|
{
|
101
100
|
"offset": 32,
|
102
101
|
"val": "lines 3 and 5"
|
103
102
|
}
|
104
|
-
]
|
103
|
+
],
|
104
|
+
"name": "there should be parse errors on lines 3 and 5"
|
105
105
|
},
|
106
106
|
{
|
107
|
-
"name": "there should be parse errors on lines 5, 10 and 12",
|
108
107
|
"args": [
|
109
108
|
{
|
110
109
|
"offset": 32,
|
111
110
|
"val": "lines 5, 10 and 12"
|
112
111
|
}
|
113
|
-
]
|
112
|
+
],
|
113
|
+
"name": "there should be parse errors on lines 5, 10 and 12"
|
114
114
|
}
|
115
115
|
]
|
116
116
|
},
|
117
117
|
{
|
118
|
-
"source": "^a JSON formatter$",
|
119
|
-
"flags": "",
|
120
118
|
"file_colon_line": "features/step_definitions/json_formatter_steps.rb:13",
|
119
|
+
"flags": "",
|
120
|
+
"source": "^a JSON formatter$",
|
121
121
|
"steps": [
|
122
122
|
|
123
123
|
]
|
124
124
|
},
|
125
125
|
{
|
126
|
-
"source": "^the outputted JSON should be:$",
|
127
|
-
"flags": "",
|
128
126
|
"file_colon_line": "features/step_definitions/json_formatter_steps.rb:18",
|
127
|
+
"flags": "",
|
128
|
+
"source": "^the outputted JSON should be:$",
|
129
129
|
"steps": [
|
130
130
|
{
|
131
|
-
"name": "the outputted JSON should be:",
|
132
131
|
"args": [
|
133
132
|
|
134
|
-
]
|
133
|
+
],
|
134
|
+
"name": "the outputted JSON should be:"
|
135
135
|
}
|
136
136
|
]
|
137
137
|
},
|
138
138
|
{
|
139
|
-
"source": "^a PrettyFormatter$",
|
140
|
-
"flags": "",
|
141
139
|
"file_colon_line": "features/step_definitions/json_parser_steps.rb:6",
|
140
|
+
"flags": "",
|
141
|
+
"source": "^a PrettyFormatter$",
|
142
142
|
"steps": [
|
143
143
|
|
144
144
|
]
|
145
145
|
},
|
146
146
|
{
|
147
|
-
"source": "^a JSON lexer$",
|
148
|
-
"flags": "",
|
149
147
|
"file_colon_line": "features/step_definitions/json_parser_steps.rb:11",
|
148
|
+
"flags": "",
|
149
|
+
"source": "^a JSON lexer$",
|
150
150
|
"steps": [
|
151
151
|
|
152
152
|
]
|
153
153
|
},
|
154
154
|
{
|
155
|
-
"source": "^the following JSON is parsed:$",
|
156
|
-
"flags": "",
|
157
155
|
"file_colon_line": "features/step_definitions/json_parser_steps.rb:15",
|
156
|
+
"flags": "",
|
157
|
+
"source": "^the following JSON is parsed:$",
|
158
158
|
"steps": [
|
159
159
|
{
|
160
|
-
"name": "the following JSON is parsed:",
|
161
160
|
"args": [
|
162
161
|
|
163
|
-
]
|
162
|
+
],
|
163
|
+
"name": "the following JSON is parsed:"
|
164
164
|
}
|
165
165
|
]
|
166
166
|
},
|
167
167
|
{
|
168
|
-
"source": "^the outputted text should be:$",
|
169
|
-
"flags": "",
|
170
168
|
"file_colon_line": "features/step_definitions/json_parser_steps.rb:19",
|
169
|
+
"flags": "",
|
170
|
+
"source": "^the outputted text should be:$",
|
171
171
|
"steps": [
|
172
172
|
{
|
173
|
-
"name": "the outputted text should be:",
|
174
173
|
"args": [
|
175
174
|
|
176
|
-
]
|
175
|
+
],
|
176
|
+
"name": "the outputted text should be:"
|
177
177
|
}
|
178
178
|
]
|
179
179
|
},
|
180
180
|
{
|
181
|
-
"source": "^I have Cucumber's source code next to Gherkin's$",
|
182
|
-
"flags": "",
|
183
181
|
"file_colon_line": "features/step_definitions/pretty_formatter_steps.rb:50",
|
182
|
+
"flags": "",
|
183
|
+
"source": "^I have Cucumber's source code next to Gherkin's$",
|
184
184
|
"steps": [
|
185
185
|
{
|
186
|
-
"name": "I have Cucumber's source code next to Gherkin's",
|
187
186
|
"args": [
|
188
187
|
|
189
|
-
]
|
188
|
+
],
|
189
|
+
"name": "I have Cucumber's source code next to Gherkin's"
|
190
190
|
}
|
191
191
|
]
|
192
192
|
},
|
193
193
|
{
|
194
|
-
"source": "^I find all of the \\.feature files$",
|
195
|
-
"flags": "",
|
196
194
|
"file_colon_line": "features/step_definitions/pretty_formatter_steps.rb:55",
|
195
|
+
"flags": "",
|
196
|
+
"source": "^I find all of the \\.feature files$",
|
197
197
|
"steps": [
|
198
198
|
{
|
199
|
-
"name": "I find all of the .feature files",
|
200
199
|
"args": [
|
201
200
|
|
202
|
-
]
|
201
|
+
],
|
202
|
+
"name": "I find all of the .feature files"
|
203
203
|
}
|
204
204
|
]
|
205
205
|
},
|
206
206
|
{
|
207
|
-
"source": "^I send each prettified original through the \"([^\"]*)\" machinery$",
|
208
|
-
"flags": "",
|
209
207
|
"file_colon_line": "features/step_definitions/pretty_formatter_steps.rb:59",
|
208
|
+
"flags": "",
|
209
|
+
"source": "^I send each prettified original through the \"([^\"]*)\" machinery$",
|
210
210
|
"steps": [
|
211
211
|
{
|
212
|
-
"name": "I send each prettified original through the \"json\" machinery",
|
213
212
|
"args": [
|
214
213
|
{
|
215
214
|
"offset": 45,
|
216
215
|
"val": "json"
|
217
216
|
}
|
218
|
-
]
|
217
|
+
],
|
218
|
+
"name": "I send each prettified original through the \"json\" machinery"
|
219
219
|
},
|
220
220
|
{
|
221
|
-
"name": "I send each prettified original through the \"pretty\" machinery",
|
222
221
|
"args": [
|
223
222
|
{
|
224
223
|
"offset": 45,
|
225
224
|
"val": "pretty"
|
226
225
|
}
|
227
|
-
]
|
226
|
+
],
|
227
|
+
"name": "I send each prettified original through the \"pretty\" machinery"
|
228
228
|
}
|
229
229
|
]
|
230
230
|
},
|
231
231
|
{
|
232
|
-
"source": "^the machinery output should be identical to the prettified original$",
|
233
|
-
"flags": "",
|
234
232
|
"file_colon_line": "features/step_definitions/pretty_formatter_steps.rb:83",
|
233
|
+
"flags": "",
|
234
|
+
"source": "^the machinery output should be identical to the prettified original$",
|
235
235
|
"steps": [
|
236
236
|
{
|
237
|
-
"name": "the machinery output should be identical to the prettified original",
|
238
237
|
"args": [
|
239
238
|
|
240
|
-
]
|
239
|
+
],
|
240
|
+
"name": "the machinery output should be identical to the prettified original"
|
241
241
|
}
|
242
242
|
]
|
243
243
|
}
|
data/gherkin.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
# Repeat these step for cucumber (swap `cucumber` with `gherkin`).
|
16
16
|
#
|
17
17
|
# When both are building OK, do a `bundle exec rake install` in both cucumber and gherkin projects, revert the changes in the first 2 steps
|
18
|
-
# and release both projects. Do this for both ruby 1.
|
18
|
+
# and release both projects. Do this for both ruby 1.9.3, ruby 2.0.0 and jruby.
|
19
19
|
#
|
20
20
|
s.version = Gherkin::VERSION
|
21
21
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.summary = "#{s.name}-#{s.version}"
|
24
24
|
s.email = "cukes@googlegroups.com"
|
25
25
|
s.homepage = "http://github.com/cucumber/gherkin"
|
26
|
+
s.license = 'MIT'
|
26
27
|
|
27
28
|
s.files = `git ls-files`.split("\n")
|
28
29
|
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
|
@@ -51,29 +52,29 @@ Gem::Specification.new do |s|
|
|
51
52
|
when /dotnet/
|
52
53
|
s.files += Dir['lib/*.dll']
|
53
54
|
else # MRI or Rubinius
|
54
|
-
s.files += Dir['lib/gherkin/
|
55
|
+
s.files += Dir['lib/gherkin/lexer/*.rb']
|
55
56
|
s.files += Dir['ext/**/*.c']
|
56
57
|
s.extensions = Dir['ext/**/extconf.rb']
|
57
|
-
s.add_development_dependency('rake-compiler', '
|
58
|
+
s.add_development_dependency('rake-compiler', '= 0.8.2')
|
58
59
|
end
|
59
60
|
s.files -= Dir['**/.gitignore']
|
60
61
|
|
61
62
|
s.add_runtime_dependency('multi_json', '~> 1.3')
|
62
63
|
|
63
|
-
s.add_development_dependency('cucumber', '>= 1.
|
64
|
-
s.add_development_dependency('rake', '>= 10.0
|
65
|
-
s.add_development_dependency('bundler', '>= 1.
|
66
|
-
s.add_development_dependency('rspec', '~> 2.
|
64
|
+
s.add_development_dependency('cucumber', '>= 1.3.4')
|
65
|
+
s.add_development_dependency('rake', '>= 10.1.0')
|
66
|
+
s.add_development_dependency('bundler', '>= 1.3.5') # Make sure it's in sync with /.travis.yml
|
67
|
+
s.add_development_dependency('rspec', '~> 2.14.1')
|
67
68
|
s.add_development_dependency('rubyzip', '>= 0.9.9')
|
68
69
|
|
69
70
|
unless ENV['RUBY_CC_VERSION'] || Gherkin::JRUBY
|
70
71
|
s.add_development_dependency('therubyracer', '>= 0.11.4') if ENV['GHERKIN_JS']
|
71
72
|
# For Documentation:
|
72
|
-
s.add_development_dependency('yard', '>= 0.8.
|
73
|
-
s.add_development_dependency('rdiscount', '>= 1.6
|
73
|
+
s.add_development_dependency('yard', '>= 0.8.6.2')
|
74
|
+
s.add_development_dependency('rdiscount', '>= 2.1.6')
|
74
75
|
end
|
75
76
|
|
76
77
|
# Only needed by Cucumber. Remove when Cucumber no longer needs those.
|
77
|
-
s.add_development_dependency('term-ansicolor', '>= 1.
|
78
|
-
s.add_development_dependency('builder', '>= 3.
|
78
|
+
s.add_development_dependency('term-ansicolor', '>= 1.2.2')
|
79
|
+
s.add_development_dependency('builder', '>= 3.2.2')
|
79
80
|
end
|
data/lib/gherkin.jar
CHANGED
Binary file
|
data/lib/gherkin/i18n.json
CHANGED
@@ -32,14 +32,14 @@
|
|
32
32
|
"native": "Bahasa Melayu",
|
33
33
|
"feature": "Fungsi",
|
34
34
|
"background": "Latar Belakang",
|
35
|
-
"scenario": "Senario",
|
36
|
-
"scenario_outline": "Menggariskan Senario
|
37
|
-
"examples": "Contoh
|
38
|
-
"given": "*|Bagi",
|
35
|
+
"scenario": "Senario|Situai|Keadaan",
|
36
|
+
"scenario_outline": "Template Senario|Template Situai|Template Keadaan|Menggariskan Senario",
|
37
|
+
"examples": "Contoh",
|
38
|
+
"given": "*|Diberi|Bagi",
|
39
39
|
"when": "*|Apabila",
|
40
|
-
"then": "*|Kemudian",
|
40
|
+
"then": "*|Maka|Kemudian",
|
41
41
|
"and": "*|Dan",
|
42
|
-
"but": "*|Tetapi"
|
42
|
+
"but": "*|Tetapi|Tapi"
|
43
43
|
},
|
44
44
|
"bg": {
|
45
45
|
"name": "Bulgarian",
|
@@ -119,7 +119,7 @@
|
|
119
119
|
"scenario": "Szenario",
|
120
120
|
"scenario_outline": "Szenariogrundriss",
|
121
121
|
"examples": "Beispiele",
|
122
|
-
"given": "*|Angenommen|Gegeben sei",
|
122
|
+
"given": "*|Angenommen|Gegeben sei|Gegeben seien",
|
123
123
|
"when": "*|Wenn",
|
124
124
|
"then": "*|Dann",
|
125
125
|
"and": "*|Und",
|
@@ -344,10 +344,10 @@
|
|
344
344
|
"scenario_outline": "परिदृश्य रूपरेखा",
|
345
345
|
"examples": "उदाहरण",
|
346
346
|
"given": "*|अगर|यदि|चूंकि",
|
347
|
-
"when": "
|
348
|
-
"then": "
|
347
|
+
"when": "*|जब|कदा",
|
348
|
+
"then": "*|तब|तदा",
|
349
349
|
"and": "*|और|तथा",
|
350
|
-
"but": "
|
350
|
+
"but": "*|पर|परन्तु|किन्तु"
|
351
351
|
},
|
352
352
|
"hr": {
|
353
353
|
"name": "Croatian",
|
@@ -517,6 +517,20 @@
|
|
517
517
|
"and": "*|Og",
|
518
518
|
"but": "*|Men"
|
519
519
|
},
|
520
|
+
"pa": {
|
521
|
+
"name": "Panjabi",
|
522
|
+
"native": "ਪੰਜਾਬੀ",
|
523
|
+
"feature": "ਖਾਸੀਅਤ|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ",
|
524
|
+
"background": "ਪਿਛੋਕੜ",
|
525
|
+
"scenario": "ਪਟਕਥਾ",
|
526
|
+
"scenario_outline": "ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ",
|
527
|
+
"examples": "ਉਦਾਹਰਨਾਂ",
|
528
|
+
"given": "*|ਜੇਕਰ|ਜਿਵੇਂ ਕਿ",
|
529
|
+
"when": "*|ਜਦੋਂ",
|
530
|
+
"then": "*|ਤਦ",
|
531
|
+
"and": "*|ਅਤੇ",
|
532
|
+
"but": "*|ਪਰ"
|
533
|
+
},
|
520
534
|
"pl": {
|
521
535
|
"name": "Polish",
|
522
536
|
"native": "polski",
|
@@ -643,6 +657,20 @@
|
|
643
657
|
"and": "*|మరియు",
|
644
658
|
"but": "*|కాని"
|
645
659
|
},
|
660
|
+
"th": {
|
661
|
+
"name": "Thai",
|
662
|
+
"native": "ไทย",
|
663
|
+
"feature": "โครงหลัก|ความต้องการทางธุรกิจ|ความสามารถ",
|
664
|
+
"background": "แนวคิด",
|
665
|
+
"scenario": "เหตุการณ์",
|
666
|
+
"scenario_outline": "สรุปเหตุการณ์|โครงสร้างของเหตุการณ์",
|
667
|
+
"examples": "ชุดของตัวอย่าง|ชุดของเหตุการณ์",
|
668
|
+
"given": "*|กำหนดให้",
|
669
|
+
"when": "*|เมื่อ",
|
670
|
+
"then": "*|ดังนั้น",
|
671
|
+
"and": "*|และ",
|
672
|
+
"but": "*|แต่"
|
673
|
+
},
|
646
674
|
"tr": {
|
647
675
|
"name": "Turkish",
|
648
676
|
"native": "Türkçe",
|
data/lib/gherkin/i18n.rb
CHANGED
data/lib/gherkin/platform.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
module Gherkin
|
4
4
|
unless defined?(Gherkin::VERSION)
|
5
5
|
# See the comment in gherkin.gemspec if you bump the MINOR version (MAJOR.MINOR.PATCH).
|
6
|
-
VERSION = '2.12.
|
6
|
+
VERSION = '2.12.1'
|
7
7
|
JRUBY = defined?(JRUBY_VERSION)
|
8
8
|
|
9
|
-
if !JRUBY && !(RUBY_VERSION =~ /^(1\.
|
9
|
+
if !JRUBY && !(RUBY_VERSION =~ /^(1\.9\.3|2\.0)/)
|
10
10
|
warn("WARNING: Unsupported Ruby version - #{RUBY_VERSION}")
|
11
11
|
end
|
12
12
|
end
|
@@ -21,6 +21,7 @@ module Gherkin
|
|
21
21
|
data = data.to_java_bytes
|
22
22
|
end
|
23
23
|
f.embedding("mime-type", data)
|
24
|
+
f.write("step output")
|
24
25
|
|
25
26
|
f.result(Model::Result.new(:passed, 1, nil))
|
26
27
|
|
@@ -64,6 +65,9 @@ module Gherkin
|
|
64
65
|
"data": "YWJj"
|
65
66
|
}
|
66
67
|
],
|
68
|
+
"output": [
|
69
|
+
"step output"
|
70
|
+
],
|
67
71
|
"result": {
|
68
72
|
"status": "passed",
|
69
73
|
"duration": 1
|
@@ -12,10 +12,10 @@ module Gherkin
|
|
12
12
|
describe PrettyFormatter do
|
13
13
|
include AnsiEscapes
|
14
14
|
|
15
|
-
def
|
15
|
+
def assert_io_include(s)
|
16
16
|
actual = @io.string
|
17
17
|
actual.gsub!(/\e\[m/, "\e[0m") # JANSI resets without the 0.
|
18
|
-
actual.should
|
18
|
+
actual.should include(s)
|
19
19
|
end
|
20
20
|
|
21
21
|
def assert_pretty(input, expected_output=input)
|
@@ -48,14 +48,16 @@ module Gherkin
|
|
48
48
|
@f.match(Model::Match.new([], "features/step_definitions/bar.rb:96"))
|
49
49
|
@f.result(Model::Result.new('passed', 33, nil))
|
50
50
|
|
51
|
-
|
51
|
+
@f.eof()
|
52
|
+
|
53
|
+
assert_io_include(%{Feature: Hello
|
52
54
|
World
|
53
55
|
|
54
56
|
Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
57
|
+
})
|
58
|
+
assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
|
59
|
+
})
|
60
|
+
assert_io_include(%{ #{passed}When #{reset}#{passed}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
|
59
61
|
})
|
60
62
|
end
|
61
63
|
|
@@ -71,12 +73,14 @@ module Gherkin
|
|
71
73
|
@f.match(match)
|
72
74
|
@f.result(result)
|
73
75
|
|
74
|
-
|
76
|
+
@f.eof()
|
77
|
+
|
78
|
+
assert_io_include(%{Feature: Hello
|
75
79
|
World
|
76
80
|
|
77
81
|
Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
|
78
|
-
|
79
|
-
|
82
|
+
})
|
83
|
+
assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
|
80
84
|
})
|
81
85
|
end
|
82
86
|
|
@@ -86,12 +90,13 @@ module Gherkin
|
|
86
90
|
@f.step(Model::Step.new([], "Given ", "I have 999 cukes in my belly", 3, nil, nil))
|
87
91
|
@f.match(Model::Match.new([Gherkin::Formatter::Argument.new(7, '999')], nil))
|
88
92
|
@f.result(Model::Result.new('passed', 6, nil))
|
93
|
+
@f.eof()
|
89
94
|
|
90
|
-
|
95
|
+
assert_io_include(
|
91
96
|
"\n" +
|
92
|
-
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
93
|
-
|
94
|
-
"
|
97
|
+
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n")
|
98
|
+
assert_io_include(
|
99
|
+
" #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
|
95
100
|
)
|
96
101
|
end
|
97
102
|
|
@@ -105,12 +110,14 @@ module Gherkin
|
|
105
110
|
Gherkin::Formatter::Argument.new(7, '999')
|
106
111
|
], nil))
|
107
112
|
@f.result(Model::Result.new('passed', 6, nil))
|
113
|
+
@f.eof()
|
108
114
|
|
109
|
-
|
115
|
+
assert_io_include(
|
110
116
|
"\n" +
|
111
|
-
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
112
|
-
|
113
|
-
|
117
|
+
" Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
|
118
|
+
)
|
119
|
+
assert_io_include(
|
120
|
+
" #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
|
114
121
|
)
|
115
122
|
end
|
116
123
|
|
data/spec/gherkin/i18n_spec.rb
CHANGED
@@ -204,6 +204,7 @@ module Gherkin
|
|
204
204
|
| lv | Latvian | latviešu |
|
205
205
|
| nl | Dutch | Nederlands |
|
206
206
|
| no | Norwegian | norsk |
|
207
|
+
| pa | Panjabi | ਪੰਜਾਬੀ |
|
207
208
|
| pl | Polish | polski |
|
208
209
|
| pt | Portuguese | português |
|
209
210
|
| ro | Romanian | română |
|
@@ -212,6 +213,7 @@ module Gherkin
|
|
212
213
|
| sr-Cyrl | Serbian | Српски |
|
213
214
|
| sr-Latn | Serbian (Latin) | Srpski (Latinica) |
|
214
215
|
| sv | Swedish | Svenska |
|
216
|
+
| th | Thai | ไทย |
|
215
217
|
| tl | Telugu | తెలుగు |
|
216
218
|
| tr | Turkish | Türkçe |
|
217
219
|
| tt | Tatar | Татарча |
|
data/tasks/gems.rake
CHANGED
@@ -5,15 +5,21 @@ namespace :gems do
|
|
5
5
|
exit(1)
|
6
6
|
end
|
7
7
|
# rvm and mingw ruby versions have to match to avoid errors
|
8
|
-
|
9
|
-
|
8
|
+
rbenv('1.9.3-p448') do
|
9
|
+
sh "bundle exec rake cross compile RUBY_CC_VERSION=1.9.3"
|
10
|
+
end
|
11
|
+
rbenv('2.0.0-p247') do
|
12
|
+
sh "bundle exec rake cross compile RUBY_CC_VERSION=2.0.0"
|
13
|
+
end
|
10
14
|
# This will copy the .so files to the proper place
|
11
|
-
sh "bundle exec rake -t cross compile RUBY_CC_VERSION=1.
|
15
|
+
sh "bundle exec rake -t cross compile RUBY_CC_VERSION=1.9.3:2.0.0"
|
12
16
|
end
|
13
17
|
|
14
18
|
desc 'Prepare JRuby binares'
|
15
19
|
task :jruby => [:jar] do
|
16
|
-
|
20
|
+
rbenv('jruby-1.7.4') do
|
21
|
+
sh "bundle exec rspec spec"
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
task :sanity do
|
@@ -28,4 +34,13 @@ namespace :gems do
|
|
28
34
|
:jruby
|
29
35
|
]
|
30
36
|
|
37
|
+
# https://github.com/sstephenson/rbenv/issues/121
|
38
|
+
def rbenv(version)
|
39
|
+
old_version = ENV['RBENV_VERSION']
|
40
|
+
ENV['RBENV_VERSION'] = version
|
41
|
+
yield
|
42
|
+
ensure
|
43
|
+
ENV['RBENV_VERSION'] = old_version
|
44
|
+
end
|
45
|
+
|
31
46
|
end
|
data/tasks/ikvm.rake
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
namespace :ikvm do
|
4
|
-
IKVM_VERSION = '7.
|
4
|
+
IKVM_VERSION = '7.2.4630.5'
|
5
5
|
IKVM_DIR = "ikvm/ikvm-#{IKVM_VERSION}"
|
6
6
|
IKVM_ZIP = "ikvm/ikvmbin-#{IKVM_VERSION}.zip"
|
7
7
|
CLOBBER.include(IKVM_DIR, IKVM_ZIP)
|
@@ -34,7 +34,7 @@ namespace :ikvm do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def nuget(args)
|
37
|
-
mono("/
|
37
|
+
mono("ikvm/NuGet.exe #{args}")
|
38
38
|
end
|
39
39
|
|
40
40
|
file GHERKIN_EXE => [IKVMC_EXE, 'lib/gherkin.jar'] do
|
@@ -54,12 +54,12 @@ namespace :ikvm do
|
|
54
54
|
pkg_dir = File.dirname(GHERKIN_EXE)
|
55
55
|
mkdir_p File.dirname(pkg_dir) unless File.directory?(pkg_dir)
|
56
56
|
nuget("Pack #{GHERKIN_NUSPEC} -Version #{GHERKIN_VERSION} -OutputDirectory #{pkg_dir}")
|
57
|
-
# Now,
|
57
|
+
# Now, verify that we have a proper dll inside the package
|
58
58
|
require 'zip/zipfilesystem'
|
59
59
|
Zip::ZipFile.open(GHERKIN_NUPKG) do |zipfile|
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
dll = zipfile.get_entry('lib/gherkin.dll')
|
61
|
+
if(dll.size < 3_000_000)
|
62
|
+
raise "Looks like the dll is too small."
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
@@ -80,12 +80,15 @@ namespace :ikvm do
|
|
80
80
|
<iconUrl>https://github.com/cucumber/cukes.info/raw/master/templates/images/gherkin/gherkin_128x128.png</iconUrl>
|
81
81
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
82
82
|
<description>A fast lexer and parser for the Gherkin language based on Ragel</description>
|
83
|
-
<copyright>Copyright (c) 2009-
|
83
|
+
<copyright>Copyright (c) 2009-2013 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy</copyright>
|
84
84
|
<dependencies>
|
85
85
|
<dependency id="IKVM" version="#{IKVM_VERSION}" />
|
86
86
|
</dependencies>
|
87
87
|
<tags>gherkin cucumber specflow bdd lexer parser</tags>
|
88
88
|
</metadata>
|
89
|
+
<files>
|
90
|
+
<file src="lib/gherkin.dll" target="lib/gherkin.dll" />
|
91
|
+
</files>
|
89
92
|
</package>
|
90
93
|
EOF
|
91
94
|
end
|
data/tasks/ragel_task.rb
CHANGED
@@ -22,12 +22,13 @@ class RagelTask
|
|
22
22
|
def define_tasks
|
23
23
|
deps = [lang_ragel, common_ragel]
|
24
24
|
deps.unshift(UGLIFYJS) if(@lang == 'js')
|
25
|
-
sed =
|
25
|
+
sed = RbConfig::CONFIG['host_os'] =~ /linux/i ? "sed -i" : "sed -i ''"
|
26
26
|
|
27
27
|
min_target = target.gsub(/\.js$/, '.min.js')
|
28
28
|
file target => deps do
|
29
29
|
mkdir_p(File.dirname(target)) unless File.directory?(File.dirname(target))
|
30
|
-
|
30
|
+
ragel = @lang == 'js' ? 'js/ragel-osx' : 'ragel'
|
31
|
+
sh "#{ragel} #{flags} #{lang_ragel} -o #{target}"
|
31
32
|
# Remove absolute paths from ragel-generated sources
|
32
33
|
sh %{#{sed} "s|#{Dir.pwd}/tasks/../||" #{target}}
|
33
34
|
if(@lang == 'js')
|
data/tasks/rspec.rake
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
2
|
|
3
3
|
desc "Run RSpec"
|
4
|
-
|
5
|
-
|
6
|
-
desc "Run RSpec with RCov"
|
7
|
-
RSpec::Core::RakeTask.new(:rcov) do |t|
|
8
|
-
t.rcov = true
|
9
|
-
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
|
4
|
+
task :spec do
|
5
|
+
sh "rspec spec"
|
10
6
|
end
|
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: 2.12.
|
4
|
+
version: 2.12.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Mike Sassak
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -30,142 +30,142 @@ dependencies:
|
|
30
30
|
name: cucumber
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
35
|
+
version: 1.3.4
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.3.4
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - '>='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 10.0
|
49
|
+
version: 10.1.0
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 10.0
|
56
|
+
version: 10.1.0
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: bundler
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 1.
|
63
|
+
version: 1.3.5
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 1.
|
70
|
+
version: 1.3.5
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.
|
77
|
+
version: 2.14.1
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ~>
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 2.
|
84
|
+
version: 2.14.1
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: rubyzip
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - '>='
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: 0.9.9
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - '>='
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: 0.9.9
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: therubyracer
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: 0.11.4
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '>='
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 0.11.4
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: yard
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - '>='
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.8.
|
119
|
+
version: 0.8.6.2
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.8.
|
126
|
+
version: 0.8.6.2
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: rdiscount
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - '>='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.6
|
133
|
+
version: 2.1.6
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 1.6
|
140
|
+
version: 2.1.6
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: term-ansicolor
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - '>='
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 1.
|
147
|
+
version: 1.2.2
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - '>='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 1.
|
154
|
+
version: 1.2.2
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: builder
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- -
|
159
|
+
- - '>='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 3.
|
161
|
+
version: 3.2.2
|
162
162
|
type: :development
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- -
|
166
|
+
- - '>='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 3.
|
168
|
+
version: 3.2.2
|
169
169
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
170
170
|
email: cukes@googlegroups.com
|
171
171
|
executables: []
|
@@ -316,7 +316,8 @@ files:
|
|
316
316
|
- tasks/yard/default/layout/html/setup.rb
|
317
317
|
- lib/gherkin.jar
|
318
318
|
homepage: http://github.com/cucumber/gherkin
|
319
|
-
licenses:
|
319
|
+
licenses:
|
320
|
+
- MIT
|
320
321
|
metadata: {}
|
321
322
|
post_install_message:
|
322
323
|
rdoc_options:
|
@@ -325,12 +326,12 @@ require_paths:
|
|
325
326
|
- lib
|
326
327
|
required_ruby_version: !ruby/object:Gem::Requirement
|
327
328
|
requirements:
|
328
|
-
- -
|
329
|
+
- - '>='
|
329
330
|
- !ruby/object:Gem::Version
|
330
331
|
version: '0'
|
331
332
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
332
333
|
requirements:
|
333
|
-
- -
|
334
|
+
- - '>='
|
334
335
|
- !ruby/object:Gem::Version
|
335
336
|
version: '0'
|
336
337
|
requirements: []
|
@@ -338,6 +339,70 @@ rubyforge_project:
|
|
338
339
|
rubygems_version: 2.0.3
|
339
340
|
signing_key:
|
340
341
|
specification_version: 4
|
341
|
-
summary: gherkin-2.12.
|
342
|
-
test_files:
|
342
|
+
summary: gherkin-2.12.1
|
343
|
+
test_files:
|
344
|
+
- features/escaped_pipes.feature
|
345
|
+
- features/feature_parser.feature
|
346
|
+
- features/json_formatter.feature
|
347
|
+
- features/json_parser.feature
|
348
|
+
- features/native_lexer.feature
|
349
|
+
- features/parser_with_native_lexer.feature
|
350
|
+
- features/pretty_formatter.feature
|
351
|
+
- features/step_definitions/eyeball_steps.rb
|
352
|
+
- features/step_definitions/gherkin_steps.rb
|
353
|
+
- features/step_definitions/json_formatter_steps.rb
|
354
|
+
- features/step_definitions/json_parser_steps.rb
|
355
|
+
- features/step_definitions/pretty_formatter_steps.rb
|
356
|
+
- features/steps_parser.feature
|
357
|
+
- features/support/env.rb
|
358
|
+
- spec/gherkin/c_lexer_spec.rb
|
359
|
+
- spec/gherkin/fixtures/1.feature
|
360
|
+
- spec/gherkin/fixtures/comments_in_table.feature
|
361
|
+
- spec/gherkin/fixtures/complex.feature
|
362
|
+
- spec/gherkin/fixtures/complex.json
|
363
|
+
- spec/gherkin/fixtures/complex_for_filtering.feature
|
364
|
+
- spec/gherkin/fixtures/complex_with_tags.feature
|
365
|
+
- spec/gherkin/fixtures/dos_line_endings.feature
|
366
|
+
- spec/gherkin/fixtures/examples_with_only_header.feature
|
367
|
+
- spec/gherkin/fixtures/hantu_pisang.feature
|
368
|
+
- spec/gherkin/fixtures/i18n_fr.feature
|
369
|
+
- spec/gherkin/fixtures/i18n_fr2.feature
|
370
|
+
- spec/gherkin/fixtures/i18n_no.feature
|
371
|
+
- spec/gherkin/fixtures/i18n_pt1.feature
|
372
|
+
- spec/gherkin/fixtures/i18n_pt2.feature
|
373
|
+
- spec/gherkin/fixtures/i18n_pt3.feature
|
374
|
+
- spec/gherkin/fixtures/i18n_pt4.feature
|
375
|
+
- spec/gherkin/fixtures/i18n_zh-CN.feature
|
376
|
+
- spec/gherkin/fixtures/iso-8859-1.feature
|
377
|
+
- spec/gherkin/fixtures/issue_145.feature
|
378
|
+
- spec/gherkin/fixtures/scenario_outline_with_tags.feature
|
379
|
+
- spec/gherkin/fixtures/scenario_without_steps.feature
|
380
|
+
- spec/gherkin/fixtures/simple_with_comments.feature
|
381
|
+
- spec/gherkin/fixtures/simple_with_tags.feature
|
382
|
+
- spec/gherkin/fixtures/with_bom.feature
|
383
|
+
- spec/gherkin/fixtures/with_bom_and_language_spec.feature
|
384
|
+
- spec/gherkin/formatter/ansi_escapes_spec.rb
|
385
|
+
- spec/gherkin/formatter/filter_formatter_spec.rb
|
386
|
+
- spec/gherkin/formatter/json_formatter_spec.rb
|
387
|
+
- spec/gherkin/formatter/model_spec.rb
|
388
|
+
- spec/gherkin/formatter/pretty_formatter_spec.rb
|
389
|
+
- spec/gherkin/formatter/spaces.feature
|
390
|
+
- spec/gherkin/formatter/step_printer_spec.rb
|
391
|
+
- spec/gherkin/formatter/tabs.feature
|
392
|
+
- spec/gherkin/formatter/tag_count_formatter_spec.rb
|
393
|
+
- spec/gherkin/i18n_spec.rb
|
394
|
+
- spec/gherkin/java_lexer_spec.rb
|
395
|
+
- spec/gherkin/json_parser_spec.rb
|
396
|
+
- spec/gherkin/lexer/i18n_lexer_spec.rb
|
397
|
+
- spec/gherkin/native_lexer_spec.rb
|
398
|
+
- spec/gherkin/parser/parser_spec.rb
|
399
|
+
- spec/gherkin/rubify_spec.rb
|
400
|
+
- spec/gherkin/sexp_recorder.rb
|
401
|
+
- spec/gherkin/shared/doc_string_group.rb
|
402
|
+
- spec/gherkin/shared/encoding_group.rb
|
403
|
+
- spec/gherkin/shared/lexer_group.rb
|
404
|
+
- spec/gherkin/shared/row_group.rb
|
405
|
+
- spec/gherkin/shared/tags_group.rb
|
406
|
+
- spec/gherkin/tag_expression_spec.rb
|
407
|
+
- spec/spec_helper.rb
|
343
408
|
has_rdoc:
|