2 require 'rake/gempackagetask'
3 require 'spec/rake/spectask'
4 require 'merb-core/version'
5 require 'merb-core/test/tasks/spectasks'
11 HOMEPAGE = "http://merbivore.com/"
12 SUMMARY = "Merb Slice that provides ..."
15 spec = Gem::Specification.new do |s|
18 s.platform = Gem::Platform::RUBY
20 s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
22 s.description = s.summary
26 s.add_dependency('merb-slices', '>= 0.9.4')
27 s.require_path = 'lib'
28 s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec,app,public}/**/*")
31 Rake::GemPackageTask.new(spec) do |pkg|
35 desc "Install MerbEMart as a gem"
36 task :install => [:package] do
37 sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources --local}
42 desc "Run :package and install the resulting .gem with jruby"
43 task :install => :package do
44 sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{VERSION}.gem --no-rdoc --no-ri}