Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 66 lines (57 sloc) 2.541 kB
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
1 # -*- encoding: utf-8 -*-
2
3 Gem::Specification.new do |s|
4 s.name = "gherkin"
ddb40ee @aslakhellesoy Release 2.6.0. Closes #131. Closes #140
aslakhellesoy authored
5 # If bumping the major version here, comment out the cucumber dependency below and uncomment in the Gemfile to build against a local cucumber.
025decb @aslakhellesoy Release 2.8.0
aslakhellesoy authored
6 s.version = "2.8.0"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
7 s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
63b8588 @aslakhellesoy Fix bad description
aslakhellesoy authored
8 s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
4a9cc23 @aslakhellesoy Release 2.3.8
aslakhellesoy authored
9 s.summary = "#{s.name}-#{s.version}"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
10 s.email = "cukes@googlegroups.com"
08b384d @aslakhellesoy Update links
aslakhellesoy authored
11 s.homepage = "http://github.com/cucumber/gherkin"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
12
13 s.files = `git ls-files`.split("\n")
14 s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
15 s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16 s.rdoc_options = ["--charset=UTF-8"]
17 s.require_path = "lib"
18
19 s.files -= Dir['ikvm/**/*']
20 s.files -= Dir['java/**/*']
93b9e5b @aslakhellesoy Move js lexers
aslakhellesoy authored
21 s.files -= Dir['js/**/*']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
22 s.files -= Dir['ext/**/*']
23 s.files -= Dir['lib/gherkin.jar']
24 s.files -= Dir['lib/**/*.dll']
25 s.files -= Dir['lib/**/*.bundle']
26 s.files -= Dir['lib/**/*.so']
27
28 if ENV['GEM_PLATFORM']
29 puts "GEM_PLATFORM:#{ENV['GEM_PLATFORM']}"
30 end
31 s.platform = ENV['GEM_PLATFORM'] if ENV['GEM_PLATFORM']
32 case s.platform.to_s
33 when /java/
d803b75 @aslakhellesoy A couple of JRuby fixes
aslakhellesoy authored
34 s.files += Dir['lib/*.jar']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
35 when /mswin|mingw32/
36 s.files += Dir['lib/*/*.so']
37 when /dotnet/
38 s.files += Dir['lib/*.dll']
39 else # MRI or Rubinius
40 s.files += Dir['lib/gherkin/rb_lexer/*.rb']
41 s.files += Dir['ext/**/*.c']
42 s.extensions = Dir['ext/**/extconf.rb']
9d0cd89 @aslakhellesoy Release 2.4.11. I *hate* the Ruby ecosystem. RVM, RubyGems - a mess.
aslakhellesoy authored
43 s.add_development_dependency('rake-compiler', '>= 0.7.9')
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
44 end
ac095d6 @duelinmarkers Exclude .gitignore files from packaged gem so users committing instal…
duelinmarkers authored
45 s.files -= Dir['**/.gitignore']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
46
ed2ff1f @aslakhellesoy Release 2.5.2
aslakhellesoy authored
47 s.add_runtime_dependency('json', '>= 1.4.6')
e1d7d86 @aslakhellesoy JSON parser can both take a String and a preparsed Hash. JSONFormatte…
aslakhellesoy authored
48
9766ebc @aslakhellesoy Release 2.7.0
aslakhellesoy authored
49 s.add_development_dependency('cucumber', '>= 1.1.4')
1a2f301 @aslakhellesoy Release 0.4.1
aslakhellesoy authored
50 s.add_development_dependency('rake', '>= 0.9.2')
025decb @aslakhellesoy Release 2.8.0
aslakhellesoy authored
51 s.add_development_dependency('bundler', '>= 1.0.22')
bea0fb9 @aslakhellesoy Added a JSONPrettyFormatter
aslakhellesoy authored
52 s.add_development_dependency('rspec', '~> 2.7.0') # No 2.8.0 until this is fixed: https://github.com/rspec/rspec-expectations/issues/112
fe2aba9 @aslakhellesoy Upgrade gems, release 2.6.9
aslakhellesoy authored
53 s.add_development_dependency('rubyzip', '>= 0.9.5')
6e3b69b @aslakhellesoy Build script hacking
aslakhellesoy authored
54
55 unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
79634ee @aslakhellesoy Notify on #cucumber
aslakhellesoy authored
56 s.add_development_dependency('therubyracer', '>= 0.9.9') if ENV['GHERKIN_JS']
35b87be @aslakhellesoy Build tweaks
aslakhellesoy authored
57 # For Documentation:
0bfdbbd @aslakhellesoy Release 2.7.7
aslakhellesoy authored
58 s.add_development_dependency('yard', '>= 0.7.5')
1a2f301 @aslakhellesoy Release 0.4.1
aslakhellesoy authored
59 s.add_development_dependency('rdiscount', '>= 1.6.8')
35b87be @aslakhellesoy Build tweaks
aslakhellesoy authored
60 end
e1d7d86 @aslakhellesoy JSON parser can both take a String and a preparsed Hash. JSONFormatte…
aslakhellesoy authored
61
2d32d25 @aslakhellesoy Hacks for RVM/Bundler/Rake-Compiler
aslakhellesoy authored
62 # Only needed by Cucumber. Remove when Cucumber no longer needs those.
7b7b6be @aslakhellesoy rvm changed again
aslakhellesoy authored
63 s.add_development_dependency('term-ansicolor', '>= 1.0.6')
cb15642 @aslakhellesoy Release 2.3.10. Closes #105.
aslakhellesoy authored
64 s.add_development_dependency('builder', '>= 2.1.2')
82f6559 @rslifka Relaxed JSON gem requirement to ~> 1.4.
rslifka authored
65 end
Something went wrong with that request. Please try again.