lib/pushover/priority.rb in pushover-1.0.3 vs lib/pushover/priority.rb in pushover-1.0.4
- old
+ new
@@ -28,10 +28,10 @@
# Pull one from cache, or fetch one if not available.
def find_receipt(prefix)
results = Receipts.select { |k,v| k =~ /^#{prefix}/ }
return nil if results.empty?
- return results.first
+ return results.first_pair
end
def update_receipts
updates = Receipts.select {|k,v| v["acknowledged"] == 0 && v["expired"] == 0}
updates.keys.each do |key|