Rakefile in merb_datamapper-0.4.4 vs Rakefile in merb_datamapper-0.5

- old
+ new

@@ -1,11 +1,11 @@ require 'rubygems' require 'rake/gempackagetask' PLUGIN = "merb_datamapper" NAME = "merb_datamapper" -VERSION = "0.4.4" +VERSION = "0.5" AUTHOR = "Jason Toy" EMAIL = "jtoy@rubynow.com" HOMEPAGE = "http://merbivore.com" SUMMARY = "Merb plugin that provides DataMapper support for Merb" @@ -18,11 +18,11 @@ s.summary = SUMMARY s.description = s.summary s.author = AUTHOR s.email = EMAIL s.homepage = HOMEPAGE - s.add_dependency('merb', '>= 0.4.0') + s.add_dependency('merb', '>= 0.5') s.add_dependency('datamapper', '>= 0.2.3') s.require_path = 'lib' s.autorequire = PLUGIN s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,datamapper_generators}/**/*") end @@ -32,6 +32,10 @@ end task :install do sh %{rake package} sh %{sudo gem install pkg/#{NAME}-#{VERSION}} +end + +task :release => :package do + sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem} end