Removing conflicting LICENSE file
[merb_mart.git] / Rakefile
bloba1b2e747a834605586846d77bc7c0851622813c9
1 require 'rake/gempackagetask'
2 require 'spec/rake/spectask'
3 require 'merb-core/version'
4 require 'merb-core/test/tasks/spectasks'
6 PLUGIN = "merb_e_mart"
7 NAME = "merb_e_mart"
8 AUTHOR = "Your Name"
9 EMAIL = "Your Email"
10 HOMEPAGE = "http://merbivore.com/"
11 SUMMARY = "Merb Slice that provides ..."
12 VERSION = "0.9.4"
14 spec = Gem::Specification.new do |s|
15   s.name = NAME
16   s.version = VERSION
17   s.platform = Gem::Platform::RUBY
18   s.has_rdoc = true
19   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
20   s.summary = SUMMARY
21   s.description = s.summary
22   s.author = AUTHOR
23   s.email = EMAIL
24   s.homepage = HOMEPAGE
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}/**/*")
28 end
30 Rake::GemPackageTask.new(spec) do |pkg|
31   pkg.gem_spec = spec
32 end
34 desc "Install MerbEMart as a gem"
35 task :install => [:package] do
36   sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources --local}
37 end
39 namespace :jruby do
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}
44   end
45   
46 end