require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rubygems' begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "blueberry_scaffold" gemspec.summary = "Rails scaffold generator plugin." gemspec.email = "jzajpt@blueberryapps.com" gemspec.homepage = "http://github.com/jzajpt/blueberry_scaffold" gemspec.description = "Scaffold generator featuring i18n, shoulda & factory girl tests." gemspec.authors = ["Jiří Zajpt"] end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end # desc 'Default: run unit tests.' # task :default => :test # # desc 'Test the blueberry_scaffold plugin.' # Rake::TestTask.new(:test) do |t| # t.libs << 'lib' # t.libs << 'test' # t.pattern = 'test/**/*_test.rb' # t.verbose = true # end # # desc 'Generate documentation for the blueberry_scaffold plugin.' # Rake::RDocTask.new(:rdoc) do |rdoc| # rdoc.rdoc_dir = 'rdoc' # rdoc.title = 'BlueberryScaffold' # rdoc.options << '--line-numbers' << '--inline-source' # rdoc.rdoc_files.include('README') # rdoc.rdoc_files.include('lib/**/*.rb') # end