Rakefile in couch-0.1.1 vs Rakefile in couch-0.1.2

- old
+ new

@@ -1,8 +1,27 @@ require 'rubygems' require 'rake' require File.join(File.dirname(__FILE__), 'lib', 'couch', '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/couch/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 = "couch" gem.version = Couch::VERSION