lib/couch/actions/push.rb in couch-0.0.2 vs lib/couch/actions/push.rb in couch-0.0.3
- old
+ new
@@ -18,11 +18,11 @@
resp = RestClient.put url, doc.to_json
response = JSON.parse(resp.body)
if response["ok"]
rev = response["rev"]
- File.open File.join(destination_root, "_rev"), "w" do |file|
- file << rev
+ File.open File.join(destination_root, "_rev.js"), "w" do |file|
+ file << "#{rev}\n"
end
say "Pushed %s" % rev
else
say "Error occured: %s" % response.inspect