deputy 0.1.45 → 0.1.46
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 +1 -1
- data/spec/deputy_spec.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.46
|
data/deputy.gemspec
CHANGED
data/lib/deputy.rb
CHANGED
@@ -124,7 +124,7 @@ module Deputy
|
|
124
124
|
raise "separate #{group} with a ." unless group.split('.',2).size == 2
|
125
125
|
host = options[:host] || Socket.gethostname
|
126
126
|
|
127
|
-
get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}&hostname=#{host}"
|
127
|
+
get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}&hostname=#{host}#{'&forced_host=true' if options[:host]}"
|
128
128
|
end
|
129
129
|
|
130
130
|
def self.get(path, options = {})
|
data/spec/deputy_spec.rb
CHANGED
@@ -187,7 +187,7 @@ describe Deputy do
|
|
187
187
|
end
|
188
188
|
|
189
189
|
it "overrides host, if specified in options" do
|
190
|
-
FakeWeb.register_uri(:get, "http://sheri.ff/notify?group=Xxx.yy%3Fy&value=123&hostname=general", :body => 'OK')
|
190
|
+
FakeWeb.register_uri(:get, "http://sheri.ff/notify?group=Xxx.yy%3Fy&value=123&hostname=general&forced_host=true", :body => 'OK')
|
191
191
|
Deputy.send_report('Xxx.yy?y', '123', {:host => 'general'}).should == 'OK'
|
192
192
|
end
|
193
193
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deputy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 71
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 46
|
10
|
+
version: 0.1.46
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|