public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
ezmobius (author)
Sat May 03 17:34:08 -0700 2008
commit  1e6ea8700a2b91910467f1ad364c6058b7b6f9e5
tree    cb2f8b7c170d6322e88c1fda2f747ea221f5d3ad
parent  7516b44c726d49517a80c6a4932a09d921a1b75f
100644 48 lines (39 sloc) 1.296 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
47
48
require 'rubygems'
require 'rake/gempackagetask'
 
PLUGIN = "merb-action-args"
NAME = "merb-action-args"
VERSION = "0.9.3"
AUTHOR = "Yehuda Katz"
EMAIL = "ykatz@engineyard.com"
HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-haml/"
SUMMARY = "Merb plugin that provides support for ActionArgs"
 
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.add_dependency('ruby2ruby', '>= 1.1.8')
  s.require_path = 'lib'
  s.autorequire = PLUGIN
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
install_home = ENV['GEM_HOME'] ? "-i #{ENV['GEM_HOME']}" : ""
 
task :install => [:package] do
  sh %{sudo gem install #{install_home} pkg/#{NAME}-#{VERSION} --no-update-sources}
end
 
namespace :jruby do
 
  desc "Run :package and install the resulting .gem with jruby"
  task :install => :package do
    sh %{#{SUDO} jruby -S gem install #{install_home} pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
  end
  
end