2010-03-29 22:01:47 +00:00
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
|
2011-06-29 01:05:07 +00:00
|
|
|
require 'rubygems'
|
|
|
|
|
2011-07-10 17:59:54 +00:00
|
|
|
require 'rake/dsl_definition'
|
2010-03-29 22:01:47 +00:00
|
|
|
require 'rake'
|
2011-06-29 01:05:07 +00:00
|
|
|
require 'rdoc/task'
|
|
|
|
require 'rubygems/package_task'
|
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'))
|
2011-06-29 01:05:07 +00:00
|
|
|
Gem::PackageTask.new(gemspec) do |pkg|
|
2010-09-28 06:04:40 +00:00
|
|
|
pkg.gem_spec = gemspec
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
|
|
|
|
2011-06-29 01:05:07 +00:00
|
|
|
desc 'build the gem and release it to rubygems.org'
|
2010-09-28 06:04:40 +00:00
|
|
|
task :release => :gem do
|
2011-06-29 01:05:07 +00:00
|
|
|
sh "gem push pkg/custom_fields-#{gemspec.version}.gem"
|
2011-02-12 19:22:11 +00:00
|
|
|
end
|
|
|
|
|
2011-07-04 13:43:05 +00:00
|
|
|
task :default => [:spec, :cucumber]
|