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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 004d4b56bb26781381bb8042280fe2efdcfec827
4
- data.tar.gz: e8646ef5ec31d6a8f4769c8a855d32ec63af261e
3
+ metadata.gz: a076583ac9843df4a79672f0efb27a3e54855dc7
4
+ data.tar.gz: 286a673b9d8f4413a4ef5d5d0b5d3dc933f39859
5
5
  SHA512:
6
- metadata.gz: 269929c7b83d39802fb6e01754f6e83b8ba3f9c1d15f8819099e28da9c1a5a420f3701a7c914bfa4a162822ea91614c9bd9717c92174b445b2ee01ad8a70826b
7
- data.tar.gz: df3ff14dc5f4e9dc5864d5a09260957a764fef1adcc66a38a1b6084284450258317c005e15065fd8188a130d5cb7e01ec3e07d5da817f1728ddc75f321a62dee
6
+ metadata.gz: abd43e5029fc567c3b2168c0280e46e71a138f4f8c68aab21cdbb09b33b95fceec7b67263f4a4443685ebd85337f1f21d0a8f7364489829d1c152cebc4d58ddd
7
+ data.tar.gz: 8b53a6201400e0e6362f7f63ffc9efacdbd082a4e8e39390e0a6f39ce83c5513c7e4967be22e2065f91dad15c42a8a469a18b3f87dfa0f4a66849e9df73dceb4
@@ -1,7 +1,5 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.8.7
5
- - 1.9.2
6
4
  - 1.9.3
7
5
  - 2.0.0
@@ -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)
@@ -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.add_dependency "httparty", "~> 0.11.0"
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"
@@ -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, excluded_envs=[], notify_users=false, report_success=false)
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"
@@ -1,3 +1,3 @@
1
1
  module HipChat
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
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.13.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-20 00:00:00.000000000 Z
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.11.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.11.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: '0'
148
+ version: 1.9.3
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="