password_expiration_notifier 0.1.1 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: 141290380f4400fd8061fb82741ef268f927e668
4
- data.tar.gz: 6f921b22555fe1359a4e120351c53a4345bb7300
3
+ metadata.gz: 8bbc69d4ad9d1841b67a223b76fb3230e34d4567
4
+ data.tar.gz: e63599a86231886c50ac1b549d494d05f816efa2
5
5
  SHA512:
6
- metadata.gz: d6d3c2b1dce047e9a00c69c99104ecff85236f7c5141c56049aee34512e96bcaebd6750c1f0bc71e9305981a3432bdfa5db9282829fcd3c72decebef1bb7be14
7
- data.tar.gz: 43c43ce6ec474a17be9f65f044a34111da1ba7492e20b0036b43a9a0890015f2f39ffad3aeacaa21ba199a4f7550e74f0c2222f8ebebf53f64dbeae01b5af72d
6
+ metadata.gz: e03677ef31eb40e70e712108eb4c2e05dc2b828cf8085ac0c7034a686a14b01112cf30955344c93999ca4e585a8ad67bc61a1091b2489344947dcda361d94c98
7
+ data.tar.gz: b0aeda1f63f57f181219740b5ff8be716e3590074803fb22da8f9f5cb0409188436d7cfe3f8ca6d6e280ff9905e18cd9d4a9ac962a3a81bbd910df7331ebbd67
@@ -18,7 +18,11 @@ module PasswordExpirationNotifier
18
18
  )
19
19
  message = "Your domain account #{attr[:samaccountname]}'s password expire at #{attr[:expire_at]}. Please update your password."
20
20
  unless @conf.dry_run
21
- client.notify(message)
21
+ begin
22
+ client.notify(message)
23
+ rescue SlackNotify::Error => e
24
+ return "SlackNotify::Error: #{message} #{e}"
25
+ end
22
26
  end
23
27
  return message
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module PasswordExpirationNotifier
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_expiration_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ISOBE Kazuhiko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.4.5
140
+ rubygems_version: 2.5.1
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Notify the password expiration date of the Active Directory account