gherkin 2.6.5 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ rvm:
2
2
  - 1.9.3
3
3
  - 1.9.2
4
4
  - 1.8.7
5
+ - jruby
5
6
  # whitelist
6
7
  branches:
7
8
  only:
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.5</version>
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 and IronRuby
161
+ ### .NET dll
162
162
 
163
- You must install Mono and IKVM to build the pure .NET dll and the IronRuby gem:
163
+ You must install Mono from source, or use a release of Mono after November 18 2011.
164
164
 
165
- * Install Mono from http://www.mono-project.com/ and make sure it's on your $PATH
166
- * Download IKVM from http://www.ikvm.net/ and extract it to /usr/local/ikvm so that you have a /usr/local/ikvm/bin/ikvmc.exe
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.
@@ -4,5 +4,4 @@ mkdir release
4
4
  GEM_PLATFORM=java gem build gherkin.gemspec
5
5
  GEM_PLATFORM=x86-mswin32 gem build gherkin.gemspec
6
6
  GEM_PLATFORM=x86-mingw32 gem build gherkin.gemspec
7
- GEM_PLATFORM=universal-dotnet gem build gherkin.gemspec
8
7
  mv *.gem release
@@ -14,7 +14,6 @@ end
14
14
  require 'gherkin'
15
15
  require 'gherkin/sexp_recorder'
16
16
  require 'gherkin/output_stream_string_io'
17
- require 'gherkin/java_libs'
18
17
 
19
18
  module TransformHelpers
20
19
  def tr_line_number(step_arg)
@@ -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.5"
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}"
@@ -1,7 +1,2 @@
1
1
  require 'gherkin/lexer/i18n_lexer'
2
2
  require 'gherkin/parser/parser'
3
-
4
- if defined?(JRUBY_VERSION)
5
- require 'json-simple-1.1.jar'
6
- require 'base64-2.3.8.jar'
7
- end
@@ -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'
@@ -13,20 +13,9 @@ namespace :gems do
13
13
 
14
14
  desc 'Prepare JRuby binares'
15
15
  task :jruby => [:jar] do
16
- begin
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
@@ -1,36 +1,25 @@
1
- require File.dirname(__FILE__) + '/../spec/gherkin/java_libs'
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.rdoc"
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("/usr/local/ikvm/bin/ikvmc.exe #{args}")
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 references
43
- JAVA_LIBS.keys.map{|name| "-reference:release/#{name}.dll"}.join(' ')
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
- task :dependent_dlls do
47
- mkdir_p 'release' unless File.directory?('release')
48
- JAVA_LIBS.each do |name, jar|
49
- ikvmc("-target:library #{jar} -out:release/#{name}.dll")
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
- desc 'Make a .NET .exe'
54
- task :exe => ['lib/gherkin.jar', :dependent_dlls] do
55
- ikvmc("-target:exe lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.exe #{references}")
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
- desc 'Make a .NET .dll'
59
- task :dll => ['lib/gherkin.jar', :dependent_dlls] do
60
- mkdir_p 'release' unless File.directory?('release')
61
- ikvmc("-target:library lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.dll #{references}")
62
- cp "release/gherkin-#{GHERKIN_VERSION}.dll", 'lib/gherkin.dll'
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
- desc 'Copy the IKVM .dll files over to the pkg dir'
66
- task :copy_ikvm_dlls do
67
- Dir['/usr/local/ikvm/bin/{IKVM.OpenJDK.Core,IKVM.OpenJDK.Text,IKVM.OpenJDK.Security,IKVM.Runtime}.dll'].each do |dll|
68
- mkdir_p 'release' unless File.directory?('release')
69
- cp dll, 'release'
70
- cp dll, 'lib'
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:copy_ikvm_dlls', 'ikvm:exe', 'ikvm:dll'] do
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
 
@@ -1,6 +1,6 @@
1
1
  namespace :release do
2
2
  desc 'Upload all packages and tag git'
3
- task :ALL => ['gems:sanity', :ikvm, :mvn_deploy_jar, :mvn_deploy_site, :push_native_gems, :push_npm_package, :release, :push_yard, :symlink_docs, :post_release]
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.5
4
+ version: 2.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-11-15 00:00:00.000000000 Z
14
+ date: 2011-11-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake-compiler
18
- requirement: &2156711500 !ruby/object:Gem::Requirement
18
+ requirement: &2152889940 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.7.9
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *2156711500
26
+ version_requirements: *2152889940
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &2156751980 !ruby/object:Gem::Requirement
29
+ requirement: &2152885740 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.4.6
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2156751980
37
+ version_requirements: *2152885740
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: cucumber
40
- requirement: &2156751260 !ruby/object:Gem::Requirement
40
+ requirement: &2152885280 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 1.1.2
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2156751260
48
+ version_requirements: *2152885280
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &2156750660 !ruby/object:Gem::Requirement
51
+ requirement: &2152884780 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 0.9.2
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2156750660
59
+ version_requirements: *2152884780
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: bundler
62
- requirement: &2156750200 !ruby/object:Gem::Requirement
62
+ requirement: &2152904240 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.0.21
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2156750200
70
+ version_requirements: *2152904240
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
- requirement: &2156749740 !ruby/object:Gem::Requirement
73
+ requirement: &2152903540 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 2.7.0
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2156749740
81
+ version_requirements: *2152903540
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: therubyracer
84
- requirement: &2156749120 !ruby/object:Gem::Requirement
84
+ requirement: &2152902620 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.9.9
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2156749120
92
+ version_requirements: *2152902620
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: yard
95
- requirement: &2156748660 !ruby/object:Gem::Requirement
95
+ requirement: &2152902160 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.7.3
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2156748660
103
+ version_requirements: *2152902160
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdiscount
106
- requirement: &2156748200 !ruby/object:Gem::Requirement
106
+ requirement: &2152901680 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.6.8
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2156748200
114
+ version_requirements: *2152901680
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
- requirement: &2156747740 !ruby/object:Gem::Requirement
117
+ requirement: &2152901000 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.6
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2156747740
125
+ version_requirements: *2152901000
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: builder
128
- requirement: &2156747280 !ruby/object:Gem::Requirement
128
+ requirement: &2152900340 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,7 +133,7 @@ dependencies:
133
133
  version: 2.1.2
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156747280
136
+ version_requirements: *2152900340
137
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
138
  email: cukes@googlegroups.com
139
139
  executables: []
@@ -286,7 +286,6 @@ files:
286
286
  - spec/gherkin/formatter/tag_count_formatter_spec.rb
287
287
  - spec/gherkin/i18n_spec.rb
288
288
  - spec/gherkin/java_lexer_spec.rb
289
- - spec/gherkin/java_libs.rb
290
289
  - spec/gherkin/js_lexer_spec.rb
291
290
  - spec/gherkin/json_parser_spec.rb
292
291
  - spec/gherkin/lexer/i18n_lexer_spec.rb
@@ -478,7 +477,7 @@ rubyforge_project:
478
477
  rubygems_version: 1.8.10
479
478
  signing_key:
480
479
  specification_version: 3
481
- summary: gherkin-2.6.5
480
+ summary: gherkin-2.6.6
482
481
  test_files:
483
482
  - features/escaped_pipes.feature
484
483
  - features/feature_parser.feature
@@ -525,7 +524,6 @@ test_files:
525
524
  - spec/gherkin/formatter/tag_count_formatter_spec.rb
526
525
  - spec/gherkin/i18n_spec.rb
527
526
  - spec/gherkin/java_lexer_spec.rb
528
- - spec/gherkin/java_libs.rb
529
527
  - spec/gherkin/js_lexer_spec.rb
530
528
  - spec/gherkin/json_parser_spec.rb
531
529
  - spec/gherkin/lexer/i18n_lexer_spec.rb
@@ -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