deputy 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
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.9"
8
+ s.version = "0.1.10"
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
@@ -18,7 +18,7 @@ class Scout
18
18
  end
19
19
 
20
20
  # stub options for now...
21
- def options(*args)
21
+ def option(*args)
22
22
  nil
23
23
  end
24
24
  end
@@ -60,7 +60,7 @@ module Deputy
60
60
  end
61
61
 
62
62
  def self.send_report(metric, value)
63
- get "/report/#{CGI.escape metric}/#{CGI.escape value.to_s}"
63
+ get "/report/#{CGI.escape metric}?value=#{CGI.escape value.to_s}"
64
64
  end
65
65
 
66
66
  def self.get(path)
data/spec/deputy_spec.rb CHANGED
@@ -41,7 +41,7 @@ describe Deputy do
41
41
  describe :send_report do
42
42
  it "sends a report" do
43
43
  Deputy.stub!(:sheriff_url).and_return 'http://sheri.ff'
44
- FakeWeb.register_uri(:get, "http://sheri.ff/report/Xxx.yyy/123", :body => 'OK')
44
+ FakeWeb.register_uri(:get, "http://sheri.ff/report/Xxx.yyy?value=123", :body => 'OK')
45
45
  Deputy.send_report('Xxx.yyy', '123').should == 'OK'
46
46
  end
47
47
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 9
9
- version: 0.1.9
8
+ - 10
9
+ version: 0.1.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser