sensu-plugins-hipchat 2.0.0 → 2.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1a36fdf20c7dc8591eedde6e390e0476a94aaa66
4
- data.tar.gz: 8e434e57854a3640666d53e097a064177bd5eebd
2
+ SHA256:
3
+ metadata.gz: 81b7c4f902da14de1f906c43fd2fb43987f59995b1e8a322445ec1677c827adb
4
+ data.tar.gz: 1dd5c12ad4f0cb41b2da0990139ec2f1520ffa905c363393d5d4fa32283d309c
5
5
  SHA512:
6
- metadata.gz: 6bcca9dc7de74f4f9c1e77d89c6b430d3c8a0e7097ac483076302243443b4f5155b8a0fe6c9fd2fe9320dbc102897ba5d45575b1123fa8821d02f72c915d4424
7
- data.tar.gz: e7daf8b1d518fa5c8ce2ed95390dd184dff4458b94eca1e40e9f89da6b8b6ef2dff573f903283a1f1684b3ad4c4675ed44a5fd46cb24e4aff6c0fb2864139df0
6
+ metadata.gz: 4a6d72b19e12473632ead22b6ed72be4c33989343d6539e88e60a499421f89935ebfd3aedbc5702b8dfb921d27583decf31ab115b80cec61e24ef36d5c81b51b
7
+ data.tar.gz: 6ca121e0489545f34b937e687b39ee1daeb4b1862f722a81965542b06e03a3d8b302129d8c02ddba4dc90a8d1bb7cf147af69d61e272daa72b67db9dcdb5bf9d
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.1.0] - 2017-12-05
9
+ ### Changed
10
+ - Remove trailing whitespace in the default template
11
+
8
12
  ## [2.0.0] - 2017-07-24
9
13
  ### Breaking Changes
10
14
  - Minimum Ruby runtime version is now 2.0
@@ -42,7 +46,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
42
46
  ### Added
43
47
  - initial release
44
48
 
45
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/2.0.0...HEAD
49
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/2.1.0...HEAD
50
+ [2.1.0]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/2.0.0...2.1.0
46
51
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/1.0.0...2.0.0
47
52
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/0.0.4...1.0.0
48
53
  [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-hipchat/compare/0.0.3...0.0.4
data/README.md CHANGED
@@ -46,3 +46,24 @@
46
46
  ].join
47
47
  %>
48
48
  ```
49
+
50
+ ### How to test?
51
+
52
+ 1. Write a configuration file as explained in the *Usage* section
53
+ 1. Set the environment variable `SENSU_CONFIG_FILES` to the location of this file
54
+ 1. Pipe a sample check result into the handler itself:
55
+ ```
56
+ cat <<EOF | bundle exec bin/handler-hipchat.rb
57
+ {
58
+ "client": {
59
+ "name": "client"
60
+ },
61
+ "check": {
62
+ "status": 1,
63
+ "name": "name",
64
+ "source": "source",
65
+ "output": "Hello, warning"
66
+ }
67
+ }
68
+ EOF
69
+ ```
@@ -77,8 +77,7 @@ class HipChatNotif < Sensu::Handler
77
77
  playbook,
78
78
  "."
79
79
  ].join
80
- %>
81
- '''
80
+ %>'''
82
81
  end
83
82
  eruby = Erubis::Eruby.new(template)
84
83
  message = eruby.result(binding)
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsHipchat
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  version: '0'
218
218
  requirements: []
219
219
  rubyforge_project:
220
- rubygems_version: 2.4.5
220
+ rubygems_version: 2.7.3
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: Sensu plugins for hipchat