upgraded couchrest for 080

This commit is contained in:
Chris Anderson 2008-07-04 16:56:09 -07:00
parent db20bc4101
commit 915905ca13
9 changed files with 40 additions and 20 deletions

View file

@ -116,7 +116,11 @@ when "push" # files to views
end
end
# save them to the db
control = db.get("#{prefix}/#{cntrl}") rescue nil
begin
control = db.get("#{prefix}/#{cntrl}")
rescue RestClient::Request::RequestFailed
control = nil
end
if (control && control['actions'] == actions)
puts "no change to #{prefix}/#{cntrl}. skipping..."
else