Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (69 sloc) 2.889 kB
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
1 # -*- encoding: utf-8 -*-
2
3 Gem::Specification.new do |s|
4 s.name = "gherkin"
4a131f1 @aslakhellesoy Release 2.8.0
aslakhellesoy authored
5 # If the major version is bumped, verify that the change is ok:
6 #
d8c23a2 @aslakhellesoy Release 2.10.0
aslakhellesoy authored
7 # * Comment out the cucumber dependency below
8 # * Uncomment the cucumber location in Gemfile
4a131f1 @aslakhellesoy Release 2.8.0
aslakhellesoy authored
9 # * Bump cucumber's gherkin dependency to the new version
10 # * bundle update
11 # * bundle exec rake
12 #
13 # Repeat these step for cucumber (swap `cucumber` with `gherkin`).
14 #
15 # When both are building OK, do a `bundle exec rake install` in both cucumber and gherkin projects, revert the changes in the first 2 steps
d8c23a2 @aslakhellesoy Release 2.10.0
aslakhellesoy authored
16 # and release both projects. Do this for both ruby 1.8.7, ruby 1.9.3 and jruby.
4a131f1 @aslakhellesoy Release 2.8.0
aslakhellesoy authored
17 #
f54867d @aslakhellesoy Release 2.11.2
aslakhellesoy authored
18 s.version = "2.11.2"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
19 s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
63b8588 @aslakhellesoy Fix bad description
aslakhellesoy authored
20 s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
4a9cc23 @aslakhellesoy Release 2.3.8
aslakhellesoy authored
21 s.summary = "#{s.name}-#{s.version}"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
22 s.email = "cukes@googlegroups.com"
08b384d @aslakhellesoy Update links
aslakhellesoy authored
23 s.homepage = "http://github.com/cucumber/gherkin"
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
24
25 s.files = `git ls-files`.split("\n")
26 s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
27 s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
28 s.rdoc_options = ["--charset=UTF-8"]
29 s.require_path = "lib"
30
31 s.files -= Dir['ikvm/**/*']
32 s.files -= Dir['java/**/*']
93b9e5b @aslakhellesoy Move js lexers
aslakhellesoy authored
33 s.files -= Dir['js/**/*']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
34 s.files -= Dir['ext/**/*']
35 s.files -= Dir['lib/gherkin.jar']
36 s.files -= Dir['lib/**/*.dll']
37 s.files -= Dir['lib/**/*.bundle']
38 s.files -= Dir['lib/**/*.so']
39
40 if ENV['GEM_PLATFORM']
41 puts "GEM_PLATFORM:#{ENV['GEM_PLATFORM']}"
42 end
43 s.platform = ENV['GEM_PLATFORM'] if ENV['GEM_PLATFORM']
44 case s.platform.to_s
45 when /java/
d803b75 @aslakhellesoy A couple of JRuby fixes
aslakhellesoy authored
46 s.files += Dir['lib/*.jar']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
47 when /mswin|mingw32/
48 s.files += Dir['lib/*/*.so']
49 when /dotnet/
50 s.files += Dir['lib/*.dll']
51 else # MRI or Rubinius
52 s.files += Dir['lib/gherkin/rb_lexer/*.rb']
53 s.files += Dir['ext/**/*.c']
54 s.extensions = Dir['ext/**/extconf.rb']
ac817b3 @aslakhellesoy Various tweaks to make gherkin build on Lion
aslakhellesoy authored
55 s.add_development_dependency('rake-compiler', '>= 0.8.0')
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
56 end
ac095d6 @duelinmarkers Exclude .gitignore files from packaged gem so users committing instal…
duelinmarkers authored
57 s.files -= Dir['**/.gitignore']
4de0aff @aslakhellesoy Add a gemspec
aslakhellesoy authored
58
ed2ff1f @aslakhellesoy Release 2.5.2
aslakhellesoy authored
59 s.add_runtime_dependency('json', '>= 1.4.6')
e1d7d86 @aslakhellesoy JSON parser can both take a String and a preparsed Hash. JSONFormatte…
aslakhellesoy authored
60
dbe4473 @aslakhellesoy Release 2.11.0
aslakhellesoy authored
61 s.add_development_dependency('cucumber', '>= 1.2.1')
1a2f301 @aslakhellesoy Release 0.4.1
aslakhellesoy authored
62 s.add_development_dependency('rake', '>= 0.9.2')
f54867d @aslakhellesoy Release 2.11.2
aslakhellesoy authored
63 s.add_development_dependency('bundler', '>= 1.1.5')
64 s.add_development_dependency('rspec', '~> 2.11.0')
65 s.add_development_dependency('rubyzip', '>= 0.9.9')
6e3b69b @aslakhellesoy Build script hacking
aslakhellesoy authored
66
67 unless ENV['RUBY_CC_VERSION'] || defined?(JRUBY_VERSION)
f54867d @aslakhellesoy Release 2.11.2
aslakhellesoy authored
68 s.add_development_dependency('therubyracer', '>= 0.10.2') if ENV['GHERKIN_JS']
35b87be @aslakhellesoy Build tweaks
aslakhellesoy authored
69 # For Documentation:
f54867d @aslakhellesoy Release 2.11.2
aslakhellesoy authored
70 s.add_development_dependency('yard', '>= 0.8.2.1')
1a2f301 @aslakhellesoy Release 0.4.1
aslakhellesoy authored
71 s.add_development_dependency('rdiscount', '>= 1.6.8')
35b87be @aslakhellesoy Build tweaks
aslakhellesoy authored
72 end
e1d7d86 @aslakhellesoy JSON parser can both take a String and a preparsed Hash. JSONFormatte…
aslakhellesoy authored
73
2d32d25 @aslakhellesoy Hacks for RVM/Bundler/Rake-Compiler
aslakhellesoy authored
74 # Only needed by Cucumber. Remove when Cucumber no longer needs those.
f54867d @aslakhellesoy Release 2.11.2
aslakhellesoy authored
75 s.add_development_dependency('term-ansicolor', '>= 1.0.7')
cb15642 @aslakhellesoy Release 2.3.10. Closes #105.
aslakhellesoy authored
76 s.add_development_dependency('builder', '>= 2.1.2')
82f6559 @rslifka Relaxed JSON gem requirement to ~> 1.4.
rslifka authored
77 end
Something went wrong with that request. Please try again.