net-ping 1.7.0-universal-mingw32 → 1.7.1-universal-mingw32

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
- NmM3YTQyZGEwZDc5Nzg0MzY5MTUzZjY0ZTE5NTQyZTJhMDEzYzExMQ==
4
+ YjY2MWI5ZjlmNDZmMGM5MDVlYTg2ZGQ2NWY5Y2FmMjQyY2M2NjVjNQ==
5
5
  data.tar.gz: !binary |-
6
- Mjg1MGNmNzdiYmQ2M2QyZTQ0NzZmMjljNWYxMzQyY2Q4ODMwNzEzMA==
6
+ ODVjZTkzNzc5MDAxZDUyMDU3N2IyY2QxNTJkMjE4ZjAxNjQzNzYwYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmM3MTNjZWYwY2VmMjc1M2I5MGFmNGI0M2RlYWZiNTM2N2QzYjc2ZGE4YWU1
10
- ZDQ5MGY0ZjZlOTk4MDUxNmY5ZDc0OWUyOWNkNGJlZTVlMmI1YWJjYTYzNTg2
11
- ZTI3ZmJkMWMyMmYyZjllMWU1MTEwMTM4MDY3YTY1NDc2MGU1N2Q=
9
+ OTc5MmFjMzM5NGE1MWZmMTVhNjBiZDdlZjBiY2Q3YTEzZTdhM2E4NjEyMTI3
10
+ YTcxNDQ1ZDU5YjFhYTg2N2Q4OGM2ZmUzMzg2MjNkNTYyZDQ5ZDI0NzU2Mjlk
11
+ YzJiNjUzNTQ5ZmM1Y2ZkMzYyMDY0YTIzN2EzYzZlOTIzYTg2NTY=
12
12
  data.tar.gz: !binary |-
13
- NDViZTU1NTRiM2E5NDE3NzM5NWZmZWVkNTgyMGQ0OTJiOTg1YWQyODg5OTQz
14
- YzZiZGFlODk0NDg2MDM1Njc0YWVhMjUzNjA2MTRiYjdjMGMzYjhiM2ZjZTdm
15
- MjNiY2I3YzI4YzUzOThhOTBiMGI4MGFjMjU3OGI4YzQyYmUwZGE=
13
+ YjRkNzBhN2I4NjUyYjJhZWZlNjY0NDhhNGJlN2E3NTQ4NjFkZTkwMWE0MjBk
14
+ ODZmZDZhMDBkYzQzYTNlMzAzNWY3NTEwYmQyNWE0MWZlZjZhZjI0YjkzZjI4
15
+ YjYyYWRhOTFiODA4YTdhMzg2MDkzZWEyZjYyNWFkMDljNmMyMjI=
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: universal-mingw32
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