sensu-plugins-network-checks 2.0.0 → 2.0.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
2
  SHA1:
3
- metadata.gz: fb9c4cca4ac8c2a49aee38ff7234bfeecd250da3
4
- data.tar.gz: 181ece8d4bd6fc1e4a6ca2db519d677fbdc5a354
3
+ metadata.gz: dcedf8607fbba290f22e780873fa0524ce581264
4
+ data.tar.gz: 7c1642dfc2887bec9f851a00a14be87f030ddf8a
5
5
  SHA512:
6
- metadata.gz: 2b615fe6b20ab30e2fb4eb5095daca6b353d9dcc900b80334a37602688176802318ff3c9dbe468362c21259c3fbbda5e584e89ca12ce60e9b682abbf8b2da16e
7
- data.tar.gz: effac84af4bf80910a965c7aa0ba891a726d9ab2c8fbafef87212739ee0c57512ce0f4334684b37277ee8e837936b9e36a18b30316b45d81172b73a3bec6ebae
6
+ metadata.gz: 4e227e924fbfe78d49d255e7b0b6c23fb0ab4db0c9e0a343d07e0e969955033b652fe60925ba15e453aeaa0e283302ea4c466f57e562f4f4ee1d02a7f3f3584f
7
+ data.tar.gz: cbc3b1b0dc43eba5035885e845931da54f0d1a36976f8afdf6246f75d8976a1d3bd7a108f302c8606f1bd3ce815915782b7da4966d08498583d6716329afe304
@@ -1,10 +1,18 @@
1
- #Change Log
1
+ # Change Log
2
2
  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
6
  ## [Unreleased]
7
7
 
8
+ ## [2.0.1] - 2017-08-01
9
+ ### Added
10
+ - ruby 2.4 testing to travis (@majormoses)
11
+
12
+ ### Fixed
13
+ - misc changelog na PR template fixes (@majormoses)
14
+ - check-whois-domain-expiration.rb: "Check failed to run: invalid date" caused by a change to the whois gem which removed the parser from the main repository (issue #59) (@akatch)
15
+
8
16
  ## [2.0.0] 2017-06-07
9
17
  ### Breaking Changes
10
18
  - check-multicast-groups.rb: Stop loading system wide settings from `settings['check-multicast-groups']` and use only the config specified as `-c` (#57 via @maoe)
@@ -171,7 +179,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
171
179
 
172
180
  * initial release, same as community repo
173
181
 
174
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.0.0...HEAD
182
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.0.1...HEAD
183
+ [2.0.1]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.0.0...2.0.1
175
184
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/1.2.0...2.0.0
176
185
  [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/1.1.0...1.2.0
177
186
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/1.0.0...1.1.0
@@ -29,6 +29,7 @@
29
29
 
30
30
  require 'sensu-plugin/check/cli'
31
31
  require 'whois'
32
+ require 'whois-parser'
32
33
 
33
34
  #
34
35
  # Check Whois domain expiration
@@ -86,7 +87,7 @@ class WhoisDomainExpirationCheck < Sensu::Plugin::Check::CLI
86
87
  whois = Whois::Client.new(timeout: config[:timeout])
87
88
  begin
88
89
  tries ||= 0
89
- whois_result = whois.lookup(domain)
90
+ whois_result = whois.lookup(domain).parser
90
91
  rescue Timeout::Error, Errno::ECONNRESET, Whois::ConnectionError
91
92
  tries += 1
92
93
  tries < max_retries ? retry : next
@@ -27,6 +27,7 @@
27
27
 
28
28
  require 'sensu-plugin/check/cli'
29
29
  require 'whois'
30
+ require 'whois-parser'
30
31
 
31
32
  #
32
33
  # Check Whois domain expiration
@@ -74,7 +75,7 @@ class WhoisDomainExpirationCheck < Sensu::Plugin::Check::CLI
74
75
  def initialize
75
76
  super()
76
77
  whois = Whois.whois(config[:domain])
77
- @expires_on = DateTime.parse(whois.expires_on.to_s)
78
+ @expires_on = DateTime.parse(whois.parser.expires_on.to_s)
78
79
  @num_days = (@expires_on - DateTime.now).to_i
79
80
  end
80
81
 
@@ -2,7 +2,7 @@ module SensuPluginsNetworkChecks
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-network-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.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-06-08 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dnsbl-client
@@ -54,18 +54,32 @@ dependencies:
54
54
  version: 1.7.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: whois
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: whois-parser
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - '='
60
74
  - !ruby/object:Gem::Version
61
- version: 3.6.3
75
+ version: 1.0.0
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - '='
67
81
  - !ruby/object:Gem::Version
68
- version: 3.6.3
82
+ version: 1.0.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: activesupport
71
85
  requirement: !ruby/object:Gem::Requirement