Sha256: 8264c879820bf5c6d6f67abcf25d41ddb2fb9cb4bb1d5c39ffa4cf709fbe6122
Contents?: true
Size: 608 Bytes
Versions: 33
Compression:
Stored size: 608 Bytes
Contents
desc "Publish the release files to RubyForge." task :release => [ :package ] do packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{GEM_NAME}-#{GEM_VERSION}.#{ext}" } begin sh %{rubyforge login} sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}} sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}} rescue Exception => e puts puts "Release failed: #{e.message}" puts puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)" end end
Version data entries
33 entries across 33 versions & 6 rubygems