root/plugins/merb_activerecord/Rakefile

Revision 1232, 1.0 kB (checked in by wyca..@gmail.com, 11 months ago)

Plugins now require Merb 0.5

Line 
1 require 'rubygems'
2 require 'rake/gempackagetask'
3
4 PLUGIN = "merb_activerecord"
5 NAME = "merb_activerecord"
6 VERSION = "0.5"
7 AUTHOR = "Duane Johnson"
8 EMAIL = "canadaduane@gmail.com"
9 HOMEPAGE = "http://merbivore.com"
10 SUMMARY = "Merb plugin that provides ActiveRecord support for Merb"
11
12 spec = Gem::Specification.new do |s|
13   s.name = NAME
14   s.version = VERSION
15   s.platform = Gem::Platform::RUBY
16   s.has_rdoc = true
17   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
18   s.summary = SUMMARY
19   s.description = s.summary
20   s.author = AUTHOR
21   s.email = EMAIL
22   s.homepage = HOMEPAGE
23   s.add_dependency('merb', '>= 0.5')
24   s.require_path = 'lib'
25   s.autorequire = PLUGIN
26   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,activerecord_generators}/**/*")
27 end
28
29 Rake::GemPackageTask.new(spec) do |pkg|
30   pkg.gem_spec = spec
31 end
32
33 task :install do
34   sh %{rake package}
35   sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
36 end
37
38 task :release => :package do
39   sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
40 end
Note: See TracBrowser for help on using the browser.