Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

VERSION bumps.

  • Loading branch information...
commit 338a72a2574a5cc4224e8dff728d910147bd870d 1 parent 123b62f
Daniel Berger authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/net/ping/ping.rb
  2. +1 −1  test/test_net_ping.rb
View
10 lib/net/ping/ping.rb
@@ -4,13 +4,13 @@
# The Net module serves as a namespace only.
#
module Net
-
+
# The Ping class serves as an abstract base class for all other Ping class
# types. You should not instantiate this class directly.
#
class Ping
# The version of the net-ping library.
- VERSION = '1.3.7'
+ VERSION = '1.4.0'
# The host to ping. In the case of Ping::HTTP, this is the URI.
attr_accessor :host
@@ -44,7 +44,7 @@ class Ping
# The default constructor for the Net::Ping class. Accepts an optional
# +host+, +port+ and +timeout+. The port defaults to your echo port, or
# 7 if that happens to be undefined. The default timeout is 5 seconds.
- #
+ #
# The host, although optional in the constructor, must be specified at
# some point before the Net::Ping#ping method is called, or else an
# ArgumentError will be raised.
@@ -64,7 +64,7 @@ def initialize(host=nil, port=nil, timeout=5)
yield self if block_given?
end
-
+
# The default interface for the Net::Ping#ping method. Each subclass
# should call super() before continuing with their own implementation in
# order to ensure that the @exception and @warning instance variables
@@ -81,7 +81,7 @@ def ping(host = @host)
@exception = nil
@warning = nil
end
-
+
alias ping? ping
alias pingecho ping
end
View
2  test/test_net_ping.rb
@@ -21,6 +21,6 @@
class TC_Net_Ping < Test::Unit::TestCase
def test_net_ping_version
- assert_equal('1.3.7', Net::Ping::VERSION)
+ assert_equal('1.4.0', Net::Ping::VERSION)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.