gherkin 2.11.2-x86-mingw32 → 2.11.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/History.md +9 -0
- data/README.md +2 -1
- data/gherkin.gemspec +4 -4
- data/lib/1.8/gherkin_lexer_ar.so +0 -0
- data/lib/1.8/gherkin_lexer_bg.so +0 -0
- data/lib/1.8/gherkin_lexer_bm.so +0 -0
- data/lib/1.8/gherkin_lexer_ca.so +0 -0
- data/lib/1.8/gherkin_lexer_cs.so +0 -0
- data/lib/1.8/gherkin_lexer_cy_gb.so +0 -0
- data/lib/1.8/gherkin_lexer_da.so +0 -0
- data/lib/1.8/gherkin_lexer_de.so +0 -0
- data/lib/1.8/gherkin_lexer_en.so +0 -0
- data/lib/1.8/gherkin_lexer_en_au.so +0 -0
- data/lib/1.8/gherkin_lexer_en_lol.so +0 -0
- data/lib/1.8/gherkin_lexer_en_pirate.so +0 -0
- data/lib/1.8/gherkin_lexer_en_scouse.so +0 -0
- data/lib/1.8/gherkin_lexer_en_tx.so +0 -0
- data/lib/1.8/gherkin_lexer_eo.so +0 -0
- data/lib/1.8/gherkin_lexer_es.so +0 -0
- data/lib/1.8/gherkin_lexer_et.so +0 -0
- data/lib/1.8/gherkin_lexer_fi.so +0 -0
- data/lib/1.8/gherkin_lexer_fr.so +0 -0
- data/lib/1.8/gherkin_lexer_he.so +0 -0
- data/lib/1.8/gherkin_lexer_hr.so +0 -0
- data/lib/1.8/gherkin_lexer_hu.so +0 -0
- data/lib/1.8/gherkin_lexer_id.so +0 -0
- data/lib/1.8/gherkin_lexer_is.so +0 -0
- data/lib/1.8/gherkin_lexer_it.so +0 -0
- data/lib/1.8/gherkin_lexer_ja.so +0 -0
- data/lib/1.8/gherkin_lexer_ko.so +0 -0
- data/lib/1.8/gherkin_lexer_lt.so +0 -0
- data/lib/1.8/gherkin_lexer_lu.so +0 -0
- data/lib/1.8/gherkin_lexer_lv.so +0 -0
- data/lib/1.8/gherkin_lexer_nl.so +0 -0
- data/lib/1.8/gherkin_lexer_no.so +0 -0
- data/lib/1.8/gherkin_lexer_pl.so +0 -0
- data/lib/1.8/gherkin_lexer_pt.so +0 -0
- data/lib/1.8/gherkin_lexer_ro.so +0 -0
- data/lib/1.8/gherkin_lexer_ru.so +0 -0
- data/lib/1.8/gherkin_lexer_sk.so +0 -0
- data/lib/1.8/gherkin_lexer_sr_cyrl.so +0 -0
- data/lib/1.8/gherkin_lexer_sr_latn.so +0 -0
- data/lib/1.8/gherkin_lexer_sv.so +0 -0
- data/lib/1.8/gherkin_lexer_tr.so +0 -0
- data/lib/1.8/gherkin_lexer_uk.so +0 -0
- data/lib/1.8/gherkin_lexer_uz.so +0 -0
- data/lib/1.8/gherkin_lexer_vi.so +0 -0
- data/lib/1.8/gherkin_lexer_zh_cn.so +0 -0
- data/lib/1.8/gherkin_lexer_zh_tw.so +0 -0
- data/lib/1.9/gherkin_lexer_ar.so +0 -0
- data/lib/1.9/gherkin_lexer_bg.so +0 -0
- data/lib/1.9/gherkin_lexer_bm.so +0 -0
- data/lib/1.9/gherkin_lexer_ca.so +0 -0
- data/lib/1.9/gherkin_lexer_cs.so +0 -0
- data/lib/1.9/gherkin_lexer_cy_gb.so +0 -0
- data/lib/1.9/gherkin_lexer_da.so +0 -0
- data/lib/1.9/gherkin_lexer_de.so +0 -0
- data/lib/1.9/gherkin_lexer_en.so +0 -0
- data/lib/1.9/gherkin_lexer_en_au.so +0 -0
- data/lib/1.9/gherkin_lexer_en_lol.so +0 -0
- data/lib/1.9/gherkin_lexer_en_pirate.so +0 -0
- data/lib/1.9/gherkin_lexer_en_scouse.so +0 -0
- data/lib/1.9/gherkin_lexer_en_tx.so +0 -0
- data/lib/1.9/gherkin_lexer_eo.so +0 -0
- data/lib/1.9/gherkin_lexer_es.so +0 -0
- data/lib/1.9/gherkin_lexer_et.so +0 -0
- data/lib/1.9/gherkin_lexer_fi.so +0 -0
- data/lib/1.9/gherkin_lexer_fr.so +0 -0
- data/lib/1.9/gherkin_lexer_he.so +0 -0
- data/lib/1.9/gherkin_lexer_hr.so +0 -0
- data/lib/1.9/gherkin_lexer_hu.so +0 -0
- data/lib/1.9/gherkin_lexer_id.so +0 -0
- data/lib/1.9/gherkin_lexer_is.so +0 -0
- data/lib/1.9/gherkin_lexer_it.so +0 -0
- data/lib/1.9/gherkin_lexer_ja.so +0 -0
- data/lib/1.9/gherkin_lexer_ko.so +0 -0
- data/lib/1.9/gherkin_lexer_lt.so +0 -0
- data/lib/1.9/gherkin_lexer_lu.so +0 -0
- data/lib/1.9/gherkin_lexer_lv.so +0 -0
- data/lib/1.9/gherkin_lexer_nl.so +0 -0
- data/lib/1.9/gherkin_lexer_no.so +0 -0
- data/lib/1.9/gherkin_lexer_pl.so +0 -0
- data/lib/1.9/gherkin_lexer_pt.so +0 -0
- data/lib/1.9/gherkin_lexer_ro.so +0 -0
- data/lib/1.9/gherkin_lexer_ru.so +0 -0
- data/lib/1.9/gherkin_lexer_sk.so +0 -0
- data/lib/1.9/gherkin_lexer_sr_cyrl.so +0 -0
- data/lib/1.9/gherkin_lexer_sr_latn.so +0 -0
- data/lib/1.9/gherkin_lexer_sv.so +0 -0
- data/lib/1.9/gherkin_lexer_tr.so +0 -0
- data/lib/1.9/gherkin_lexer_uk.so +0 -0
- data/lib/1.9/gherkin_lexer_uz.so +0 -0
- data/lib/1.9/gherkin_lexer_vi.so +0 -0
- data/lib/1.9/gherkin_lexer_zh_cn.so +0 -0
- data/lib/1.9/gherkin_lexer_zh_tw.so +0 -0
- data/lib/gherkin/i18n.json +10 -10
- data/lib/gherkin/i18n.rb +1 -1
- data/ragel/lexer.c.rl.erb +5 -5
- data/tasks/apidoc.rake +32 -0
- data/tasks/ikvm.rake +1 -1
- data/tasks/ragel_task.rb +1 -0
- data/tasks/release.rake +1 -19
- metadata +8 -8
- data/tasks/yard.rake +0 -7
data/.travis.yml
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [2.11.3](https://github.com/cucumber/gherkin/compare/v2.11.2...v2.11.3)
|
2
|
+
|
3
|
+
* [.NET] Upgraded IKVM from 0.46.0.1 to 7.1.4532.2 - quite a version bump! (Aslak Hellesøy)
|
4
|
+
* [JavaScript] Added a README to prevent npm warnings. (Aslak Hellesøy)
|
5
|
+
* [Ruby] Don't use C++ style comments. ([#191](https://github.com/cucumber/gherkin/pull/191) Sam Goldman)
|
6
|
+
* [Core] Fix for Australian language support ([#196](https://github.com/cucumber/gherkin/pull/196) hogfish)
|
7
|
+
* [Ruby] Add encoding option to IO.read ([#190](https://github.com/cucumber/gherkin/pull/190), [#192](https://github.com/cucumber/gherkin/issues/192) [#194](https://github.com/cucumber/gherkin/pull/194) HUANG Wei, Levin Alexander)
|
8
|
+
* [JavaScript] Can't run on IE because of `const` keyword ([#186](https://github.com/cucumber/gherkin/issues/186) Aslak Hellesøy)
|
9
|
+
|
1
10
|
## [2.11.2](https://github.com/cucumber/gherkin/compare/v2.11.1...v2.11.2)
|
2
11
|
|
3
12
|
* [Java] Depend on an external gherkin-jvm-deps jar with repackaged dependencies (Aslak Hellesøy, Rex Hoffman)
|
data/README.md
CHANGED
@@ -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.11.
|
57
|
+
<version>2.11.3</version>
|
58
58
|
</dependency>
|
59
59
|
|
60
60
|
You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
|
@@ -251,6 +251,7 @@ Now we can release:
|
|
251
251
|
* gherkin.gemspec
|
252
252
|
* java/pom.xml
|
253
253
|
* js/package.json
|
254
|
+
* History.md
|
254
255
|
* Run `bundle update`, so Gemfile.lock gets updated with the changes.
|
255
256
|
* Commit changes, otherwise you will get an error at the end when a tag is made.
|
256
257
|
* Run `bundle exec rake gems:prepare && ./build_native_gems.sh && bundle exec rake release:ALL`
|
data/gherkin.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
# 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
|
16
16
|
# and release both projects. Do this for both ruby 1.8.7, ruby 1.9.3 and jruby.
|
17
17
|
#
|
18
|
-
s.version = "2.11.
|
18
|
+
s.version = "2.11.3"
|
19
19
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
20
20
|
s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
|
21
21
|
s.summary = "#{s.name}-#{s.version}"
|
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
|
|
52
52
|
s.files += Dir['lib/gherkin/rb_lexer/*.rb']
|
53
53
|
s.files += Dir['ext/**/*.c']
|
54
54
|
s.extensions = Dir['ext/**/extconf.rb']
|
55
|
-
s.add_development_dependency('rake-compiler', '>= 0.8.
|
55
|
+
s.add_development_dependency('rake-compiler', '>= 0.8.1')
|
56
56
|
end
|
57
57
|
s.files -= Dir['**/.gitignore']
|
58
58
|
|
@@ -60,7 +60,7 @@ Gem::Specification.new do |s|
|
|
60
60
|
|
61
61
|
s.add_development_dependency('cucumber', '>= 1.2.1')
|
62
62
|
s.add_development_dependency('rake', '>= 0.9.2')
|
63
|
-
s.add_development_dependency('bundler', '>= 1.1
|
63
|
+
s.add_development_dependency('bundler', '>= 1.2.1') # Make sure it's in sync with /.travis.yml
|
64
64
|
s.add_development_dependency('rspec', '~> 2.11.0')
|
65
65
|
s.add_development_dependency('rubyzip', '>= 0.9.9')
|
66
66
|
|
@@ -73,5 +73,5 @@ Gem::Specification.new do |s|
|
|
73
73
|
|
74
74
|
# Only needed by Cucumber. Remove when Cucumber no longer needs those.
|
75
75
|
s.add_development_dependency('term-ansicolor', '>= 1.0.7')
|
76
|
-
s.add_development_dependency('builder', '>=
|
76
|
+
s.add_development_dependency('builder', '>= 3.1.3')
|
77
77
|
end
|
data/lib/1.8/gherkin_lexer_ar.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_bg.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_bm.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_ca.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_cs.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.8/gherkin_lexer_da.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_de.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_en.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/1.8/gherkin_lexer_eo.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_es.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_et.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_fi.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_fr.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_he.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_hr.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_hu.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_id.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_is.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_it.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_ja.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_ko.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_lt.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_lu.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_lv.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_nl.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_no.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_pl.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_pt.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_ro.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_ru.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_sk.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.8/gherkin_lexer_sv.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_tr.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_uk.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_uz.so
CHANGED
Binary file
|
data/lib/1.8/gherkin_lexer_vi.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_ar.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_bg.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_bm.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ca.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_cs.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_da.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_de.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_en.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_eo.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_es.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_et.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_fi.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_fr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_he.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_hr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_hu.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_id.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_is.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_it.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ja.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ko.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lt.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lu.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_lv.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_nl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_no.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_pl.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_pt.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ro.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_ru.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_sk.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/gherkin_lexer_sv.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_tr.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_uk.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_uz.so
CHANGED
Binary file
|
data/lib/1.9/gherkin_lexer_vi.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/gherkin/i18n.json
CHANGED
@@ -128,16 +128,16 @@
|
|
128
128
|
"en-au": {
|
129
129
|
"name": "Australian",
|
130
130
|
"native": "Australian",
|
131
|
-
"feature": "
|
132
|
-
"background": "
|
133
|
-
"scenario": "
|
134
|
-
"scenario_outline": "
|
135
|
-
"examples": "
|
136
|
-
"given": "*|
|
137
|
-
"when": "*|
|
138
|
-
"then": "*|
|
139
|
-
"and": "*|
|
140
|
-
"but": "*|
|
131
|
+
"feature": "Pretty much",
|
132
|
+
"background": "First off",
|
133
|
+
"scenario": "Awww, look mate",
|
134
|
+
"scenario_outline": "Reckon it's like",
|
135
|
+
"examples": "You'll wanna",
|
136
|
+
"given": "*|Y'know",
|
137
|
+
"when": "*|It's just unbelievable",
|
138
|
+
"then": "*|But at the end of the day I reckon",
|
139
|
+
"and": "*|Too right",
|
140
|
+
"but": "*|Yeah nah"
|
141
141
|
},
|
142
142
|
"en-lol": {
|
143
143
|
"name": "LOLCAT",
|
data/lib/gherkin/i18n.rb
CHANGED
@@ -11,7 +11,7 @@ module Gherkin
|
|
11
11
|
FEATURE_ELEMENT_KEYS = %w{feature background scenario scenario_outline examples}
|
12
12
|
STEP_KEYWORD_KEYS = %w{given when then and but}
|
13
13
|
KEYWORD_KEYS = FEATURE_ELEMENT_KEYS + STEP_KEYWORD_KEYS
|
14
|
-
LANGUAGES = JSON.parse(
|
14
|
+
LANGUAGES = JSON.parse(File.open(File.dirname(__FILE__) + '/i18n.json', 'r:utf-8').read)
|
15
15
|
|
16
16
|
class << self
|
17
17
|
include Rubify
|
data/ragel/lexer.c.rl.erb
CHANGED
@@ -221,14 +221,14 @@ static VALUE rb_eGherkinLexingError;
|
|
221
221
|
buff = data;
|
222
222
|
}
|
223
223
|
|
224
|
-
|
224
|
+
/* Allocate as a ruby string so that it gets cleaned up by GC */
|
225
225
|
newstr_val = rb_str_new(buff, len);
|
226
226
|
newstr = RSTRING_PTR(newstr_val);
|
227
227
|
|
228
228
|
|
229
229
|
for (count = 0; count < len; count++) {
|
230
230
|
if(buff[count] == 10) {
|
231
|
-
newstr[newstr_count] = '\0';
|
231
|
+
newstr[newstr_count] = '\0'; /* terminate new string at first newline found */
|
232
232
|
break;
|
233
233
|
} else {
|
234
234
|
if (buff[count] == '%') {
|
@@ -242,7 +242,7 @@ static VALUE rb_eGherkinLexingError;
|
|
242
242
|
}
|
243
243
|
|
244
244
|
line = lexer->line_number;
|
245
|
-
lexer_init(lexer);
|
245
|
+
lexer_init(lexer); /* Re-initialize so we can scan again with the same lexer */
|
246
246
|
raise_lexer_error(newstr, line);
|
247
247
|
} else {
|
248
248
|
rb_funcall(listener, rb_intern("eof"), 0);
|
@@ -260,7 +260,7 @@ static VALUE
|
|
260
260
|
unindent(VALUE con, int start_col)
|
261
261
|
{
|
262
262
|
VALUE re;
|
263
|
-
|
263
|
+
/* Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters */
|
264
264
|
char pat[32];
|
265
265
|
snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
|
266
266
|
re = rb_reg_regcomp(rb_str_new2(pat));
|
@@ -428,7 +428,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
428
428
|
assert(lexer->content_start <= len && "content starts after data end");
|
429
429
|
assert(lexer->mark < len && "mark is after data end");
|
430
430
|
|
431
|
-
|
431
|
+
/* Reset lexer by re-initializing the whole thing */
|
432
432
|
lexer_init(lexer);
|
433
433
|
|
434
434
|
if (cs == lexer_error) {
|
data/tasks/apidoc.rake
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
|
2
|
+
require 'yard'
|
3
|
+
require 'yard/rake/yardoc_task'
|
4
|
+
|
5
|
+
SITE_DIR = File.expand_path(File.dirname(__FILE__) + '/../../cucumber.github.com')
|
6
|
+
API_DIR = File.join(SITE_DIR, 'api', 'gherkin', GHERKIN_VERSION)
|
7
|
+
|
8
|
+
namespace :api do
|
9
|
+
file :dir do
|
10
|
+
raise "You need to git clone git@github.com:cucumber/cucumber.github.com.git #{SITE_DIR}" unless File.directory?(SITE_DIR)
|
11
|
+
mkdir_p API_DIR
|
12
|
+
end
|
13
|
+
|
14
|
+
YARD::Templates::Engine.register_template_path(File.expand_path(File.join(File.dirname(__FILE__), 'yard')))
|
15
|
+
YARD::Rake::YardocTask.new(:yard) do |yard|
|
16
|
+
dir = File.join(API_DIR, 'ruby')
|
17
|
+
mkdir_p dir
|
18
|
+
yard.options = ["--out", dir]
|
19
|
+
end
|
20
|
+
task :yard => :dir
|
21
|
+
|
22
|
+
task :mvn_javadoc => :dir do
|
23
|
+
Dir.chdir('java') do
|
24
|
+
sh("mvn javadoc:javadoc")
|
25
|
+
dir = File.join(API_DIR, 'java')
|
26
|
+
mv 'target/site/apidocs', dir
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
task :doc => [:mvn_javadoc, :yard]
|
31
|
+
end
|
32
|
+
end
|
data/tasks/ikvm.rake
CHANGED
data/tasks/ragel_task.rb
CHANGED
@@ -31,6 +31,7 @@ class RagelTask
|
|
31
31
|
# Ragel chokes if we put the escaped triple quotes in .rl, so we'll do the replace with sed after the fact. Lots of backslashes!!
|
32
32
|
sed = Config::CONFIG['host_os'] =~ /linux/i ? "sed -i" : "sed -i ''"
|
33
33
|
sh %{#{sed} 's/ESCAPED_TRIPLE_QUOTE/\\\\\\\\\\\\"\\\\\\\\\\\\"\\\\\\\\\\\\"/' #{target}}
|
34
|
+
sh %{#{sed} 's/const/var/' #{target}}
|
34
35
|
|
35
36
|
# Minify
|
36
37
|
sh %{node #{UGLIFYJS} #{target} > #{min_target}}
|
data/tasks/release.rake
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
namespace :release do
|
2
2
|
desc 'Upload all packages and tag git'
|
3
|
-
task :ALL => ['gems:sanity', 'ikvm:check', :mvn_deploy_jar, :mvn_deploy_site, :push_native_gems, :push_npm_package, 'ikvm:push', :release, :
|
3
|
+
task :ALL => ['gems:sanity', 'ikvm:check', :mvn_deploy_jar, :mvn_deploy_site, :push_native_gems, :push_npm_package, 'ikvm:push', :release, 'api:doc', :post_release]
|
4
4
|
|
5
5
|
desc 'Push all gems to rubygems.org'
|
6
6
|
task :push_native_gems do
|
@@ -22,28 +22,10 @@ namespace :release do
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
desc 'Push javadocs to cukes.info'
|
26
|
-
task :mvn_deploy_site do
|
27
|
-
Dir.chdir('java') do
|
28
|
-
sh("mvn site:site site:deploy")
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
25
|
desc 'Push npm package to http://npmjs.org/'
|
33
26
|
task :push_npm_package do
|
34
27
|
Dir.chdir('js') do
|
35
28
|
sh("npm publish")
|
36
29
|
end
|
37
30
|
end
|
38
|
-
|
39
|
-
desc 'Push yardoc to http://cukes.info/gherkin/api/#{GHERKIN_VERSION}'
|
40
|
-
task :push_yard => :yard do
|
41
|
-
sh("tar czf release/api-#{GHERKIN_VERSION}.tgz -C doc .")
|
42
|
-
sh("scp release/api-#{GHERKIN_VERSION}.tgz cukes.info:/var/www/gherkin/api/ruby")
|
43
|
-
end
|
44
|
-
|
45
|
-
task :symlink_docs do
|
46
|
-
sh("ssh cukes.info 'cd /var/www/gherkin/api/ruby && mkdir #{GHERKIN_VERSION} && tar xzf api-#{GHERKIN_VERSION}.tgz -C #{GHERKIN_VERSION} && rm -f latest && ln -s #{GHERKIN_VERSION} latest'")
|
47
|
-
sh("ssh cukes.info 'cd /var/www/gherkin/api/java && rm -f latest && ln -s #{GHERKIN_VERSION} latest'")
|
48
|
-
end
|
49
31
|
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.11.
|
4
|
+
version: 2.11.3
|
5
5
|
prerelease:
|
6
6
|
platform: x86-mingw32
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-08
|
14
|
+
date: 2012-10-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
requirements:
|
69
69
|
- - ! '>='
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: 1.1
|
71
|
+
version: 1.2.1
|
72
72
|
type: :development
|
73
73
|
prerelease: false
|
74
74
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - ! '>='
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 1.1
|
79
|
+
version: 1.2.1
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ dependencies:
|
|
180
180
|
requirements:
|
181
181
|
- - ! '>='
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
183
|
+
version: 3.1.3
|
184
184
|
type: :development
|
185
185
|
prerelease: false
|
186
186
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -188,7 +188,7 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - ! '>='
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version:
|
191
|
+
version: 3.1.3
|
192
192
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
193
193
|
email: cukes@googlegroups.com
|
194
194
|
executables: []
|
@@ -314,6 +314,7 @@ files:
|
|
314
314
|
- spec/gherkin/shared/tags_group.rb
|
315
315
|
- spec/gherkin/tag_expression_spec.rb
|
316
316
|
- spec/spec_helper.rb
|
317
|
+
- tasks/apidoc.rake
|
317
318
|
- tasks/bench.rake
|
318
319
|
- tasks/bench/feature_builder.rb
|
319
320
|
- tasks/bench/null_listener.rb
|
@@ -324,7 +325,6 @@ files:
|
|
324
325
|
- tasks/ragel_task.rb
|
325
326
|
- tasks/release.rake
|
326
327
|
- tasks/rspec.rake
|
327
|
-
- tasks/yard.rake
|
328
328
|
- tasks/yard/default/layout/html/bubble_32x32.png
|
329
329
|
- tasks/yard/default/layout/html/bubble_48x48.png
|
330
330
|
- tasks/yard/default/layout/html/footer.erb
|
@@ -448,7 +448,7 @@ rubyforge_project:
|
|
448
448
|
rubygems_version: 1.8.24
|
449
449
|
signing_key:
|
450
450
|
specification_version: 3
|
451
|
-
summary: gherkin-2.11.
|
451
|
+
summary: gherkin-2.11.3
|
452
452
|
test_files:
|
453
453
|
- features/escaped_pipes.feature
|
454
454
|
- features/feature_parser.feature
|
data/tasks/yard.rake
DELETED