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