net-ping 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTJmYTMzNzE5ZjJkYTIwYjk4NWI2YTZhNGIxZmJkNDU0NjEzZmQwZA==
4
+ ZmM3MmZjM2MxZTQ4ZWRkMGRjNzFjZDg1NmUyOTYwOTRiM2EzNzA2Yg==
5
5
  data.tar.gz: !binary |-
6
- NDk5MzhkOWIwZDI2MDU5MmZiOWIxYjljZGFmNDcxZWQxMTIzOTczMw==
6
+ ZmNjYTNiMzY4MDAxZTU1ZGZjMzY5MmQwMjJlNzk3YjI0MDViNGRiMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZmMxMDk1OGEwYjdhNWY0NzhlOTE3Yzc4YjAyNTIzYWQxYmU3ZDJiN2RkZWNh
10
- MzAwNGZmMTYwMWNlNmVmOTk1ZjQzOTI4Mjk1M2VjMmIwZDFkYjk5MmNkNTk1
11
- MjI4NGVkMjU2YzZlMDYxYTE0NGRjOGE0ZjJjYTZkZTk2ZWRhYjg=
9
+ MTg3NWJmNTk5OGUzZGUxNzYxN2YzYzhjNWIwN2UxNzlhMzVkYTQ4YjdkMTgz
10
+ YjQxM2IxZGQxYjE4ODZmYzExMzRiNTBjNjczYTVhNDMxYzc1NjU0M2Y1NTNi
11
+ NzkxZmI3M2ExMWI4MzhjYTQ3YWQ1NzRhMGM1NDNkZmY1MDUzYjM=
12
12
  data.tar.gz: !binary |-
13
- YzFmZjVhYzhjZDQ5YjBhN2I0Yjg5NGM4ZDQ2ZWQyNWM2YWYyZWRiZDQ2ODUy
14
- OWNlOTAyYjUxOTBlZGVhMTIxNWI4MmFhN2ZlMTQ3NGZlYjhlMDQzOTJhNmE2
15
- NDRjNzBhOTJmZmU3ODM2MjRmZjBhODZiZTI3NTMwMjY1Y2QyYmM=
13
+ MzdmOTc4ODBhZTQzMzM0NTM3YmQ5MWI2NjkwNTI5YWEwMWViNTk2ZmVjMWFi
14
+ OTkzZjlhMTdhZWRlNGQ4ZWM3MGVjZjhlMjU4MTc3ZGRkMTA0OWJiOTMzYTY3
15
+ OWI3NTY2YzA5ZTExZGU4ZDNiYmNmMzMzMjg4NGYwNGRjOTM1NzE=
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.7.1 - 26-Sep-2013
2
+ * Fixed a bug in the Ping::TCP class where it could return nil instead
3
+ of false. Thanks go to Grandy Nguyen for the patch.
4
+
1
5
  == 1.7.0 - 25-Aug-2013
2
6
  * Now requires Ruby 1.9.x or later.
3
7
  * Replaced the main ping code for the Ping::TCP class. The timeout module
data/README CHANGED
@@ -45,6 +45,9 @@
45
45
  JRuby 1.6.7 or later is required for external pings because of a bug
46
46
  in earlier versions with open3 and stream handling.
47
47
 
48
+ ICMP pings are not thread safe. See https://www.ruby-forum.com/topic/146116.
49
+ Patches welcome.
50
+
48
51
  == License
49
52
  Artistic 2.0
50
53
 
data/lib/net/ping/ping.rb CHANGED
@@ -10,7 +10,7 @@ module Net
10
10
  #
11
11
  class Ping
12
12
  # The version of the net-ping library.
13
- VERSION = '1.7.0'
13
+ VERSION = '1.7.1'
14
14
 
15
15
  # The host to ping. In the case of Ping::HTTP, this is the URI.
16
16
  attr_accessor :host
data/lib/net/ping/tcp.rb CHANGED
@@ -45,8 +45,7 @@ module Net
45
45
  addr = Socket.getaddrinfo(host, port)
46
46
  rescue SocketError => err
47
47
  @exception = err
48
- bool = false
49
- return
48
+ return false
50
49
  end
51
50
 
52
51
  begin
data/net-ping.gemspec CHANGED
@@ -3,7 +3,7 @@ require 'rbconfig'
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'net-ping'
6
- spec.version = '1.7.0'
6
+ spec.version = '1.7.1'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.author = 'Daniel J. Berger'
9
9
  spec.email = 'djberg96@gmail.com'
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  class TC_Net_Ping < Test::Unit::TestCase
30
30
  def test_net_ping_version
31
- assert_equal('1.7.0', Net::Ping::VERSION)
31
+ assert_equal('1.7.1', Net::Ping::VERSION)
32
32
  end
33
33
  end
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ping
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-25 00:00:00.000000000 Z
11
+ date: 2013-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi