require "rubygems" require "rake/gempackagetask" PLUGIN = "merb_sequel" NAME = "merb_sequel" VERSION = "0.5" 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" specification = Gem::Specification.new do |spec| spec.name = NAME spec.email = EMAIL spec.author = AUTHOR spec.version = VERSION spec.summary = SUMMARY spec.platform = Gem::Platform::RUBY spec.has_rdoc = true spec.homepage = HOMEPAGE 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("sequel", ">= 1.0.0") spec.add_dependency("sequel_model", ">= 0.2") spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*") end Rake::GemPackageTask.new(specification) do |package| package.gem_spec = specification 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