Rakefile in merb_sequel-0.5 vs Rakefile in merb_sequel-0.9.2

- old
+ new

@@ -1,11 +1,11 @@ require "rubygems" require "rake/gempackagetask" PLUGIN = "merb_sequel" NAME = "merb_sequel" -VERSION = "0.5" +VERSION = "0.9.2" AUTHOR = "Wayne E. Seguin, Lance Carlson" EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com" HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/" SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model" @@ -21,23 +21,29 @@ spec.description = SUMMARY spec.autorequire = PLUGIN spec.require_path = "lib" spec.extra_rdoc_files = ["README", "LICENSE", 'TODO'] # Dependencies - spec.add_dependency("merb", ">= 0.5") + #spec.add_dependency("merb", ">= 0.9") + spec.add_dependency("merb-core", ">= 0.9.2") # This will probably only be temporary until there is an official merb gem greater than 0.9 spec.add_dependency("sequel", ">= 1.0.0") - spec.add_dependency("sequel_model", ">= 0.2") + spec.add_dependency("sequel_model", ">= 0.3.3") spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*") end +windows = (PLATFORM =~ /win32|cygwin/) rescue nil + +SUDO = windows ? "" : "sudo" + Rake::GemPackageTask.new(specification) do |package| package.gem_spec = specification end -task :install do - sh %{rake package} - sh %{sudo gem install pkg/#{NAME}-#{VERSION}} +desc "Install merb_sequel" +task :install => :package do + sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources} end +desc 'Release the current version on rubyforge' task :release => :package do sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem} end