net-ping 1.1.1 → 1.2.0

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.
data/test/ts_ping.rb CHANGED
@@ -1,3 +1,9 @@
1
+ ######################################################################
2
+ # ts_ping.rb
3
+ #
4
+ # Test suite for all the Ping subclasses. Note that the PingICMP
5
+ # class test won't be run unless this is run as a privileged process.
6
+ ######################################################################
1
7
  $LOAD_PATH.unshift(Dir.pwd)
2
8
  $LOAD_PATH.unshift(Dir.pwd + "/lib")
3
9
  $LOAD_PATH.unshift(Dir.pwd + "/test")
@@ -6,3 +12,7 @@ require "tc_pingexternal"
6
12
  require "tc_pinghttp"
7
13
  require "tc_pingtcp"
8
14
  require "tc_pingudp"
15
+
16
+ if Process.euid == 0
17
+ require "tc_pingicmp"
18
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: net-ping
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.1
7
- date: 2006-06-15 00:00:00 -06:00
8
- summary: A ping interface for Ruby
6
+ version: 1.2.0
7
+ date: 2006-12-08 00:00:00 -07:00
8
+ summary: A ping interface for Ruby.
9
9
  require_paths:
10
10
  - lib
11
11
  email: djberg96@gmail.com
12
12
  homepage: http://www.rubyforge.org/projects/shards
13
13
  rubyforge_project:
14
- description: A ping interface for Ruby
14
+ description: A ping interface for Ruby. Includes TCP, HTTP, ICMP, UDP, and External ping interfaces.
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -25,18 +25,27 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Daniel J. Berger
30
31
  files:
32
+ - lib/net/ping
31
33
  - lib/net/ping.rb
32
- - README
33
34
  - CHANGES
34
35
  - MANIFEST
36
+ - README
37
+ - test/tc_pingexternal.rb
38
+ - test/tc_pinghttp.rb
39
+ - test/tc_pingicmp.rb
35
40
  - test/tc_pingtcp.rb
36
41
  - test/tc_pingudp.rb
37
- - test/tc_pingexternal.rb
38
42
  - test/ts_ping.rb
39
- - test/tc_pinghttp.rb
43
+ - lib/net/ping/external.rb
44
+ - lib/net/ping/http.rb
45
+ - lib/net/ping/icmp.rb
46
+ - lib/net/ping/ping.rb
47
+ - lib/net/ping/tcp.rb
48
+ - lib/net/ping/udp.rb
40
49
  - doc/ping.txt
41
50
  test_files:
42
51
  - test/ts_ping.rb