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.
- data/lib/shoutbox/shout.rb +1 -1
- data/lib/shoutbox_client.rb +1 -1
- metadata +3 -3
data/lib/shoutbox/shout.rb
CHANGED
@@ -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
|
data/lib/shoutbox_client.rb
CHANGED
@@ -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] ==
|
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
|
-
-
|
9
|
-
version: 0.0.
|
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:
|
137
|
+
hash: 3501498423409065608
|
138
138
|
segments:
|
139
139
|
- 0
|
140
140
|
version: "0"
|