engine/Rakefile

20 lines
494 B
Ruby
Raw Normal View History

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'
require 'rake/gempackagetask'
2010-03-29 22:01:47 +00:00
Locomotive::Application.load_tasks
2010-06-03 15:32: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
desc "build the gem and release it to rubygems.org"
task :release => :gem do
sh "gem push pkg/locomotive_cms-#{gemspec.version}.gem"
end
2011-06-21 01:41:32 +00:00
task :default => [:rspec, :cucumber]