2 require 'rake/gempackagetask'
5 require 'merb-core/tasks/merb'
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'
17 s.version = GEM_VERSION
18 s.platform = Gem::Platform::RUBY
20 s.extra_rdoc_files = ["README.markdown", "GPL-LICENSE", 'TODO']
22 s.description = s.summary
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}/**/*")
31 Rake::GemPackageTask.new(spec) do |pkg|
35 desc "Install the gem"
37 Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
40 desc "Uninstall the gem"
42 Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
45 desc "Create a gemspec file"
47 File.open("#{GEM_NAME}.gemspec", "w") do |file|
48 file.puts spec.to_ruby
52 require 'spec/rake/spectask'
53 require 'merb-core/test/tasks/spectasks'
54 desc 'Default: run spec examples'
55 task :default => 'spec'