gherkin 2.6.5-x86-mingw32 → 2.6.6-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 +16 -0
- data/README.md +10 -6
- data/build_native_gems.sh +0 -1
- data/features/support/env.rb +0 -1
- data/gherkin.gemspec +1 -1
- 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_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_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.rb +0 -5
- data/spec/spec_helper.rb +0 -1
- data/tasks/gems.rake +2 -14
- data/tasks/ikvm.rake +79 -48
- data/tasks/release.rake +1 -2
- metadata +23 -25
- data/spec/gherkin/java_libs.rb +0 -20
data/.travis.yml
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## [2.6.6](https://github.com/cucumber/gherkin/compare/v2.6.5...v2.6.6)
|
2
|
+
|
3
|
+
### New Features
|
4
|
+
|
5
|
+
* .NET dll is released as a NuGet package instead of being uploaded to https://github.com/cucumber/gherkin/downloads ([#144](https://github.com/cucumber/gherkin/issues/144), [#147](https://github.com/cucumber/gherkin/pull/147) Jeffrey Cameron, Aslak Hellesøy)
|
6
|
+
|
7
|
+
### Changed Features
|
8
|
+
|
9
|
+
* The lib/gherkin.jar that goes into the JRuby gem contains json-simple and base64 classes instead of separate jars (Aslak Hellesøy)
|
10
|
+
* .NET dll, which is based on lib/gherkin.jar also contains json-simple and base64 (Aslak Hellesøy)
|
11
|
+
* gherkin jars published to Maven repo do *not* bundle the json-simple and base64 jars. (Aslak Hellesøy)
|
12
|
+
|
13
|
+
### Removed Features
|
14
|
+
|
15
|
+
* IronRuby gems are no longer published. Nobody seems to be using it, and it's too much pain to test. (Aslak Hellesøy)
|
16
|
+
|
1
17
|
## [2.6.5](https://github.com/cucumber/gherkin/compare/v2.6.4...v2.6.5)
|
2
18
|
|
3
19
|
### Bugfixes
|
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.6.
|
57
|
+
<version>2.6.6</version>
|
58
58
|
</dependency>
|
59
59
|
|
60
60
|
You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
|
@@ -158,12 +158,17 @@ If you're hacking and just want to rebuild the English parser:
|
|
158
158
|
|
159
159
|
TODO: Make all specs pass with js lexer - replace 'c(listener)' with 'js(listener)' in i18n.rb
|
160
160
|
|
161
|
-
### .NET
|
161
|
+
### .NET dll
|
162
162
|
|
163
|
-
You must install Mono
|
163
|
+
You must install Mono from source, or use a release of Mono after November 18 2011.
|
164
164
|
|
165
|
-
|
166
|
-
|
165
|
+
You must also download NuGet.exe from [CodePlex](http://nuget.codeplex.com/releases). When it's installed, update it and register your CodePlex API Key:
|
166
|
+
|
167
|
+
# In case we need to update
|
168
|
+
mono /usr/local/nuget/NuGet.exe Update -self
|
169
|
+
|
170
|
+
# The key is at http://nuget.org/Contribute/MyAccount
|
171
|
+
mono /usr/local/nuget/NuGet.exe SetApiKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
|
167
172
|
|
168
173
|
Now you can build the .NET dll with:
|
169
174
|
|
@@ -216,7 +221,6 @@ Now you can build Windows gems:
|
|
216
221
|
* This file (Installation/Java section)
|
217
222
|
* gherkin.gemspec
|
218
223
|
* java/pom.xml
|
219
|
-
* ikvm/Gherkin/Gherkin.csproj (2 places)
|
220
224
|
* js/package.json
|
221
225
|
* Run `bundle update`, so Gemfile.lock gets updated with the changes.
|
222
226
|
* Commit changes, otherwise you will get an error at the end when a tag is made.
|
data/build_native_gems.sh
CHANGED
data/features/support/env.rb
CHANGED
data/gherkin.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "gherkin"
|
5
5
|
# If bumping the major version here, comment out the cucumber dependency below and uncomment in the Gemfile to build against a local cucumber.
|
6
|
-
s.version = "2.6.
|
6
|
+
s.version = "2.6.6"
|
7
7
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
8
8
|
s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
|
9
9
|
s.summary = "#{s.name}-#{s.version}"
|
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_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_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.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -12,7 +12,6 @@ require 'gherkin'
|
|
12
12
|
require 'stringio'
|
13
13
|
require 'gherkin/sexp_recorder'
|
14
14
|
require 'gherkin/output_stream_string_io'
|
15
|
-
require 'gherkin/java_libs'
|
16
15
|
require 'gherkin/shared/bom_group'
|
17
16
|
require 'gherkin/shared/lexer_group'
|
18
17
|
require 'gherkin/shared/tags_group'
|
data/tasks/gems.rake
CHANGED
@@ -13,20 +13,9 @@ namespace :gems do
|
|
13
13
|
|
14
14
|
desc 'Prepare JRuby binares'
|
15
15
|
task :jruby => [:jar] do
|
16
|
-
|
17
|
-
# Need to move the Gemfile.lock out of the way because the latest json gems
|
18
|
-
# don't exist in identical versions: https://github.com/flori/json/pull/95
|
19
|
-
# native gem is 1.6.0 and java gem is 1.6.0.1
|
20
|
-
mv "Gemfile.lock", "Gemfile.lock.hack"
|
21
|
-
sh "rvm jruby@cucumber exec rspec spec"
|
22
|
-
ensure
|
23
|
-
mv "Gemfile.lock.hack", "Gemfile.lock"
|
24
|
-
end
|
16
|
+
sh "rvm jruby@cucumber exec rspec spec"
|
25
17
|
end
|
26
18
|
|
27
|
-
desc 'Prepare IronRuby binaries'
|
28
|
-
task :ironruby => [:jruby, 'ikvm:dll', 'ikvm:copy_ikvm_dlls']
|
29
|
-
|
30
19
|
task :sanity do
|
31
20
|
raise "The jruby gem looks too small" if File.stat("release/gherkin-#{GHERKIN_VERSION}-java.gem").size < 1000000
|
32
21
|
end
|
@@ -36,8 +25,7 @@ namespace :gems do
|
|
36
25
|
:clean,
|
37
26
|
:spec,
|
38
27
|
:win,
|
39
|
-
:jruby
|
40
|
-
:ironruby
|
28
|
+
:jruby
|
41
29
|
]
|
42
30
|
|
43
31
|
end
|
data/tasks/ikvm.rake
CHANGED
@@ -1,36 +1,25 @@
|
|
1
|
-
|
2
|
-
# To test out the pure Java main program on .NET, execute:
|
3
|
-
#
|
4
|
-
# rake ikvm
|
5
|
-
#
|
6
|
-
# Just print dots:
|
7
|
-
#
|
8
|
-
# [mono] pkg/gherkin.exe features
|
9
|
-
#
|
10
|
-
# Pretty print all to STDOUT:
|
11
|
-
#
|
12
|
-
# [mono] pkg/gherkin.exe features pretty
|
13
|
-
#
|
14
|
-
# To test out the pure C# main program on .NET, execute:
|
15
|
-
#
|
16
|
-
# rake ikvm (you need this to generate all the .dll files needed for the next step)
|
17
|
-
#
|
18
|
-
# Then build ikvm/Gherkin.sln. Then:
|
19
|
-
#
|
20
|
-
# [mono] mono ikvm/Gherkin/bin/Debug/Gherkin.exe features/steps_parser.feature
|
21
|
-
#
|
1
|
+
# encoding: utf-8
|
22
2
|
namespace :ikvm do
|
3
|
+
IKVM_VERSION = '0.46.0.1'
|
4
|
+
IKVM_BIN_DIR = "ikvm/ikvm-#{IKVM_VERSION}/bin"
|
5
|
+
IKVMC_EXE = "#{IKVM_BIN_DIR}/ikvmc.exe"
|
6
|
+
GHERKIN_EXE = "release/gherkin.exe"
|
7
|
+
GHERKIN_PKG_DLL = "release/nuspec/lib/gherkin.dll"
|
8
|
+
GHERKIN_NUSPEC = "release/nuspec/gherkin.nuspec"
|
9
|
+
GHERKIN_NUPKG = "release/gherkin.#{GHERKIN_VERSION}.nupkg"
|
10
|
+
GHERKIN_LIB_DLL = 'lib/gherkin.dll'
|
11
|
+
|
23
12
|
def mono(args)
|
24
13
|
if(`which mono`.strip =~ /mono/)
|
25
14
|
sh("mono #{args}")
|
26
15
|
else
|
27
|
-
raise "[ERROR] You must install Mono and IKVM build gherkin for .NET. See README.
|
16
|
+
raise "[ERROR] You must install Mono and IKVM build gherkin for .NET. See README.md"
|
28
17
|
end
|
29
18
|
end
|
30
19
|
|
31
20
|
def ikvmc(args)
|
32
21
|
begin
|
33
|
-
mono("
|
22
|
+
mono("#{IKVMC_EXE} #{args}")
|
34
23
|
rescue => e
|
35
24
|
if e.message =~ /Cannot open assembly/
|
36
25
|
e.message << "\n\n[ERROR] You must install Mono and IKVM build gherkin for .NET. See README.rdoc"
|
@@ -39,42 +28,84 @@ namespace :ikvm do
|
|
39
28
|
end
|
40
29
|
end
|
41
30
|
|
42
|
-
def
|
43
|
-
|
31
|
+
def nuget(args)
|
32
|
+
mono("/usr/local/nuget/NuGet.exe #{args}")
|
33
|
+
end
|
34
|
+
|
35
|
+
file GHERKIN_EXE => [IKVMC_EXE, 'lib/gherkin.jar'] do
|
36
|
+
ikvmc("-target:exe lib/gherkin.jar -out:#{GHERKIN_EXE}")
|
37
|
+
end
|
38
|
+
|
39
|
+
file GHERKIN_PKG_DLL => [IKVMC_EXE, 'lib/gherkin.jar'] do
|
40
|
+
mkdir_p File.dirname(GHERKIN_PKG_DLL) unless File.directory?(File.dirname(GHERKIN_PKG_DLL))
|
41
|
+
ikvmc("-target:library lib/gherkin.jar -out:#{GHERKIN_PKG_DLL} -version:#{GHERKIN_VERSION}")
|
42
|
+
end
|
43
|
+
|
44
|
+
file GHERKIN_LIB_DLL => GHERKIN_PKG_DLL do
|
45
|
+
cp GHERKIN_PKG_DLL, GHERKIN_LIB_DLL
|
44
46
|
end
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
48
|
+
file GHERKIN_NUPKG => [GHERKIN_PKG_DLL, GHERKIN_NUSPEC] do
|
49
|
+
pkg_dir = File.dirname(GHERKIN_EXE)
|
50
|
+
mkdir_p File.dirname(pkg_dir) unless File.directory?(pkg_dir)
|
51
|
+
nuget("Pack #{GHERKIN_NUSPEC} -Version #{GHERKIN_VERSION} -OutputDirectory #{pkg_dir}")
|
52
|
+
end
|
53
|
+
|
54
|
+
file GHERKIN_NUSPEC do
|
55
|
+
mkdir_p File.dirname(GHERKIN_NUSPEC) unless File.directory?(File.dirname(GHERKIN_NUSPEC))
|
56
|
+
File.open(GHERKIN_NUSPEC, "w") do |io|
|
57
|
+
io.write(<<-EOF)
|
58
|
+
<?xml version="1.0"?>
|
59
|
+
<package>
|
60
|
+
<metadata>
|
61
|
+
<id>gherkin</id>
|
62
|
+
<version>#{GHERKIN_VERSION}</version>
|
63
|
+
<authors>aslakhellesoy</authors>
|
64
|
+
<owners>Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy</owners>
|
65
|
+
<projectUrl>https://github.com/cucumber/gherkin</projectUrl>
|
66
|
+
<licenseUrl>https://github.com/cucumber/gherkin/blob/master/LICENSE</licenseUrl>
|
67
|
+
<iconUrl>https://github.com/cucumber/cukes.info/raw/master/templates/images/gherkin/gherkin_32x32.png</iconUrl>
|
68
|
+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
69
|
+
<description>A fast lexer and parser for the Gherkin language based on Ragel</description>
|
70
|
+
<copyright>Copyright (c) 2009-2011 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy</copyright>
|
71
|
+
<dependencies>
|
72
|
+
<dependency id="IKVM" version="#{IKVM_VERSION}" />
|
73
|
+
</dependencies>
|
74
|
+
<tags>gherkin cucumber specflow bdd lexer parser</tags>
|
75
|
+
</metadata>
|
76
|
+
</package>
|
77
|
+
EOF
|
50
78
|
end
|
51
79
|
end
|
52
80
|
|
53
|
-
|
54
|
-
|
55
|
-
|
81
|
+
task :nupkg => GHERKIN_NUPKG
|
82
|
+
|
83
|
+
task :check => [GHERKIN_EXE, :copy_ikvm_dlls] do
|
84
|
+
puts "************** Pretty printing some features with .NET. **************"
|
85
|
+
mono "#{GHERKIN_EXE} features"
|
86
|
+
puts "************** DONE Pretty printing some features with .NET. All OK. **************"
|
56
87
|
end
|
57
88
|
|
58
|
-
|
59
|
-
|
60
|
-
mkdir_p
|
61
|
-
|
62
|
-
|
89
|
+
task :copy_ikvm_dlls => IKVMC_EXE do
|
90
|
+
exe_dir = File.dirname(GHERKIN_EXE)
|
91
|
+
mkdir_p File.dirname(exe_dir) unless File.directory?(exe_dir)
|
92
|
+
Dir["#{IKVM_BIN_DIR}/*.dll"].each do |dll|
|
93
|
+
cp dll, exe_dir
|
94
|
+
end
|
63
95
|
end
|
64
96
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
97
|
+
task :push => GHERKIN_NUPKG do
|
98
|
+
nuget("Push #{GHERKIN_NUPKG}")
|
99
|
+
nuget("Publish gherkin #{GHERKIN_VERSION}")
|
100
|
+
end
|
101
|
+
|
102
|
+
file IKVMC_EXE do
|
103
|
+
sh("wget http://downloads.sourceforge.net/project/ikvm/ikvm/#{IKVM_VERSION}/ikvmbin-#{IKVM_VERSION}.zip -O ikvm/ikvmbin-#{IKVM_VERSION}.zip")
|
104
|
+
Dir.chdir('ikvm') do
|
105
|
+
sh("unzip ikvmbin-#{IKVM_VERSION}.zip")
|
71
106
|
end
|
72
107
|
end
|
73
108
|
end
|
74
109
|
|
75
|
-
task :ikvm => ['ikvm:
|
76
|
-
puts "************** Pretty printing some features with .NET. **************"
|
77
|
-
mono "release/gherkin-#{GHERKIN_VERSION}.exe features"
|
78
|
-
puts "************** DONE Pretty printing some features with .NET. All OK. **************"
|
79
|
-
end
|
110
|
+
task :ikvm => ['ikvm:check']
|
80
111
|
|
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', :
|
3
|
+
task :ALL => ['gems:sanity', 'ikvm:check', :mvn_deploy_jar, :mvn_deploy_site, :push_native_gems, :push_npm_package, 'ikvm:push', :release, :push_yard, :symlink_docs, :post_release]
|
4
4
|
|
5
5
|
desc 'Push all gems to rubygems.org'
|
6
6
|
task :push_native_gems do
|
@@ -12,7 +12,6 @@ namespace :release do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
task :post_release => :ikvm do
|
15
|
-
puts "\n\n****** Manually upload gherkin-#{GHERKIN_VERSION}.dll to http://github.com/cucumber/gherkin/downloads ******\n\n"
|
16
15
|
puts "\n\n****** Manually close and release at https://oss.sonatype.org/index.html#stagingRepositories ******\n\n"
|
17
16
|
end
|
18
17
|
|
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.6.
|
4
|
+
version: 2.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: x86-mingw32
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-11-
|
14
|
+
date: 2011-11-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
18
|
-
requirement: &
|
18
|
+
requirement: &2152866180 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 1.4.6
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2152866180
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cucumber
|
29
|
-
requirement: &
|
29
|
+
requirement: &2153010900 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 1.1.2
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2153010900
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rake
|
40
|
-
requirement: &
|
40
|
+
requirement: &2153010440 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 0.9.2
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2153010440
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: bundler
|
51
|
-
requirement: &
|
51
|
+
requirement: &2153009920 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: 1.0.21
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2153009920
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: rspec
|
62
|
-
requirement: &
|
62
|
+
requirement: &2153009400 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: 2.7.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *2153009400
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: therubyracer
|
73
|
-
requirement: &
|
73
|
+
requirement: &2153008840 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: 0.9.9
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *2153008840
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: yard
|
84
|
-
requirement: &
|
84
|
+
requirement: &2153008380 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: 0.7.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *2153008380
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rdiscount
|
95
|
-
requirement: &
|
95
|
+
requirement: &2153007920 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ! '>='
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: 1.6.8
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *2153007920
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: term-ansicolor
|
106
|
-
requirement: &
|
106
|
+
requirement: &2153007460 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ! '>='
|
@@ -111,10 +111,10 @@ dependencies:
|
|
111
111
|
version: 1.0.6
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *2153007460
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: builder
|
117
|
-
requirement: &
|
117
|
+
requirement: &2153007000 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ! '>='
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
version: 2.1.2
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
|
-
version_requirements: *
|
125
|
+
version_requirements: *2153007000
|
126
126
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
127
127
|
email: cukes@googlegroups.com
|
128
128
|
executables: []
|
@@ -230,7 +230,6 @@ files:
|
|
230
230
|
- spec/gherkin/formatter/tag_count_formatter_spec.rb
|
231
231
|
- spec/gherkin/i18n_spec.rb
|
232
232
|
- spec/gherkin/java_lexer_spec.rb
|
233
|
-
- spec/gherkin/java_libs.rb
|
234
233
|
- spec/gherkin/js_lexer_spec.rb
|
235
234
|
- spec/gherkin/json_parser_spec.rb
|
236
235
|
- spec/gherkin/lexer/i18n_lexer_spec.rb
|
@@ -377,7 +376,7 @@ rubyforge_project:
|
|
377
376
|
rubygems_version: 1.8.10
|
378
377
|
signing_key:
|
379
378
|
specification_version: 3
|
380
|
-
summary: gherkin-2.6.
|
379
|
+
summary: gherkin-2.6.6
|
381
380
|
test_files:
|
382
381
|
- features/escaped_pipes.feature
|
383
382
|
- features/feature_parser.feature
|
@@ -424,7 +423,6 @@ test_files:
|
|
424
423
|
- spec/gherkin/formatter/tag_count_formatter_spec.rb
|
425
424
|
- spec/gherkin/i18n_spec.rb
|
426
425
|
- spec/gherkin/java_lexer_spec.rb
|
427
|
-
- spec/gherkin/java_libs.rb
|
428
426
|
- spec/gherkin/js_lexer_spec.rb
|
429
427
|
- spec/gherkin/json_parser_spec.rb
|
430
428
|
- spec/gherkin/lexer/i18n_lexer_spec.rb
|
data/spec/gherkin/java_libs.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
JAVA_LIBS = {}
|
2
|
-
|
3
|
-
unless RUBY_VERSION == '1.8.6'
|
4
|
-
# When we're building native windows gems with 1.8.6 this block of code fails.
|
5
|
-
# We'll just disable running it - it's not needed at that stage of the build.
|
6
|
-
|
7
|
-
require 'rexml/document'
|
8
|
-
pom = REXML::Document.new(IO.read(File.dirname(__FILE__) + '/../../java/pom.xml'))
|
9
|
-
pom_version = REXML::XPath.first(pom, '//xmlns:project/xmlns:version/text()').to_s
|
10
|
-
REXML::XPath.each(pom, '//xmlns:project/xmlns:dependencies/xmlns:dependency').each do |dep|
|
11
|
-
groupId = dep.get_elements('groupId')[0].text()
|
12
|
-
artifactId = dep.get_elements('artifactId')[0].text()
|
13
|
-
version = dep.get_elements('version')[0].text()
|
14
|
-
scope = dep.get_elements('scope')[0].text() rescue nil
|
15
|
-
|
16
|
-
jar = "~/.m2/repository/#{groupId.gsub(/\./, '/')}/#{artifactId}/#{version}/#{artifactId}-#{version}.jar"
|
17
|
-
JAVA_LIBS["#{groupId}-#{artifactId}"] = jar if scope != 'test'
|
18
|
-
require jar if defined?(JRUBY_VERSION)
|
19
|
-
end
|
20
|
-
end
|