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 CHANGED
@@ -1 +1 @@
1
- 0.1.45
1
+ 0.1.46
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.45"
8
+ s.version = "0.1.46"
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
@@ -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: 65
4
+ hash: 71
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 45
10
- version: 0.1.45
9
+ - 46
10
+ version: 0.1.46
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser