Sha256: b8b463514f81d8644bd653c0024ef962987a958f87ebe0886ab25582a8e2a144

Contents?: true

Size: 1009 Bytes

Versions: 44

Compression:

Stored size: 1009 Bytes

Contents

namespace :gems do
  desc "Build MRI/C POSIX gem"
  task :posix => :release_dir  do
    sh "rake clean spec"
    sh "rake gemspec build"
    mv "pkg/gherkin-#{GHERKIN_VERSION}.gem", 'release'
  end

  [:mswin32, :mingw32].each do |win_compiler|
    desc "Build MRI/C precompiled #{win_compiler} gem"
    task win_compiler do
      sh "rake cross compile RUBY_CC_VERSION=1.8.6"
      sh "rake gemspec build PLATFORM=i386-#{win_compiler}"
      mv "pkg/gherkin-#{GHERKIN_VERSION}-x86-#{win_compiler}.gem", 'release'
    end
  end

  desc 'Build JRuby gem'
  task :jruby => :release_dir do
    sh "rvm jruby rake spec"
    sh "rvm jruby rake gemspec build PLATFORM=java"
    mv "pkg/gherkin-#{GHERKIN_VERSION}-java.gem", 'release'
  end

  task :release_dir do
    mkdir 'release' unless File.directory?('release')
  end

  task :clean_release_dir do
    rm_rf 'release' if File.directory?('release')
  end
end

task :gems => ['gems:clean_release_dir', 'gems:posix', 'gems:mswin32', 'gems:mingw32', 'gems:jruby']

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
gherkin-1.0.21 tasks/gems.rake
gherkin-1.0.21-i386-mswin32 tasks/gems.rake
gherkin-1.0.21-i386-mingw32 tasks/gems.rake
gherkin-1.0.21-java tasks/gems.rake
gherkin-1.0.20 tasks/gems.rake
gherkin-1.0.20-i386-mswin32 tasks/gems.rake
gherkin-1.0.20-i386-mingw32 tasks/gems.rake
gherkin-1.0.20-java tasks/gems.rake
gherkin-1.0.19 tasks/gems.rake
gherkin-1.0.19-i386-mswin32 tasks/gems.rake
gherkin-1.0.19-i386-mingw32 tasks/gems.rake
gherkin-1.0.19-java tasks/gems.rake
gherkin-1.0.18 tasks/gems.rake
gherkin-1.0.18-i386-mswin32 tasks/gems.rake
gherkin-1.0.18-i386-mingw32 tasks/gems.rake
gherkin-1.0.18-java tasks/gems.rake
gherkin-1.0.17 tasks/gems.rake
gherkin-1.0.17-i386-mswin32 tasks/gems.rake
gherkin-1.0.17-i386-mingw32 tasks/gems.rake
gherkin-1.0.17-java tasks/gems.rake