rping 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/rping +2 -0
  2. data/lib/rping.rb +3 -0
  3. metadata +3 -3
data/bin/rping CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
+ Version = '0.1.3'
5
+
4
6
  require 'rubygems'
5
7
  require 'lib/rping'
6
8
  require 'optparse'
@@ -68,6 +68,7 @@ class RPing
68
68
  Thread.start do
69
69
  @count.times do
70
70
  reply = ping_recv0(sock)
71
+ redo if reply == :redo
71
72
  yield(reply) if block
72
73
  buf << reply if buf
73
74
  end
@@ -94,6 +95,8 @@ class RPing
94
95
  :seq => icmp[4],
95
96
  :time => (recv_time - icmp[5]) * 1000,
96
97
  }
98
+ else
99
+ reply = :redo
97
100
  end
98
101
  end
99
102
  rescue Timeout::Error
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rping
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel