Rakefile in ruote-couch-2.1.8 vs Rakefile in ruote-couch-2.1.9
- old
+ new
@@ -31,16 +31,32 @@
gem.rubyforge_project = 'ruote'
gem.test_file = 'test/test.rb'
gem.add_dependency 'ruote', ">= #{Ruote::Couch::VERSION}"
- gem.add_dependency 'rufus-jig', '>= 0.1.15'
+ gem.add_dependency 'rufus-jig', '>= 0.1.17'
gem.add_development_dependency 'yard'
+ gem.add_development_dependency 'rake'
gem.add_development_dependency 'jeweler'
# gemspec spec : http://www.rubygems.org/read/chapter/20
end
Jeweler::GemcutterTasks.new
+
+#
+# MISC
+
+task :delete_all_test_databases do
+
+ require 'json'
+ require 'rufus/jig'
+ couch = Rufus::Jig::Couch.new('127.0.0.1', 5984)
+ %w[
+ configurations errors expressions msgs schedules variables workitems
+ ].each do |type|
+ couch.delete("/test_ruote_#{type}")
+ end
+end
#
# DOC