mina_hipchat 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: af438aae5661fa115621730dd76a47762349e308
4
- data.tar.gz: a373c2e6aa6a128e83406af245099a65fa25bf3a
5
- SHA512:
6
- metadata.gz: 4b0c1683df13aa4e577fdf3433c48108df504e7054fe795eea8189375554f78f4cf48842b1951858db7fe94494c8c58431e530fc3331e6548d9477edebeb2e32
7
- data.tar.gz: eb8f030f447de74b4386ca5eb51cc1b0cb07910b7a19fdb2c3630522256a05e9b48cc2566c65dbc4489087098c22577169796982b9acd9885d40273ed0f7621d
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mina_hipchat (0.0.2)
4
+ mina_hipchat (0.0.3)
5
5
  mina
6
6
 
7
7
  GEM
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
- | *hipchat_color* | Sets the notification color. |
44
+ | *hipchat_colors* | Sets the notification colors. |
45
45
 
46
46
  __* required options__
47
47
 
@@ -15,7 +15,7 @@ set_default :hipchat_from, 'Deploy'
15
15
 
16
16
  # ### hipchat_color
17
17
  # Sets the notification color
18
- set_default :hipchat_color, ''
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
 
@@ -1,3 +1,3 @@
1
1
  module MinaHipchat
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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 00:00:00.000000000 Z
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: