gherkin 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +2 -2
- data/VERSION.yml +1 -1
- data/lib/gherkin/c_lexer.rb +11 -2
- data/tasks/gems.rake +6 -1
- metadata +3 -3
data/History.txt
CHANGED
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
|
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
data/lib/gherkin/c_lexer.rb
CHANGED
@@ -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
|
-
|
5
|
-
|
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/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
|
-
|
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
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 22
|
9
|
+
version: 1.0.22
|
10
10
|
platform: ruby
|
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-
|
19
|
+
date: 2010-04-28 00:00:00 -05:00
|
20
20
|
default_executable: gherkin
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|