gherkin 1.0.21-java → 1.0.22-java

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.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.22 (2010-04-28)
2
+
3
+ === Bugfixes
4
+ * Make prebuilt binaries work on both Ruby 1.8.x and 1.9.x on Windows (#54 Luis Lavena, Aslak Hellesøy)
5
+
1
6
  == 1.0.21 (2010-04-27)
2
7
 
3
8
  === Bugfixes
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ begin
22
22
  gem.add_development_dependency "rspec", ">= 1.3.0"
23
23
  gem.add_development_dependency "cucumber", ">= 0.7.0.beta.1"
24
24
  gem.add_development_dependency "rake-compiler", ">= 0.7.0" unless defined?(JRUBY_VERSION)
25
-
25
+
26
26
  gem.files -= FileList['ikvm/**/*']
27
27
  gem.files -= FileList['java/**/*']
28
28
  case ENV['PLATFORM']
@@ -32,7 +32,7 @@ begin
32
32
  gem.extensions = []
33
33
  when 'i386-mswin32', 'i386-mingw32'
34
34
  gem.platform = ENV['PLATFORM']
35
- gem.files += FileList['lib/*.so']
35
+ gem.files += FileList['lib/*/*.so']
36
36
  gem.extensions = []
37
37
  else
38
38
  gem.files += FileList['lib/gherkin/rb_lexer/*.rb']
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 1
3
3
  :minor: 0
4
4
  :build:
5
- :patch: 21
5
+ :patch: 22
@@ -1,8 +1,17 @@
1
+ require 'rbconfig'
2
+
1
3
  module Gherkin
2
4
  module CLexer
3
5
  def self.[](i18n_underscored_iso_code)
4
- require "gherkin_lexer_#{i18n_underscored_iso_code}"
5
- const_get(i18n_underscored_iso_code.capitalize)
6
+ begin
7
+ prefix = Config::CONFIG['arch'] =~ /mswin|mingw/ ? "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}/" : ''
8
+ lib = "#{prefix}gherkin_lexer_#{i18n_underscored_iso_code}"
9
+ require lib
10
+ const_get(i18n_underscored_iso_code.capitalize)
11
+ rescue LoadError => e
12
+ e.message << %{\nCouldn't load #{lib}\nThe $LOAD_PATH was:\n#{$LOAD_PATH.join("\n")}}
13
+ raise e
14
+ end
6
15
  end
7
16
  end
8
17
  end
data/lib/gherkin.jar CHANGED
Binary file
data/tasks/gems.rake CHANGED
@@ -9,7 +9,12 @@ namespace :gems do
9
9
  [:mswin32, :mingw32].each do |win_compiler|
10
10
  desc "Build MRI/C precompiled #{win_compiler} gem"
11
11
  task win_compiler do
12
- sh "rake cross compile RUBY_CC_VERSION=1.8.6"
12
+ # Bootstrap with:
13
+ #
14
+ # rake-compiler cross-ruby VERSION=1.9.1-p243
15
+ # rake-compiler cross-ruby VERSION=1.8.6-p114
16
+ #
17
+ sh "rake cross compile RUBY_CC_VERSION=1.8.6:1.9.1"
13
18
  sh "rake gemspec build PLATFORM=i386-#{win_compiler}"
14
19
  mv "pkg/gherkin-#{GHERKIN_VERSION}-x86-#{win_compiler}.gem", 'release'
15
20
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 21
9
- version: 1.0.21
8
+ - 22
9
+ version: 1.0.22
10
10
  platform: java
11
11
  authors:
12
12
  - Mike Sassak
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-27 00:00:00 -05:00
19
+ date: 2010-04-28 00:00:00 -05:00
20
20
  default_executable: gherkin
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency