hipchat 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.textile +4 -0
- data/hipchat.gemspec +3 -1
- data/lib/hipchat/chef.rb +3 -3
- data/lib/hipchat/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a076583ac9843df4a79672f0efb27a3e54855dc7
|
4
|
+
data.tar.gz: 286a673b9d8f4413a4ef5d5d0b5d3dc933f39859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd43e5029fc567c3b2168c0280e46e71a138f4f8c68aab21cdbb09b33b95fceec7b67263f4a4443685ebd85337f1f21d0a8f7364489829d1c152cebc4d58ddd
|
7
|
+
data.tar.gz: 8b53a6201400e0e6362f7f63ffc9efacdbd082a4e8e39390e0a6f39ce83c5513c7e4967be22e2065f91dad15c42a8a469a18b3f87dfa0f4a66849e9df73dceb4
|
data/.travis.yml
CHANGED
data/README.textile
CHANGED
@@ -6,6 +6,10 @@ h2. Build Status
|
|
6
6
|
|
7
7
|
"!https://travis-ci.org/hipchat/hipchat-rb.png!":https://travis-ci.org/hipchat/hipchat-rb
|
8
8
|
|
9
|
+
h2. Requirements
|
10
|
+
* Ruby 1.9.3 or higher
|
11
|
+
* HipChat Account, signed up "here!":https://hipchat.com/
|
12
|
+
|
9
13
|
h2. Usage
|
10
14
|
|
11
15
|
bc.. client = HipChat::Client.new(api_token)
|
data/hipchat.gemspec
CHANGED
@@ -18,8 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
21
|
+
spec.required_ruby_version = '>= 1.9.3'
|
22
22
|
|
23
|
+
spec.add_dependency "httparty"
|
24
|
+
|
23
25
|
spec.add_development_dependency "rspec"
|
24
26
|
spec.add_development_dependency "rr"
|
25
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/hipchat/chef.rb
CHANGED
@@ -15,16 +15,16 @@ require 'hipchat'
|
|
15
15
|
module HipChat
|
16
16
|
class NotifyRoom < Chef::Handler
|
17
17
|
|
18
|
-
def initialize(api_token, room_name,
|
18
|
+
def initialize(api_token, room_name, notify_users=false, report_success=false, excluded_envs=[])
|
19
19
|
@api_token = api_token
|
20
20
|
@room_name = room_name
|
21
|
-
@excluded_envs = excluded_envs
|
22
21
|
@notify_users = notify_users
|
23
22
|
@report_success = report_success
|
23
|
+
@excluded_envs = excluded_envs
|
24
24
|
end
|
25
25
|
|
26
26
|
def report
|
27
|
-
unless excluded_envs.include?(node.chef_environment)
|
27
|
+
unless @excluded_envs.include?(node.chef_environment)
|
28
28
|
msg = if run_status.failed? then "Failure on \"#{node.name}\" (\"#{node.chef_environment}\" env): #{run_status.formatted_exception}"
|
29
29
|
elsif run_status.success? && @report_success
|
30
30
|
"Chef run on \"#{node.name}\" completed in #{run_status.elapsed_time.round(2)} seconds"
|
data/lib/hipchat/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HipChat/Atlassian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
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
|
-
version: 0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
requirements:
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
148
|
+
version: 1.9.3
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - ">="
|