forked from cucumber-attic/gherkin2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9237ded
commit 4de0aff
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ pkg | |
ext | ||
tmp | ||
release | ||
gherkin.gemspec | ||
.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- encoding: utf-8 -*- | ||
gherkin_dir = Dir.pwd =~ /gherkin\/tmp/ ? File.expand_path("../../../..", Dir.pwd) : File.expand_path("..", __FILE__) | ||
$LOAD_PATH.unshift File.join(gherkin_dir, 'lib') | ||
require "gherkin/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "gherkin" | ||
s.version = Gherkin::VERSION | ||
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"] | ||
s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler." | ||
s.summary = "gherkin-#{Gherkin::VERSION}" | ||
s.email = "cukes@googlegroups.com" | ||
s.homepage = "http://github.com/aslakhellesoy/gherkin" | ||
|
||
s.rubygems_version = "1.3.7" | ||
s.default_executable = "gherkin" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.extra_rdoc_files = ["LICENSE", "README.rdoc", "History.txt"] | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_path = "lib" | ||
|
||
s.files -= Dir['ikvm/**/*'] | ||
s.files -= Dir['java/**/*'] | ||
s.files -= Dir['ext/**/*'] | ||
s.files -= Dir['lib/gherkin.jar'] | ||
s.files -= Dir['lib/**/*.dll'] | ||
s.files -= Dir['lib/**/*.bundle'] | ||
s.files -= Dir['lib/**/*.so'] | ||
|
||
if ENV['GEM_PLATFORM'] | ||
puts "GEM_PLATFORM:#{ENV['GEM_PLATFORM']}" | ||
puts "PLATFORM:#{PLATFORM}" | ||
end | ||
s.platform = ENV['GEM_PLATFORM'] if ENV['GEM_PLATFORM'] | ||
case s.platform.to_s | ||
when /java/ | ||
s.files += ['lib/gherkin.jar'] | ||
when /mswin|mingw32/ | ||
s.files += Dir['lib/*/*.so'] | ||
when /dotnet/ | ||
s.files += Dir['lib/*.dll'] | ||
else # MRI or Rubinius | ||
s.files += Dir['lib/gherkin/rb_lexer/*.rb'] | ||
s.files += Dir['ext/**/*.c'] | ||
s.extensions = Dir['ext/**/extconf.rb'] | ||
s.add_development_dependency('rake-compiler', '~> 0.7.1') | ||
end | ||
|
||
s.add_dependency('trollop', '~> 1.16.2') | ||
s.add_development_dependency('rake', '~> 0.8.7') | ||
s.add_development_dependency('awesome_print', '~> 0.2.1') | ||
s.add_development_dependency('rspec', '~> 2.0.0.beta.20') | ||
s.add_development_dependency('cucumber', '~> 0.9.0') unless File.directory?(File.join(gherkin_dir, '../cucumber')) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters