hatchet-hipchat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,7 @@ module Hatchet
|
|
49
49
|
#
|
50
50
|
def add(level, context, message)
|
51
51
|
message = @formatter.format(level, context, message)
|
52
|
-
client.rooms_message @room_id, @name, message, 'text'
|
52
|
+
client.rooms_message @room_id, @name, message, 0, 'yellow', 'text'
|
53
53
|
end
|
54
54
|
|
55
55
|
# Internal: Returns the client used to send messages to HipChat.
|
data/spec/helpers/fake_client.rb
CHANGED
@@ -11,8 +11,10 @@ class FakeClient
|
|
11
11
|
@messages = []
|
12
12
|
end
|
13
13
|
|
14
|
-
def rooms_message(room_id, from, message, format)
|
15
|
-
@messages << OpenStruct.new(
|
14
|
+
def rooms_message(room_id, from, message, notify, color, format)
|
15
|
+
@messages << OpenStruct.new(
|
16
|
+
room_id: room_id, from: from, message: message, notify: notify,
|
17
|
+
color: color, format: format)
|
16
18
|
end
|
17
19
|
|
18
20
|
end
|
@@ -39,6 +39,8 @@ describe HipChatAppender do
|
|
39
39
|
formatted_message = subject.formatter.format(:warn, 'Custom::Context', 'Hello, World')
|
40
40
|
assert 'Hatchet' == message.from
|
41
41
|
assert formatted_message == message.message
|
42
|
+
assert 0 == message.notify
|
43
|
+
assert 'yellow' == message.color
|
42
44
|
assert 'text' == message.format
|
43
45
|
end
|
44
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hatchet-hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hatchet
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70367079335100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.0.9
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.0.9
|
24
|
+
version_requirements: *70367079335100
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: hipchat-api
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70367079334600 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ~>
|
@@ -37,12 +32,7 @@ dependencies:
|
|
37
32
|
version: 1.0.4
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0.4
|
35
|
+
version_requirements: *70367079334600
|
46
36
|
description: Hatchet appender that sends messages to HipChat
|
47
37
|
email:
|
48
38
|
- garry@robustsoftware.co.uk
|
@@ -79,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
69
|
version: '0'
|
80
70
|
requirements: []
|
81
71
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.8.
|
72
|
+
rubygems_version: 1.8.17
|
83
73
|
signing_key:
|
84
74
|
specification_version: 3
|
85
75
|
summary: Hatchet appender that sends messages to HipChat
|