public
Fork of wycats/merb-plugins
Description: Merb Plugins: Even more modules to hook up your Merb installation
Homepage: http://www.merbivore.com
Clone URL: git://github.com/somebee/merb-plugins.git
somebee (author)
Wed May 07 06:56:37 -0700 2008
commit  674e0d5d16fa2e77e222a7f215ccb8407f4972a0
tree    ca166686c8f33610a6b5649f38f9bef6d77ff8f7
parent  2e3edb1c4786de40a0a5b8679640bb439129b3dc parent  90a02219f878d039a1adb681a1ff7fd16d9c8cca
100644 46 lines (38 sloc) 1.246 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'rubygems'
require 'rake/gempackagetask'
 
PLUGIN = "merb_activerecord"
NAME = "merb_activerecord"
VERSION = "0.9.3"
AUTHOR = "Duane Johnson"
EMAIL = "canadaduane@gmail.com"
HOMEPAGE = "http://merbivore.com"
SUMMARY = "Merb plugin that provides ActiveRecord support for Merb"
 
spec = Gem::Specification.new do |s|
  s.name = NAME
  s.version = VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
  s.summary = SUMMARY
  s.description = s.summary
  s.author = AUTHOR
  s.email = EMAIL
  s.homepage = HOMEPAGE
  s.add_dependency("merb-core", ">= 0.9.3")
  s.require_path = "lib"
  s.autorequire = PLUGIN
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,activerecord_generators}/**/*")
end
 
windows = (PLATFORM =~ /win32|cygwin/) rescue nil
 
SUDO = windows ? "" : "sudo"
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
desc "Install merb_activerecord"
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