pingly 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/pingly.rb +6 -2
  2. metadata +1 -1
data/lib/pingly.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'open3'
2
2
 
3
3
  class Pingly
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
 
6
6
  attr_accessor :host, :timeout
7
7
 
@@ -63,7 +63,11 @@ class Pingly
63
63
  end
64
64
 
65
65
  def failed_response
66
- response_stderr.to_s
66
+ if response_stderr.to_s.strip.empty?
67
+ successful_response
68
+ else
69
+ response_stderr.to_s
70
+ end
67
71
  end
68
72
 
69
73
  def perform_ping
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: