Sha256: 314edc1a2074d53a423728c3757d8e4548dee378c761ce21f7916b5298286ef6

Contents?: true

Size: 1.75 KB

Versions: 4

Compression:

Stored size: 1.75 KB

Contents

# encoding: utf-8
require 'rbconfig'
require 'rubygems'
require 'rake'
require 'rake/clean'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "gherkin"
    gem.summary = %Q{Fast Gherkin lexer}
    gem.description = %Q{A fast Gherkin lexer in Ragel}
    gem.email = "cukes@googlegroups.com"
    gem.homepage = "http://github.com/aslakhellesoy/gherkin"
    gem.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
    gem.default_executable = "gherkin"
    gem.executables = ["gherkin", "gherkin-purdy"]
    gem.add_development_dependency "rspec", "1.2.9"
    gem.add_development_dependency "cucumber", "0.4.4"
    gem.add_development_dependency "rake-compiler", "0.6.0" unless defined?(JRUBY_VERSION)
    
    case ENV['PLATFORM']
    when 'universal-java-1.5'
      gem.platform = 'universal-java-1.5'
      gem.files += FileList['lib/gherkin.jar']
      gem.extensions = []
    when 'i386-mswin32'
      gem.platform = 'i386-mswin32'
      gem.files += FileList['lib/*.so']
      gem.extensions = []
    when 'i386-mingw32'
      gem.platform = 'i386-mingw32'
      gem.files += FileList['lib/*.so']
      gem.extensions = []
    else
      gem.files += FileList['lib/gherkin/rb_lexer/*.rb']
      gem.files += FileList['ext/**/*.c']
      gem.extensions = FileList['ext/**/extconf.rb']
    end
    
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

Dir['tasks/**/*.rake'].each { |rake| load rake }

task :default  => [:spec, :cucumber]
task :spec     => defined?(JRUBY_VERSION) ? :jar : :compile
task :cucumber => defined?(JRUBY_VERSION) ? :jar : :compile

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gherkin-1.0.1-i386-mswin32 Rakefile
gherkin-1.0.1-i386-mingw32 Rakefile
gherkin-1.0.1-universal-java-1.5 Rakefile
gherkin-1.0.1 Rakefile