require 'rubygems' require 'rake' require "rspec/core/rake_task" begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "on_the_spot" gem.summary = %Q{unobtrusive in place editing} gem.description = %Q{Unobtrusive in place editing, using jEditable; only works in Rails 3} gem.email = "nathan@dixis.com" gem.homepage = "http://github.com/nathanvda/on_the_spot" gem.authors = ["Nathan Van der Auwera"] gem.add_development_dependency "rspec", ">= 2.0.0rc" gem.add_development_dependency "actionpack", ">= 3.0.0" gem.add_dependency "json_pure", ">= 1.4.6" # 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 RSpec::Core::RakeTask.new(:spec) desc "Run all specs with rcov" RSpec::Core::RakeTask.new("test_cov") do |t| t.rcov = true t.rcov_opts = %w{--rails --include views -Ispec --exclude gems\/,spec\/,features\/,seeds\/} end require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "on_the_spot #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end