sensu-plugins-flowdock 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4637d3d518f5b4a7279320fe24401333af4460b7
4
- data.tar.gz: b2519c91eec3e65e64d2fa992a36062c3f4bc6a9
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Mzk0NjBiZjU2OWIxNWFiNzhjYjVlNWZkNmI2YjlhYTE2MmU5MGYxMw==
5
+ data.tar.gz: !binary |-
6
+ MWJlZTgzNjE2MGNkYWJlYTA5MmMyYTk0NDNkYTM1ZGZiMjA4YmI5YQ==
5
7
  SHA512:
6
- metadata.gz: 3491b875eddcb93630a5f1166c6f145d0e4a77fe5daa2f26f98f78f809251113b1fa5f88790b03c8aecc9706f5a9f92fbbb799e337b1d83ee1d1779a9f7cf67c
7
- data.tar.gz: 41fd5af972c9c3a1adc065eefa737465c56da3b6c38d631ef421c7d27a60160f5991cec5ba8022c95a2bb629038ce0017586b85d5864a9a2e5b1fddf4372e31d
8
+ metadata.gz: !binary |-
9
+ MzE3Y2IzOWNjNmY1ZjE5MTA4N2ExZGY5OWJhZTExMTlhMzRhODFiODA0MmJm
10
+ M2ZmZjc0ZmJmYjFiYWIyZmJiNTNjMzk3MDhmMjg1M2QxMGFlZGQzNDlhNzY3
11
+ YjQxNGQwMWNlOGM0YTFiOTY5OWE4M2Y5ZTQ1M2ExZjc3ZTkwYzk=
12
+ data.tar.gz: !binary |-
13
+ NzFhN2Q1ODkyY2FlYmM1MThkMDJlZmE3YTRiNWE1MWI4MTE0YWI5OGI4ZWE5
14
+ Y2ZiMWMwNTdhNWRmOTRiMWQ2ZGFmYmRiZmUwM2M5MjhkZTkyNmYwYzE4N2E5
15
+ ZjE0MDg3NzEzZmIzMTE0NDU3MTU2ODc1ODBkNjAzMmJiZDZmYmQ=
data/CHANGELOG.md CHANGED
@@ -3,7 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased][unreleased]
6
+ ## [Unreleased]
7
+
8
+ ## [0.1.1] - 2016-08-18
9
+ ### Changed
10
+ - Updated sensu-plugin dependency from `= 1.2.0` to `~> 1.2.0`
7
11
 
8
12
  ## [0.1.0] - 2015-10-14
9
13
  ### Added
@@ -18,6 +22,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
18
22
  - updated sensu-plugin gem to 1.2.0
19
23
 
20
24
  ## 0.0.1 - 2015-06-04
21
-
22
25
  ### Added
23
26
  - initial release
27
+
28
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-flowdock/compare/0.1.1...HEAD
29
+ [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-flowdock/compare/0.1.0...0.1.1
30
+ [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-flowdock/compare/0.0.2...0.1.0
31
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-flowdock/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-flowdock/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-flowdock)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-flowdock.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-flowdock)
8
8
  "!https://codeship.com/projects/69409d80-ea31-0132-13b2-32dfa18a9fce/status?branch=master!":https://codeship.com/projects/83073
