# 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('../spec/rails_app/config/application', __FILE__) require 'rake' require 'rake/testtask' require 'rake/rdoctask' # gem "will_paginate" # gem "rdiscount" # gem "formtastic" # gem "permalink_fu", :git => 'git://github.com/idealian/permalink_fu.git' # gem "acts-as-taggable-on", :git => 'git://github.com/fousa/acts-as-taggable-on.git' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "content_engine" gem.summary = %Q{A Rails 3 Engine for sexier site and content management} gem.description = %Q{Extracted from shop2, site-rest} gem.email = "taylor.luk@idealian.net" gem.homepage = "http://github.com/idealian/content_engine" gem.authors = ["Taylor Luk"] gem.add_dependency "will_paginate" gem.add_dependency "rdiscount" gem.add_dependency "formtastic" gem.add_development_dependency "rspec", ">= 1.2.9" # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end begin require 'rspec/core' require 'rspec/core/rake_task' rescue MissingSourceFile end task :default => :spec desc "Run all specs in spec directory (excluding plugin specs)" Rspec::Core::RakeTask.new(:spec) namespace :spec do [:requests, :models, :controllers, :views, :helpers, :mailers, :lib].each do |sub| desc "Run the code examples in spec/#{sub}" Rspec::Core::RakeTask.new do |t| t.pattern = "./spec/#{sub}/**/*_spec.rb" end end end # # begin # require 'spec/rake/spectask' # rescue LoadError # puts 'To use rspec for testing you must install rspec gem:' # puts '$ sudo gem install rspec' # exit # end # # Spec::Rake::SpecTask.new(:spec) do |spec| # spec.libs << 'lib' << 'spec' # spec.spec_files = FileList['spec/**/*_spec.rb'] # end # # Spec::Rake::SpecTask.new(:rcov) do |spec| # spec.libs << 'lib' << 'spec' # spec.pattern = 'spec/**/*_spec.rb' # spec.rcov = true # end task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "very_nifty_generators #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end