lib/couch_docs.rb in eee-c-couch_docs-0.9.0 vs lib/couch_docs.rb in eee-c-couch_docs-1.0.0

- old
+ new

@@ -1,9 +1,9 @@ module CouchDocs # :stopdoc: - VERSION = '0.9.0' + VERSION = '1.0.0' LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR # :startdoc: # Returns the version string for the library. @@ -53,10 +53,10 @@ store = Store.new(db_uri) dir = DocumentDirectory.new(dir) store. map. reject { |doc| doc['_id'] =~ /^_design/ }. - each { |doc| dir.store_document(doc) } + each { |doc| doc.delete('_rev'); dir.store_document(doc) } end # Returns the library path for the module. If any arguments are given, # they will be joined to the end of the libray path using # <tt>File.join</tt>.