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 +1 -1
- data/deputy.gemspec +1 -1
- data/lib/deputy.rb +2 -2
- data/spec/deputy_spec.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/deputy.gemspec
CHANGED
data/lib/deputy.rb
CHANGED
@@ -18,7 +18,7 @@ class Scout
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# stub options for now...
|
21
|
-
def
|
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}
|
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
|
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
|