Sha256: 401980c70e13e3588ff45f667d690c2d3d0bc2e9a441acfbcca45b0ac42a2426

Contents?: true

Size: 1.02 KB

Versions: 28

Compression:

Stored size: 1.02 KB

Contents

namespace :gems do
  task :win do
    unless File.directory?(File.expand_path('~/.rake-compiler'))
      STDERR.puts "[ERROR] You must install MinGW rubies to build gherkin gems for Windows. See README.rdoc"
      exit(1)
    end
    # rvm and mingw ruby versions have to match to avoid errors
    sh "rvm 1.8.6-p399@cucumber rake cross compile RUBY_CC_VERSION=1.8.6"
    sh "rvm 1.9.1-p243@cucumber rake cross compile RUBY_CC_VERSION=1.9.1"
    # This will copy the .so files to the proper place
    sh "rake cross compile RUBY_CC_VERSION=1.8.6:1.9.1"
  end

  desc 'Prepare JRuby binares'
  task :jruby => [:jar] do
    sh "rvm jruby@cucumber exec rspec spec"
  end

  desc 'Prepare IronRuby binaries'
  task :ironruby => [:jruby, 'ikvm:dll', 'ikvm:copy_ikvm_dlls']

  task :sanity do
    raise "The jruby gem looks too small" if File.stat("release/gherkin-#{Gherkin::VERSION}-java.gem").size < 1000000
  end

  desc "Prepare binaries for all gems"
  task :prepare => [
    :clean,
    :spec,
    :win,
    :jruby,
    :ironruby
  ]

end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/tasks/gems.rake
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/tasks/gems.rake
gherkin-2.3.7 tasks/gems.rake
gherkin-2.3.7-x86-mswin32 tasks/gems.rake
gherkin-2.3.7-x86-mingw32 tasks/gems.rake
gherkin-2.3.7-universal-dotnet tasks/gems.rake
gherkin-2.3.7-java tasks/gems.rake
gherkin-2.3.6 tasks/gems.rake
gherkin-2.3.6-x86-mswin32 tasks/gems.rake
gherkin-2.3.6-x86-mingw32 tasks/gems.rake
gherkin-2.3.6-universal-dotnet tasks/gems.rake
gherkin-2.3.6-java tasks/gems.rake
benhamill-gherkin-2.3.5 tasks/gems.rake
gherkin-2.3.5 tasks/gems.rake
gherkin-2.3.5-x86-mswin32 tasks/gems.rake
gherkin-2.3.5-x86-mingw32 tasks/gems.rake
gherkin-2.3.5-universal-dotnet tasks/gems.rake
gherkin-2.3.5-java tasks/gems.rake
gherkin-2.3.4 tasks/gems.rake
gherkin-2.3.4-x86-mswin32 tasks/gems.rake