2010-03-29 22:01:47 +00:00
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
|
|
|
|
require 'rake'
|
2011-06-21 01:41:32 +00:00
|
|
|
# require 'rake/testtask'
|
2010-03-29 22:01:47 +00:00
|
|
|
require 'rake/rdoctask'
|
2010-09-28 06:04:40 +00:00
|
|
|
require 'rake/gempackagetask'
|
2010-03-29 22:01:47 +00:00
|
|
|
|
2010-07-30 00:13:44 +00:00
|
|
|
Locomotive::Application.load_tasks
|
2010-06-03 15:32:40 +00:00
|
|
|
|
2010-09-28 06:04:40 +00:00
|
|
|
gemspec = eval(File.read('locomotive_cms.gemspec'))
|
|
|
|
Rake::GemPackageTask.new(gemspec) do |pkg|
|
|
|
|
pkg.gem_spec = gemspec
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
|
|
|
|
2010-09-28 06:04:40 +00:00
|
|
|
desc "build the gem and release it to rubygems.org"
|
|
|
|
task :release => :gem do
|
|
|
|
sh "gem push pkg/locomotive_cms-#{gemspec.version}.gem"
|
2011-02-12 19:22:11 +00:00
|
|
|
end
|
|
|
|
|
2011-06-21 01:41:32 +00:00
|
|
|
task :default => [:rspec, :cucumber]
|