Skip to content

Commit

Permalink
Add release instructions for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Soleone committed Sep 13, 2010
1 parent ad87a23 commit 1e650c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
15 changes: 15 additions & 0 deletions RELEASING
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
releasing Active Merchant

1. Get the gem-private_key.pem from Cody and store it chmod 660 somewhere safe
2. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
3. Update the version of Active Merchant in lib/active_merchant/version.rb and in activemerchant.gemspec
4. Add a CHANGELOG entry for the new release with the date
5. Commit the changes with a commit message like "Packaging for release X.Y.Z"
6. Tag the release with the version (Leave REV blank for HEAD or provide a SHA)
$ git tag vX.Y.Z REV
7. Push out the changes
$ git push
8. Push out the tags
$ git push --tags
9. Publish the Gem to gemcutter
$ rake release GEM_PRIVATE_KEY=/path/to/private/key
28 changes: 1 addition & 27 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Rake::GemPackageTask.new(spec) do |p|
end

desc "Release the gems and docs to RubyForge"
task :release => [ 'gemcutter:publish', 'rubyforge:publish', 'rubyforge:upload_rdoc' ]
task :release => [ 'gemcutter:publish' ]

namespace :gemcutter do
desc "Publish to gemcutter"
Expand All @@ -57,32 +57,6 @@ namespace :gemcutter do
end
end

namespace :rubyforge do

desc "Publish the release files to RubyForge."
task :publish => :package do
require 'rubyforge'

packages = %w( gem tgz zip ).collect{ |ext| "pkg/activemerchant-#{ActiveMerchant::VERSION}.#{ext}" }

rubyforge = RubyForge.new
rubyforge.configure
rubyforge.login
rubyforge.add_release('activemerchant', 'activemerchant', "REL #{ActiveMerchant::VERSION}", *packages)
end

desc 'Upload RDoc to RubyForge'
task :upload_rdoc => :rdoc do
require 'rake/contrib/rubyforgepublisher'
user = ENV['RUBYFORGE_USER']
project = "/var/www/gforge-projects/activemerchant"
local_dir = 'doc'
pub = Rake::SshDirPublisher.new user, project, local_dir
pub.upload
end

end

namespace :gateways do
desc 'Print the currently supported gateways'
task :print do
Expand Down

0 comments on commit 1e650c6

Please sign in to comment.