shoutbox-client 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,7 +55,7 @@ EOS
55
55
  end
56
56
 
57
57
  def do_it
58
- ShoutboxClient.shout :name => @conf[:name], :statusId => @conf[:statusId], :status => @conf[:status], :group => @conf[:group]
58
+ ShoutboxClient.shout :name => @conf[:name], :statusId => @conf[:statusId], :status => @conf[:status], :group => @conf[:group], :message => @conf[:message]
59
59
  end
60
60
  end
61
61
  end
@@ -27,7 +27,7 @@ class ShoutboxClient
27
27
  req = Net::HTTP::Put.new( request_url(options) )
28
28
  default_headers(req)
29
29
  body_data = { :statusId => options[:statusId], :group => (options[:group] || 'default'), :status => options[:status].to_s }
30
- body_data[:message] = options[:message] if options[:status] == :red
30
+ body_data[:message] = options[:message] if options[:status].to_s == 'red'
31
31
  raise ArgumentError if (options[:status] == :red) and body_data[:message].to_s.empty?
32
32
  req.body = body_data.to_json
33
33
  http.request(req)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Benjamin Krause
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - ">="
136
136
  - !ruby/object:Gem::Version
137
- hash: -1817083746782898519
137
+ hash: 3501498423409065608
138
138
  segments:
139
139
  - 0
140
140
  version: "0"