gherkin 2.6.6-x86-mingw32 → 2.6.7-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/History.md +6 -0
  2. data/README.md +10 -8
  3. data/examples/parse_and_output_json.rb +19 -0
  4. data/gherkin.gemspec +2 -1
  5. data/lib/1.8/gherkin_lexer_ar.so +0 -0
  6. data/lib/1.8/gherkin_lexer_bg.so +0 -0
  7. data/lib/1.8/gherkin_lexer_ca.so +0 -0
  8. data/lib/1.8/gherkin_lexer_cs.so +0 -0
  9. data/lib/1.8/gherkin_lexer_cy_gb.so +0 -0
  10. data/lib/1.8/gherkin_lexer_da.so +0 -0
  11. data/lib/1.8/gherkin_lexer_de.so +0 -0
  12. data/lib/1.8/gherkin_lexer_en.so +0 -0
  13. data/lib/1.8/gherkin_lexer_en_au.so +0 -0
  14. data/lib/1.8/gherkin_lexer_en_lol.so +0 -0
  15. data/lib/1.8/gherkin_lexer_en_pirate.so +0 -0
  16. data/lib/1.8/gherkin_lexer_en_scouse.so +0 -0
  17. data/lib/1.8/gherkin_lexer_en_tx.so +0 -0
  18. data/lib/1.8/gherkin_lexer_eo.so +0 -0
  19. data/lib/1.8/gherkin_lexer_es.so +0 -0
  20. data/lib/1.8/gherkin_lexer_et.so +0 -0
  21. data/lib/1.8/gherkin_lexer_fi.so +0 -0
  22. data/lib/1.8/gherkin_lexer_fr.so +0 -0
  23. data/lib/1.8/gherkin_lexer_he.so +0 -0
  24. data/lib/1.8/gherkin_lexer_hr.so +0 -0
  25. data/lib/1.8/gherkin_lexer_hu.so +0 -0
  26. data/lib/1.8/gherkin_lexer_id.so +0 -0
  27. data/lib/1.8/gherkin_lexer_is.so +0 -0
  28. data/lib/1.8/gherkin_lexer_it.so +0 -0
  29. data/lib/1.8/gherkin_lexer_ja.so +0 -0
  30. data/lib/1.8/gherkin_lexer_ko.so +0 -0
  31. data/lib/1.8/gherkin_lexer_lt.so +0 -0
  32. data/lib/1.8/gherkin_lexer_lu.so +0 -0
  33. data/lib/1.8/gherkin_lexer_lv.so +0 -0
  34. data/lib/1.8/gherkin_lexer_nl.so +0 -0
  35. data/lib/1.8/gherkin_lexer_no.so +0 -0
  36. data/lib/1.8/gherkin_lexer_pl.so +0 -0
  37. data/lib/1.8/gherkin_lexer_pt.so +0 -0
  38. data/lib/1.8/gherkin_lexer_ro.so +0 -0
  39. data/lib/1.8/gherkin_lexer_ru.so +0 -0
  40. data/lib/1.8/gherkin_lexer_sk.so +0 -0
  41. data/lib/1.8/gherkin_lexer_sr_cyrl.so +0 -0
  42. data/lib/1.8/gherkin_lexer_sr_latn.so +0 -0
  43. data/lib/1.8/gherkin_lexer_sv.so +0 -0
  44. data/lib/1.8/gherkin_lexer_tr.so +0 -0
  45. data/lib/1.8/gherkin_lexer_uk.so +0 -0
  46. data/lib/1.8/gherkin_lexer_uz.so +0 -0
  47. data/lib/1.8/gherkin_lexer_vi.so +0 -0
  48. data/lib/1.8/gherkin_lexer_zh_cn.so +0 -0
  49. data/lib/1.8/gherkin_lexer_zh_tw.so +0 -0
  50. data/lib/1.9/gherkin_lexer_ar.so +0 -0
  51. data/lib/1.9/gherkin_lexer_bg.so +0 -0
  52. data/lib/1.9/gherkin_lexer_ca.so +0 -0
  53. data/lib/1.9/gherkin_lexer_cs.so +0 -0
  54. data/lib/1.9/gherkin_lexer_cy_gb.so +0 -0
  55. data/lib/1.9/gherkin_lexer_da.so +0 -0
  56. data/lib/1.9/gherkin_lexer_de.so +0 -0
  57. data/lib/1.9/gherkin_lexer_en.so +0 -0
  58. data/lib/1.9/gherkin_lexer_en_au.so +0 -0
  59. data/lib/1.9/gherkin_lexer_en_lol.so +0 -0
  60. data/lib/1.9/gherkin_lexer_en_pirate.so +0 -0
  61. data/lib/1.9/gherkin_lexer_en_scouse.so +0 -0
  62. data/lib/1.9/gherkin_lexer_en_tx.so +0 -0
  63. data/lib/1.9/gherkin_lexer_eo.so +0 -0
  64. data/lib/1.9/gherkin_lexer_es.so +0 -0
  65. data/lib/1.9/gherkin_lexer_et.so +0 -0
  66. data/lib/1.9/gherkin_lexer_fi.so +0 -0
  67. data/lib/1.9/gherkin_lexer_fr.so +0 -0
  68. data/lib/1.9/gherkin_lexer_he.so +0 -0
  69. data/lib/1.9/gherkin_lexer_hr.so +0 -0
  70. data/lib/1.9/gherkin_lexer_hu.so +0 -0
  71. data/lib/1.9/gherkin_lexer_id.so +0 -0
  72. data/lib/1.9/gherkin_lexer_is.so +0 -0
  73. data/lib/1.9/gherkin_lexer_it.so +0 -0
  74. data/lib/1.9/gherkin_lexer_ja.so +0 -0
  75. data/lib/1.9/gherkin_lexer_ko.so +0 -0
  76. data/lib/1.9/gherkin_lexer_lt.so +0 -0
  77. data/lib/1.9/gherkin_lexer_lu.so +0 -0
  78. data/lib/1.9/gherkin_lexer_lv.so +0 -0
  79. data/lib/1.9/gherkin_lexer_nl.so +0 -0
  80. data/lib/1.9/gherkin_lexer_no.so +0 -0
  81. data/lib/1.9/gherkin_lexer_pl.so +0 -0
  82. data/lib/1.9/gherkin_lexer_pt.so +0 -0
  83. data/lib/1.9/gherkin_lexer_ro.so +0 -0
  84. data/lib/1.9/gherkin_lexer_ru.so +0 -0
  85. data/lib/1.9/gherkin_lexer_sk.so +0 -0
  86. data/lib/1.9/gherkin_lexer_sr_cyrl.so +0 -0
  87. data/lib/1.9/gherkin_lexer_sr_latn.so +0 -0
  88. data/lib/1.9/gherkin_lexer_sv.so +0 -0
  89. data/lib/1.9/gherkin_lexer_tr.so +0 -0
  90. data/lib/1.9/gherkin_lexer_uk.so +0 -0
  91. data/lib/1.9/gherkin_lexer_uz.so +0 -0
  92. data/lib/1.9/gherkin_lexer_vi.so +0 -0
  93. data/lib/1.9/gherkin_lexer_zh_cn.so +0 -0
  94. data/lib/1.9/gherkin_lexer_zh_tw.so +0 -0
  95. data/tasks/gems.rake +1 -1
  96. data/tasks/ikvm.rake +14 -2
  97. metadata +35 -23
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [2.6.7](https://github.com/cucumber/gherkin/compare/v2.6.6...v2.6.7)
2
+
3
+ ### Bugfixes
4
+
5
+ * Fix bad packaging of NuSpec package. ([#148](https://github.com/cucumber/gherkin/issues/148) Aslak Hellesøy)
6
+
1
7
  ## [2.6.6](https://github.com/cucumber/gherkin/compare/v2.6.5...v2.6.6)
2
8
 
3
9
  ### New Features
data/README.md CHANGED
@@ -7,12 +7,12 @@ 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 1.8.6-1.9.3 (MRI, JRuby, REE, Rubinius)
11
- * Pure Java (jar file)
12
- * JavaScript (NPM package. Tested with V8/node.js/Chrome, but might work on other JavaScript engines)
13
- * .NET (dll file)
10
+ * [Ruby](https://rubygems.org/gems/gherkin) 1.8.6-1.9.3 (MRI, JRuby, REE, Rubinius)
11
+ * [Pure Java](http://search.maven.org/#search%7Cga%7C1%7Cgherkin) (jar file)
12
+ * [JavaScript](http://search.npmjs.org/#/gherkin) (Tested with V8/node.js/Chrome, but might work on other JavaScript engines)
13
+ * [.NET](http://nuget.org/List/Packages/gherkin) (dll file)
14
14
 
15
- ## Installation.pmlcolor"
15
+ ## Installation
16
16
 
17
17
  ### Ruby/JRuby
18
18
 
@@ -54,14 +54,14 @@ 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.6</version>
57
+ <version>2.6.7</version>
58
58
  </dependency>
59
59
 
60
60
  You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
61
61
 
62
62
  ### .NET
63
63
 
64
- Get the dll from https://github.com/cucumber/gherkin/downloads
64
+ Get the dll from [NuGet](http://nuget.org/List/Packages/gherkin)
65
65
 
66
66
  ## API Docs
67
67
 
@@ -162,7 +162,7 @@ TODO: Make all specs pass with js lexer - replace 'c(listener)' with 'js(listene
162
162
 
163
163
  You must install Mono from source, or use a release of Mono after November 18 2011.
164
164
 
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:
165
+ 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:
166
166
 
167
167
  # In case we need to update
168
168
  mono /usr/local/nuget/NuGet.exe Update -self
@@ -174,6 +174,8 @@ Now you can build the .NET dll with:
174
174
 
175
175
  rake ikvm
176
176
 
177
+ This should put the dll into `release/nuspec/lib/gherkin.dll`
178
+
177
179
  ### MinGW Rubies (for Windows gems)
178
180
 
179
181
  In order to build Windows binaries (so we can release Windows gems from OS X/Linux) we first need to install MinGW.
@@ -0,0 +1,19 @@
1
+ require 'gherkin/parser/parser'
2
+ require 'gherkin/formatter/json_formatter'
3
+ require 'stringio'
4
+ require 'json'
5
+
6
+ # This example reads a couple of features and outputs them as JSON.
7
+
8
+ io = StringIO.new
9
+ formatter = Gherkin::Formatter::JSONFormatter.new(io)
10
+ parser = Gherkin::Parser::Parser.new(formatter)
11
+
12
+ sources = ["features/native_lexer.feature", "features/escaped_pipes.feature"]
13
+ sources.each do |s|
14
+ path = File.expand_path(File.dirname(__FILE__) + '/../' + s)
15
+ parser.parse(IO.read(path), path, 0)
16
+ end
17
+
18
+ formatter.close
19
+ puts JSON.pretty_generate(JSON.parse(io.string))
@@ -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"
6
+ s.version = "2.6.7"
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}"
@@ -50,6 +50,7 @@ Gem::Specification.new do |s|
50
50
  s.add_development_dependency('rake', '>= 0.9.2')
51
51
  s.add_development_dependency('bundler', '>= 1.0.21')
52
52
  s.add_development_dependency('rspec', '>= 2.7.0')
53
+ s.add_development_dependency('rubyzip', '>= 0.9.4')
53
54
 
54
55
  unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
55
56
  s.add_development_dependency('therubyracer', '>= 0.9.9') if ENV['GHERKIN_JS']
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@ namespace :gems do
5
5
  exit(1)
6
6
  end
7
7
  # rvm and mingw ruby versions have to match to avoid errors
8
- sh "rvm 1.8.7-p352@cucumber rake cross compile RUBY_CC_VERSION=1.8.7"
8
+ sh "rvm 1.8.7-p352@cucumber do rake cross compile RUBY_CC_VERSION=1.8.7"
9
9
  sh "rake cross compile RUBY_CC_VERSION=1.9.3"
10
10
  # This will copy the .so files to the proper place
11
11
  sh "rake -t cross compile RUBY_CC_VERSION=1.8.7:1.9.3"
@@ -1,7 +1,11 @@
1
1
  # encoding: utf-8
2
+
2
3
  namespace :ikvm do
3
4
  IKVM_VERSION = '0.46.0.1'
4
- IKVM_BIN_DIR = "ikvm/ikvm-#{IKVM_VERSION}/bin"
5
+ IKVM_DIR = "ikvm/ikvm-#{IKVM_VERSION}"
6
+ IKVM_ZIP = "ikvm/ikvmbin-#{IKVM_VERSION}.zip"
7
+ CLOBBER.include(IKVM_DIR, IKVM_ZIP)
8
+ IKVM_BIN_DIR = "#{IKVM_DIR}/bin"
5
9
  IKVMC_EXE = "#{IKVM_BIN_DIR}/ikvmc.exe"
6
10
  GHERKIN_EXE = "release/gherkin.exe"
7
11
  GHERKIN_PKG_DLL = "release/nuspec/lib/gherkin.dll"
@@ -49,6 +53,14 @@ namespace :ikvm do
49
53
  pkg_dir = File.dirname(GHERKIN_EXE)
50
54
  mkdir_p File.dirname(pkg_dir) unless File.directory?(pkg_dir)
51
55
  nuget("Pack #{GHERKIN_NUSPEC} -Version #{GHERKIN_VERSION} -OutputDirectory #{pkg_dir}")
56
+ # Now, fix the path inside the file - see https://github.com/cucumber/gherkin/issues/148
57
+ require 'zip/zipfilesystem'
58
+ Zip::ZipFile.open(GHERKIN_NUPKG) do |zipfile|
59
+ begin
60
+ zipfile.file.rename 'lib%2Fgherkin.dll', 'lib/gherkin.dll'
61
+ rescue => looks_like_nuget_has_been_fixed
62
+ end
63
+ end
52
64
  end
53
65
 
54
66
  file GHERKIN_NUSPEC do
@@ -100,7 +112,7 @@ EOF
100
112
  end
101
113
 
102
114
  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")
115
+ sh("wget http://downloads.sourceforge.net/project/ikvm/ikvm/#{IKVM_VERSION}/ikvmbin-#{IKVM_VERSION}.zip -O #{IKVM_ZIP}")
104
116
  Dir.chdir('ikvm') do
105
117
  sh("unzip ikvmbin-#{IKVM_VERSION}.zip")
106
118
  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.6.6
4
+ version: 2.6.7
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-19 00:00:00.000000000 Z
14
+ date: 2011-11-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
18
- requirement: &2152866180 !ruby/object:Gem::Requirement
18
+ requirement: &2160442740 !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: *2152866180
26
+ version_requirements: *2160442740
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2153010900 !ruby/object:Gem::Requirement
29
+ requirement: &2160442000 !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: *2153010900
37
+ version_requirements: *2160442000
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2153010440 !ruby/object:Gem::Requirement
40
+ requirement: &2160441060 !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: *2153010440
48
+ version_requirements: *2160441060
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2153009920 !ruby/object:Gem::Requirement
51
+ requirement: &2160440520 !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: *2153009920
59
+ version_requirements: *2160440520
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2153009400 !ruby/object:Gem::Requirement
62
+ requirement: &2160439780 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,21 @@ dependencies:
67
67
  version: 2.7.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2153009400
70
+ version_requirements: *2160439780
71
+ - !ruby/object:Gem::Dependency
72
+ name: rubyzip
73
+ requirement: &2160438700 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 0.9.4
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *2160438700
71
82
  - !ruby/object:Gem::Dependency
72
83
  name: therubyracer
73
- requirement: &2153008840 !ruby/object:Gem::Requirement
84
+ requirement: &2160437640 !ruby/object:Gem::Requirement
74
85
  none: false
75
86
  requirements:
76
87
  - - ! '>='
@@ -78,10 +89,10 @@ dependencies:
78
89
  version: 0.9.9
79
90
  type: :development
80
91
  prerelease: false
81
- version_requirements: *2153008840
92
+ version_requirements: *2160437640
82
93
  - !ruby/object:Gem::Dependency
83
94
  name: yard
84
- requirement: &2153008380 !ruby/object:Gem::Requirement
95
+ requirement: &2160457860 !ruby/object:Gem::Requirement
85
96
  none: false
86
97
  requirements:
87
98
  - - ! '>='
@@ -89,10 +100,10 @@ dependencies:
89
100
  version: 0.7.3
90
101
  type: :development
91
102
  prerelease: false
92
- version_requirements: *2153008380
103
+ version_requirements: *2160457860
93
104
  - !ruby/object:Gem::Dependency
94
105
  name: rdiscount
95
- requirement: &2153007920 !ruby/object:Gem::Requirement
106
+ requirement: &2160457180 !ruby/object:Gem::Requirement
96
107
  none: false
97
108
  requirements:
98
109
  - - ! '>='
@@ -100,10 +111,10 @@ dependencies:
100
111
  version: 1.6.8
101
112
  type: :development
102
113
  prerelease: false
103
- version_requirements: *2153007920
114
+ version_requirements: *2160457180
104
115
  - !ruby/object:Gem::Dependency
105
116
  name: term-ansicolor
106
- requirement: &2153007460 !ruby/object:Gem::Requirement
117
+ requirement: &2160456460 !ruby/object:Gem::Requirement
107
118
  none: false
108
119
  requirements:
109
120
  - - ! '>='
@@ -111,10 +122,10 @@ dependencies:
111
122
  version: 1.0.6
112
123
  type: :development
113
124
  prerelease: false
114
- version_requirements: *2153007460
125
+ version_requirements: *2160456460
115
126
  - !ruby/object:Gem::Dependency
116
127
  name: builder
117
- requirement: &2153007000 !ruby/object:Gem::Requirement
128
+ requirement: &2160455740 !ruby/object:Gem::Requirement
118
129
  none: false
119
130
  requirements:
120
131
  - - ! '>='
@@ -122,7 +133,7 @@ dependencies:
122
133
  version: 2.1.2
123
134
  type: :development
124
135
  prerelease: false
125
- version_requirements: *2153007000
136
+ version_requirements: *2160455740
126
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
127
138
  email: cukes@googlegroups.com
128
139
  executables: []
@@ -143,6 +154,7 @@ files:
143
154
  - Rakefile
144
155
  - build_native_gems.sh
145
156
  - cucumber.yml
157
+ - examples/parse_and_output_json.rb
146
158
  - features/escaped_pipes.feature
147
159
  - features/feature_parser.feature
148
160
  - features/json_formatter.feature
@@ -376,7 +388,7 @@ rubyforge_project:
376
388
  rubygems_version: 1.8.10
377
389
  signing_key:
378
390
  specification_version: 3
379
- summary: gherkin-2.6.6
391
+ summary: gherkin-2.6.7
380
392
  test_files:
381
393
  - features/escaped_pipes.feature
382
394
  - features/feature_parser.feature