Updating Rakefile and README docs.
[merb_mart.git] / Rakefile
blobb21597c1e1cd884060dd51c6dccd724fe05e3803
1 require 'rake/gempackagetask'
2 require 'spec/rake/spectask'
3 require 'merb-core/version'
4 require 'merb-core/test/tasks/spectasks'
6 spec = Gem::Specification.new do |s|
7   s.name              = 'merb_e_mart'
8   s.version           = '0.0.1'
9   s.platform          = Gem::Platform::RUBY
10   s.has_rdoc          = true
11   s.extra_rdoc_files  = ["README.markdown", "GPL-LICENSE", 'TODO']
12   s.summary           = 'An open-source e-commerce engine slice for the Merb framework'
13   s.description       = s.summary
14   s.author            = 'Alex Coles'
15   s.email             = 'alex@alexcolesportfolio.com'
16   s.homepage          = 'http://github.com/myabc/merb_mart/tree/master'
17   s.require_path      = 'lib'
18   s.files             = %w(GPL-LICENSE README.markdown Rakefile TODO) + Dir.glob("{lib,spec,app,public}/**/*")
19   s.add_dependency('merb-slices', '>= 0.9.4')
20 end
22 Rake::GemPackageTask.new(spec) do |pkg|
23   pkg.gem_spec = spec
24 end
26 desc "Install MerbEMart as a gem"
27 task :install => [:package] do
28   sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources --local}
29 end
31 namespace :jruby do
33   desc "Run :package and install the resulting .gem with jruby"
34   task :install => :package do
35     sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{VERSION}.gem --no-rdoc --no-ri}
36   end
37   
38 end