deputy 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/deputy.gemspec +1 -1
- data/lib/deputy.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/deputy.gemspec
CHANGED
data/lib/deputy.rb
CHANGED
@@ -13,7 +13,7 @@ class Scout
|
|
13
13
|
class Plugin
|
14
14
|
def report(metrics)
|
15
15
|
metrics.each do |key, value|
|
16
|
-
Deputy.send_report "#{self.class}.#{key}", value
|
16
|
+
Deputy.send_report "#{self.class.to_s.split('::')[1..-1]}.#{key}", value
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -51,7 +51,7 @@ module Deputy
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.send_report(metric, value)
|
54
|
-
get "/report/#{CGI.escape metric}/#{CGI.escape value}"
|
54
|
+
get "/report/#{CGI.escape metric}/#{CGI.escape value.to_s}"
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.get(path)
|