nagiosharder 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/nagiosharder.rb +1 -2
- data/nagiosharder.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "nagiosharder"
|
8
|
-
gem.version = "0.2.
|
8
|
+
gem.version = "0.2.3"
|
9
9
|
gem.summary = %Q{Nagios access at your ruby fingertips}
|
10
10
|
gem.description = %Q{Nagios access at your ruby fingertips}
|
11
11
|
gem.email = "josh@technicalpickles.com"
|
data/lib/nagiosharder.rb
CHANGED
@@ -325,8 +325,7 @@ class NagiosHarder
|
|
325
325
|
|
326
326
|
status = columns[2].inner_html if columns[2]
|
327
327
|
last_check = if columns[3]
|
328
|
-
|
329
|
-
DateTime.strptime(columns[3].inner_html, nagios_time_format).to_time rescue breakpoint # nyoo
|
328
|
+
DateTime.strptime(columns[3].inner_html, nagios_time_format).to_time
|
330
329
|
end
|
331
330
|
duration = columns[4].inner_html.squeeze(' ').gsub(/^ /, '') if columns[4]
|
332
331
|
started_at = if duration && match_data = duration.match(/^\s*(\d+)d\s+(\d+)h\s+(\d+)m\s+(\d+)s\s*$/)
|
data/nagiosharder.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nagiosharder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Nichols
|