mina_hipchat 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -6
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/mina_hipchat/tasks.rb +3 -3
- data/lib/mina_hipchat/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
5
|
-
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: 20bc5c0b7cf672295b03ad58ff3bdffc52f22aba
|
|
4
|
+
data.tar.gz: 380d5437264ac7858bf5480bb2fdf04d8e8c034e
|
|
5
|
+
!binary "U0hBNTEy":
|
|
6
|
+
metadata.gz: c53948c0912493f60b7183c68f54e267bb7d1f5694a169de30b6b03411f7f1881d33bad09d4a5aebb14a15632be491b1b39dff2f9b144164fd37dea672f62c81
|
|
7
|
+
data.tar.gz: 2f8aa008c9dac6510107249f8878741340a978064428818d3c9c412d7fe25e814f8e556155c3c8a530587a58e83164012c7fa64fb5dd9cef38ad17503460aab5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -41,7 +41,7 @@ using [Mina] (http://nadarei.co/mina).
|
|
|
41
41
|
| *__hipchat_rooms__** | Sets the rooms where notifications will be sent to. |
|
|
42
42
|
| *hipchat_from* | Sets the notification 'from' user label. |
|
|
43
43
|
| *hipchat_author* | Sets the deployment author name, |
|
|
44
|
-
| *
|
|
44
|
+
| *hipchat_colors* | Sets the notification colors. |
|
|
45
45
|
|
|
46
46
|
__* required options__
|
|
47
47
|
|
data/lib/mina_hipchat/tasks.rb
CHANGED
|
@@ -15,7 +15,7 @@ set_default :hipchat_from, 'Deploy'
|
|
|
15
15
|
|
|
16
16
|
# ### hipchat_color
|
|
17
17
|
# Sets the notification color
|
|
18
|
-
set_default :
|
|
18
|
+
set_default :hipchat_colors, {started: 'gray', finished: 'green'}
|
|
19
19
|
|
|
20
20
|
# ### hipchat_author
|
|
21
21
|
# Sets the deployment author name
|
|
@@ -31,7 +31,7 @@ namespace :hipchat do
|
|
|
31
31
|
message = "#{hipchat_author} is deploying #{application}..."
|
|
32
32
|
|
|
33
33
|
for room in hipchat_rooms
|
|
34
|
-
queue %[curl -X POST https://api.hipchat.com/v1/rooms/message -d "auth_token=#{hipchat_auth_token}&room_id=#{room}&from=#{hipchat_from}&message=#{message}&color=#{hipchat_color}" --silent > /dev/null]
|
|
34
|
+
queue %[curl -X POST https://api.hipchat.com/v1/rooms/message -d "auth_token=#{hipchat_auth_token}&room_id=#{room}&from=#{hipchat_from}&message=#{message}&color=#{hipchat_color[:started]}" --silent > /dev/null]
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -42,7 +42,7 @@ namespace :hipchat do
|
|
|
42
42
|
message = "#{hipchat_author} finished deploying #{application}. See it here: <a href='http://#{domain}'>http://#{domain}</a>"
|
|
43
43
|
|
|
44
44
|
for room in hipchat_rooms
|
|
45
|
-
queue %[curl -X POST https://api.hipchat.com/v1/rooms/message -d "auth_token=#{hipchat_auth_token}&room_id=#{room}&from=#{hipchat_from}&message=#{message}&color=#{hipchat_color}&type=html" --silent >/dev/null]
|
|
45
|
+
queue %[curl -X POST https://api.hipchat.com/v1/rooms/message -d "auth_token=#{hipchat_auth_token}&room_id=#{room}&from=#{hipchat_from}&message=#{message}&color=#{hipchat_color[:finished]}&type=html" --silent >/dev/null]
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
data/lib/mina_hipchat/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mina_hipchat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Bajur
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mina
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - '>='
|
|
17
|
+
- - ! '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - '>='
|
|
24
|
+
- - ! '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
description: Adds tasks to aid in the hipchat notifications
|
|
@@ -50,12 +50,12 @@ require_paths:
|
|
|
50
50
|
- lib
|
|
51
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- - '>='
|
|
53
|
+
- - ! '>='
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
|
-
- - '>='
|
|
58
|
+
- - ! '>='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
61
|
requirements: []
|
|
@@ -65,3 +65,4 @@ signing_key:
|
|
|
65
65
|
specification_version: 4
|
|
66
66
|
summary: Mina bindings for HipChat
|
|
67
67
|
test_files: []
|
|
68
|
+
has_rdoc:
|