2010-03-29 22:01:47 +00:00
|
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
|
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
|
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
|
2010-07-30 00:13:44 +00:00
|
|
|
Locomotive::Application.load_tasks
|
2010-06-03 15:32:40 +00:00
|
|
|
|
|
|
|
begin
|
|
|
|
require "jeweler"
|
|
|
|
Jeweler::Tasks.new do |gem|
|
|
|
|
gem.name = "locomotive_cms"
|
|
|
|
gem.summary = "Locomotive cms engine"
|
2010-06-03 22:55:04 +00:00
|
|
|
gem.authors = ['Didier Lafforgue']
|
|
|
|
gem.email = ['didier@nocoffee.fr']
|
2010-06-03 20:20:53 +00:00
|
|
|
gem.date = Date.today
|
2010-06-12 01:13:58 +00:00
|
|
|
gem.description = "a brand new CMS system with super sexy UI and cool features (alpha version for now)"
|
2010-07-13 23:49:55 +00:00
|
|
|
gem.homepage = %q{http://www.locomotiveapp.org}
|
2010-06-03 20:20:53 +00:00
|
|
|
gem.files = Dir[
|
2010-07-23 20:09:54 +00:00
|
|
|
"Gemfile",
|
|
|
|
"{app}/**/*",
|
2010-06-03 22:55:04 +00:00
|
|
|
"{config}/**/*",
|
|
|
|
"{lib}/**/*",
|
2010-07-23 20:09:54 +00:00
|
|
|
"{public}/stylesheets/admin/**/*", "{public}/javascripts/admin/**/*", "{public}/images/admin/**/*",
|
2010-06-03 15:32:40 +00:00
|
|
|
"{vendor}/**/*"]
|
|
|
|
# other fields that would normally go in your gemspec
|
|
|
|
# like authors, email and has_rdoc can also be included here
|
2010-07-20 10:15:53 +00:00
|
|
|
bundle = Bundler::Definition.build('Gemfile', 'Gemfile.lock', false)
|
2010-06-03 15:32:40 +00:00
|
|
|
bundle.dependencies.each do |dep|
|
|
|
|
if dep.groups.include?(:default)
|
|
|
|
gem.add_dependency(dep.name, dep.requirement.to_s)
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-06-03 22:55:04 +00:00
|
|
|
Jeweler::GemcutterTasks.new
|
2010-07-20 10:15:53 +00:00
|
|
|
rescue Exception => e
|
|
|
|
puts "Jeweler or one of its dependencies is not installed. #{e.inspect}"
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
|
|
|
|