9
- [ ![Codeship Status for sensu-plugins/sensu-plugins-flowdock](https://codeship.com/projects/69409d80-ea31-0132-13b2-32dfa18a9fce/status?branch=master)](https://codeship.com/projects/83073)
10
9
 
11
10
  ## Functionality
12
11
 
@@ -65,20 +65,20 @@ class FlowdockNotifier < Sensu::Handler
65
65
  json_config = config[:json_config] || 'flowdock'
66
66
  token = settings[json_config]['auth_token']
67
67
  data = "Host: #{@event['client']['name']} Check: #{@event['check']['name']} - #{@event['check']['output']}"
68
- tags = build_tags_list
68
+ tags = build_tags_list
69
69
  name_from = settings[json_config]['name_from'] || 'Sensu'
70
70
 
71
71
  push_type = settings[json_config]['push_type'] || 'chat'
72
72
  if push_type.eql? 'chat'
73
- flow = Flowdock::Flow.new(api_token: token, external_user_name: name_from)
73
+ flow = Flowdock::Flow.new(api_token: token, external_user_name: name_from)
74
74
  flow.push_to_chat(content: data, tags: tags)
75
75
  elsif push_type.eql? 'inbox'
76
76
  mail_from = settings[json_config]['mail_from'] || 'alerting@sensu.com'
77
- if @event['check']['notification'].nil?
78
- subject_from = "#{action_to_string} - #{short_name}: #{status_to_string}"
79
- else
80
- subject_from = "#{action_to_string} - #{short_name}: #{@event['check']['notification']}"
81
- end
77
+ subject_from = if @event['check']['notification'].nil?
78
+ "#{action_to_string} - #{short_name}: #{status_to_string}"
79
+ else
80
+ "#{action_to_string} - #{short_name}: #{@event['check']['notification']}"
81
+ end
82
82
  flow = Flowdock::Flow.new(api_token: token, source: name_from, from: { name: name_from, address: mail_from })
83
83
  flow.push_to_team_inbox(subject: subject_from, content: data, tags: tags)
84
84
  end
@@ -2,7 +2,7 @@ module SensuPluginsFlowdock
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-flowdock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQ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AVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-10-14 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-08-19 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: flowdock
@@ -50,144 +28,144 @@ dependencies:
50
28
  name: sensu-plugin
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - '='
31
+ - - ~>
54
32
  - !ruby/object:Gem::Version
55
- version: 1.2.0
33
+ version: '1.2'
56
34
  type: :runtime
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
- - - '='
38
+ - - ~>
61
39
  - !ruby/object:Gem::Version
62
- version: 1.2.0
40
+ version: '1.2'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: bundler
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
- - - "~>"
45
+ - - ~>
68
46
  - !ruby/object:Gem::Version
69
47
  version: '1.7'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
- - - "~>"
52
+ - - ~>
75
53
  - !ruby/object:Gem::Version
76
54
  version: '1.7'
77
55
  - !ruby/object:Gem::Dependency
78
56
  name: codeclimate-test-reporter
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ~>
82
60
  - !ruby/object:Gem::Version
83
61
  version: '0.4'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ~>
89
67
  - !ruby/object:Gem::Version
90
68
  version: '0.4'
91
69
  - !ruby/object:Gem::Dependency
92
70
  name: github-markup
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
- - - "~>"
73
+ - - ~>
96
74
  - !ruby/object:Gem::Version
97
75
  version: '1.3'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
- - - "~>"
80
+ - - ~>
103
81
  - !ruby/object:Gem::Version
104
82
  version: '1.3'
105
83
  - !ruby/object:Gem::Dependency
106
84
  name: pry
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
- - - "~>"
87
+ - - ~>
110
88
  - !ruby/object:Gem::Version
111
89
  version: '0.10'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
- - - "~>"
94
+ - - ~>
117
95
  - !ruby/object:Gem::Version
118
96
  version: '0.10'
119
97
  - !ruby/object:Gem::Dependency
120
98
  name: rake
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
- - - "~>"
101
+ - - ~>
124
102
  - !ruby/object:Gem::Version
125
103
  version: '10.0'
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
- - - "~>"
108
+ - - ~>
131
109
  - !ruby/object:Gem::Version
132
110
  version: '10.0'
133
111
  - !ruby/object:Gem::Dependency
134
112
  name: redcarpet
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
- - - "~>"
115
+ - - ~>
138
116
  - !ruby/object:Gem::Version
139
117
  version: '3.2'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
- - - "~>"
122
+ - - ~>
145
123
  - !ruby/object:Gem::Version
146
124
  version: '3.2'
147
125
  - !ruby/object:Gem::Dependency
148
126
  name: rspec
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
- - - "~>"
129
+ - - ~>
152
130
  - !ruby/object:Gem::Version
153
131
  version: '3.1'
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
- - - "~>"
136
+ - - ~>
159
137
  - !ruby/object:Gem::Version
160
138
  version: '3.1'
161
139
  - !ruby/object:Gem::Dependency
162
140
  name: rubocop
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - '='
143
+ - - ~>
166
144
  - !ruby/object:Gem::Version
167
- version: 0.32.1
145
+ version: 0.40.0
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
- - - '='
150
+ - - ~>
173
151
  - !ruby/object:Gem::Version
174
- version: 0.32.1
152
+ version: 0.40.0
175
153
  - !ruby/object:Gem::Dependency
176
154
  name: yard
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
- - - "~>"
157
+ - - ~>
180
158
  - !ruby/object:Gem::Version
181
159
  version: '0.8'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
- - - "~>"
164
+ - - ~>
187
165
  - !ruby/object:Gem::Version
188
166
  version: '0.8'
189
167
  description: Sensu flowdock plugins
190
- email: "<sensu-users@googlegroups.com>"
168
+ email: <sensu-users@googlegroups.com>
191
169
  executables:
192
170
  - handler-flowdock.rb
193
171
  extensions: []
@@ -215,17 +193,17 @@ require_paths:
215
193
  - lib
216
194
  required_ruby_version: !ruby/object:Gem::Requirement
217
195
  requirements:
218
- - - ">="
196
+ - - ! '>='
219
197
  - !ruby/object:Gem::Version
220
198
  version: 1.9.3
221
199
  required_rubygems_version: !ruby/object:Gem::Requirement
222
200
  requirements:
223
- - - ">="
201
+ - - ! '>='
224
202
  - !ruby/object:Gem::Version
225
203
  version: '0'
226
204
  requirements: []
227
205
  rubyforge_project:
228
- rubygems_version: 2.4.8
206
+ rubygems_version: 2.4.5
229
207
  signing_key:
230
208
  specification_version: 4
231
209
  summary: Sensu plugins for flowdock
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
- #!� ;�H��� B�N�+ ۧB��ОQƉB��� �v�U�%B!\/�/��Iz.f,�0����#��~1��掍=.x������84��~�A88C��:
metadata.gz.sig DELETED
Binary file