Permalink
Browse files

Bump to 3.1.12 and release on gemcutter.

  • Loading branch information...
josevalim committed Jan 18, 2010
1 parent d6363a6 commit f0fff81f03f26ff70a455f916b0f2f9a7dad70be
Showing with 7 additions and 24 deletions.
  1. +5 −22 Rakefile
  2. +1 −1 remarkable/lib/remarkable/version.rb
  3. +1 −1 remarkable_datamapper/README
View
@@ -54,29 +54,12 @@ task :default do
end
desc "Publish release files to RubyForge"
-task :release => :package do
- require 'rubyforge'
-
- r = RubyForge.new
- r.configure
-
- puts "Logging in..."
- r.login
-
+task :release => [:gemspec, :package] do
REMARKABLE_GEMS.each do |gem|
- packages = %w(gem tgz zip).collect{ |ext| File.join(PACKAGE_DIR, "#{gem}-#{GEM_VERSION}.#{ext}") }
+ path = File.join(PACKAGE_DIR, "#{gem}-#{GEM_VERSION}.gem")
+ command = "gem push #{path}"
- begin
- puts "Adding #{gem} #{GEM_VERSION}..."
- r.add_release RUBY_FORGE_PROJECT, gem.to_s, GEM_VERSION, *packages
- packages.each{|p| r.add_file(RUBY_FORGE_PROJECT, gem.to_s, GEM_VERSION, p) }
- rescue Exception => e
- if e.message =~ /You have already released this version/
- puts "You already released #{gem}-#{GEM_VERSION}. Continuing..."
- puts
- else
- raise e
- end
- end
+ puts command
+ system command
end
end
@@ -1,3 +1,3 @@
module Remarkable
- VERSION = '3.1.11' unless self.const_defined?(:VERSION)
+ VERSION = '3.1.12' unless self.const_defined?(:VERSION)
end
@@ -1,3 +1,3 @@
= Remarkable Datamapper
-Coming soon...
+Coming soon... feel free to fork and help!

0 comments on commit f0fff81

Please sign in to comment.