sensu-plugins-microsoft-teams 1.3.0 → 1.3.1

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: 0ab45f2a28c9a75185abf0208637be2890eb52e6
4
- data.tar.gz: 9a143736dba545d7228004f4106dde9aadd5787b
2
+ SHA256:
3
+ metadata.gz: e4c10bea07f3b57632bc6b8e965c04e2fe5502708d1c6aeb452e454eb3de6949
4
+ data.tar.gz: 4f490e4151df076c14efc7d674adfb0888a2f642854b8cc5b689b4b370b4b9c5
5
5
  SHA512:
6
- metadata.gz: 68962ca5a58f397c253b1e734b366e01093971ec2cbe40256f170678848ae321703211897b08365d716a8198f9f778d4502bc26713c8bc30c6fb02da6ffdff52
7
- data.tar.gz: 0e4a973c877c0fc4510130c51be30a24ca58b37a32aa26eeafc5c0d933b946a9564a38ca0ddd31c7b92be1a006f39de1e7389e527b1ade121276da8aa48a41c8
6
+ metadata.gz: 713db5cb125523b0c04f4bb4473922d4090ea24ef5e5b01f8517904dadac7bf44c1f834588251a2dcd9cdb43244b8daaa1e24abd87cecd5567b86be3025310d2
7
+ data.tar.gz: 6960388550243468ddd162b613970fd7444d462e2ae80bf2638713c46d7c027dbd5a552ca0b63de58bf5347da80abdf3a1f22378d8f86b93edb5897194594bf5
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.3.1] - 2018-09-12
9
+ ### Fixed
10
+ - Add erubis gem as a startup dependency (@asachs01)
11
+
12
+ ### Changed
13
+ - Updated CONTRIBUTING.md to point to new docs site (@asachs01)
14
+ - Updated README with better installation instructions (@asachs01)
15
+
8
16
  ## [1.3.0] - 2017-10-10
9
17
  ### Added
10
18
  - gitignore (@majormoses)
@@ -62,7 +70,8 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
62
70
  - updated references of `skel` to `microsoft-teams` (@tuxpower)
63
71
 
64
72
 
65
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.2...HEAD
73
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/1.3.1...HEAD
74
+ [1.3.1]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/1.3.0...1.3.1
66
75
  [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.2...1.3.0
67
76
  [1.2.2]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.1...v1.2.2
68
77
  [1.2.1]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.0...v1.2.1
data/README.md CHANGED
@@ -53,7 +53,9 @@
53
53
  ```
54
54
  ## Installation
55
55
 
56
- [Installation and Setup](https://sensu-plugins.io/docs/installation_instructions.html)
56
+ [Installation and Setup](https://docs.sensu.io/plugins/latest/installation/)
57
+
58
+ To install the plugin, run `sensu-install -p microsoft-teams`.
57
59
 
58
60
  ## Notes
59
61
  [Actionable message card reference](https://docs.microsoft.com/en-us/outlook/actionable-messages/card-reference)
@@ -114,6 +114,7 @@ class MicrosoftTeams < Sensu::Handler
114
114
 
115
115
  def render_payload_template(channel)
116
116
  return unless payload_template && File.readable?(payload_template)
117
+
117
118
  template = File.read(payload_template)
118
119
  eruby = Erubis::Eruby.new(template)
119
120
  eruby.result(binding)
@@ -172,12 +173,12 @@ class MicrosoftTeams < Sensu::Handler
172
173
  themeColor: color,
173
174
  text: "#{@event['client']['address']} - #{translate_status}",
174
175
  sections: [{
175
- activityImage: teams_icon_url ? teams_icon_url : 'https://raw.githubusercontent.com/sensu/sensu-logo/master/sensu1_flat%20white%20bg_png.png',
176
+ activityImage: teams_icon_url || 'https://raw.githubusercontent.com/sensu/sensu-logo/master/sensu1_flat%20white%20bg_png.png',
176
177
  text: [teams_message_prefix, notice].compact.join(' ')
177
178
  }],
178
179
  potentialAction: [{
179
- '@type' => teams_action_type ? teams_action_type : 'OpenUri',
180
- name: teams_action_name ? teams_action_name : 'View in Sensu',
180
+ '@type' => teams_action_type || 'OpenUri',
181
+ name: teams_action_name || 'View in Sensu',
181
182
  targets: [{
182
183
  os: 'default',
183
184
  uri: incident_key.to_s
@@ -2,7 +2,7 @@ module SensuPluginsMicrosoftTeams
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-microsoft-teams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
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-10-12 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: erubis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.7'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: sensu-plugin
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -95,33 +109,33 @@ dependencies:
95
109
  - !ruby/object:Gem::Version
96
110
  version: '3.2'
97
111
  - !ruby/object:Gem::Dependency
98
- name: rubocop
112
+ name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 0.49.0
117
+ version: '3.4'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 0.49.0
124
+ version: '3.4'
111
125
  - !ruby/object:Gem::Dependency
112
- name: rspec
126
+ name: rubocop
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '3.4'
131
+ version: 0.49.0
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '3.4'
138
+ version: 0.49.0
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: yard
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
189
  version: '0'
176
190
  requirements: []
177
191
  rubyforge_project:
178
- rubygems_version: 2.6.14
192
+ rubygems_version: 2.7.7
179
193
  signing_key:
180
194
  specification_version: 4
181
195
  summary: Sensu plugins for interfacing with Microsoft Teams