deputy 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/deputy.gemspec +1 -1
  3. data/lib/deputy.rb +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/deputy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{deputy}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser