Sha256: a0fc0ea8e7a3e16c8f779d11a0895d5d19130ab5eea8fef285140f63ffc14ee6

Contents?: true

Size: 1.02 KB

Versions: 10

Compression:

Stored size: 1.02 KB

Contents

namespace :release do
  desc 'Upload all packages and tag git'
  task :ALL => ['gems:sanity', :push_dll, :push_jar, :push_native_gems, :push_npm_package, :release]

  desc 'Push all gems to rubygems.org (gemcutter)'
  task :push_native_gems do
    Dir.chdir('release') do
      Dir['*.gem'].each do |gem_file|
        sh("gem push #{gem_file}")
      end
    end
  end

  desc 'Push dll to Github'
  task :push_dll => :ikvm do
    Dir.chdir('release') do
      # No known way to do scripted uploads. github/upload or aslakhellesoy's fork of github-gem no longer work
      puts "Manually upload gherkin-#{Gherkin::VERSION}.dll to http://github.com/aslakhellesoy/gherkin/downloads"
      puts "Then press enter"
      STDIN.gets
    end
  end

  desc 'Push jar to cukes.info Maven repo'
  task :push_jar do
    Dir.chdir('java') do
      sh("mvn -Dmaven.wagon.provider.http=httpclient deploy")
    end
  end

  desc 'Push npm package to http://npmjs.org/'
  task :push_npm_package do
    Dir.chdir('js') do
      sh("npm publish")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gherkin-2.3.7 tasks/release.rake
gherkin-2.3.7-x86-mswin32 tasks/release.rake
gherkin-2.3.7-x86-mingw32 tasks/release.rake
gherkin-2.3.7-universal-dotnet tasks/release.rake
gherkin-2.3.7-java tasks/release.rake
gherkin-2.3.6 tasks/release.rake
gherkin-2.3.6-x86-mswin32 tasks/release.rake
gherkin-2.3.6-x86-mingw32 tasks/release.rake
gherkin-2.3.6-universal-dotnet tasks/release.rake
gherkin-2.3.6-java tasks/release.rake