lib/deputy.rb in deputy-0.1.9 vs lib/deputy.rb in deputy-0.1.10
- old
+ new
@@ -16,11 +16,11 @@
Deputy.send_report "#{self.class.to_s.split('::')[1..-1]}.#{key}", value
end
end
# stub options for now...
- def options(*args)
+ def option(*args)
nil
end
end
def self.plugins(code)
@@ -58,10 +58,10 @@
send_report "Deputies.Error", e.message
raise e
end
def self.send_report(metric, value)
- get "/report/#{CGI.escape metric}/#{CGI.escape value.to_s}"
+ get "/report/#{CGI.escape metric}?value=#{CGI.escape value.to_s}"
end
def self.get(path)
url = "#{sheriff_url}#{path}"
open(url).read
\ No newline at end of file