Consolidation of work on slicefiying application with original app
[merb_mart.git] / Rakefile
blob88dd54a026494538266f890d2a6340c996255542
1 require 'rubygems'
2 require 'rake/gempackagetask'
4 require 'merb-core'
5 require 'merb-core/tasks/merb'
7 GEM_NAME = "merb_mart"
8 AUTHOR = "Alex Coles"
9 EMAIL = "alex@alexcolesportfolio.com"
10 HOMEPAGE = "http://github.com/myabc/merb_mart/tree/master"
11 SUMMARY = "An open-source e-commerce engine slice for the Merb framework'"
12 GEM_VERSION = "0.9.12"
14 spec = Gem::Specification.new do |s|
15   s.rubyforge_project = 'merb'
16   s.name = GEM_NAME
17   s.version = GEM_VERSION
18   s.platform = Gem::Platform::RUBY
19   s.has_rdoc = true
20   s.extra_rdoc_files = ["README.markdown", "GPL-LICENSE", 'TODO']
21   s.summary = SUMMARY
22   s.description = s.summary
23   s.author = AUTHOR
24   s.email = EMAIL
25   s.homepage = HOMEPAGE
26   s.add_dependency('merb-slices', '>= 0.9.12')
27   s.require_path = 'lib'
28   s.files = %w(GPL-LICENSE README.markdown Rakefile TODO) + Dir.glob("{lib,spec,app,public,stubs}/**/*")
29 end
31 Rake::GemPackageTask.new(spec) do |pkg|
32   pkg.gem_spec = spec
33 end
35 desc "Install the gem"
36 task :install do
37   Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
38 end
40 desc "Uninstall the gem"
41 task :uninstall do
42   Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
43 end
45 desc "Create a gemspec file"
46 task :gemspec do
47   File.open("#{GEM_NAME}.gemspec", "w") do |file|
48     file.puts spec.to_ruby
49   end
50 end
52 require 'spec/rake/spectask'
53 require 'merb-core/test/tasks/spectasks'
54 desc 'Default: run spec examples'
55 task :default => 'spec'