require 'rubygems' require 'rake' require File.join(File.dirname(__FILE__), 'lib', 'rid', 'version') namespace :vendor do desc "Update vendor" task :update do `git submodule update` end desc "vendor mustache" task :mustache do dir = File.expand_path('..', __FILE__) source = File.join(dir, 'vendor/mustache.js/mustache.js') target = File.join(dir, 'lib/rid/generators/application/templates/lib/') FileUtils.cp source, target end end desc "Vendor all" task :vendor => ["vendor:update", "vendor:mustache"] begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "rid" gem.version = Rid::VERSION gem.summary = %Q{Standalone Couchdb Application Development Suite} gem.description = %Q{With Couch you can easy build a standalone CouchDB application. Couch aims to bring some of the Rails beauty to CouchDB. Currently Couch supports Rails style Generators you will love, using the same awesome Thor library used in Rails3.} gem.email = "schmidt@netzmerk.com" gem.homepage = "http://jo.github.com/rid/" gem.authors = ["Johannes J. Schmidt"] gem.rubyforge_project = "rid" gem.add_dependency "thor", ">= 0.13.4" gem.add_dependency "rest-client", ">= 1.4.1" gem.add_dependency "json_pure", ">= 1.2.2" gem.add_dependency "activesupport", ">= 3.0.0.beta" 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 Jeweler::RubyforgeTasks.new do |rubyforge| rubyforge.doc_task = "rdoc" end rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end require 'spec/rake/spectask' 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 :spec => :check_dependencies task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = "rid #{Rid::VERSION}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end