Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/net/ping/ping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ module Net
# types. You should not instantiate this class directly.
#
class Ping
# The version of the net-ping library.
VERSION = '1.7.6'

# The host to ping. In the case of Ping::HTTP, this is the URI.
attr_accessor :host

Expand Down
6 changes: 6 additions & 0 deletions lib/net/ping/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Net
class Ping
# The version of the net-ping library.
VERSION = '2.0.8'
end
end
4 changes: 3 additions & 1 deletion net-ping.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require 'rubygems'
require 'rbconfig'

require_relative "lib/net/ping/version"

Gem::Specification.new do |spec|
spec.name = 'net-ping'
spec.version = '2.0.8'
spec.version = Net::Ping::VERSION
spec.license = 'Artistic 2.0'
spec.author = 'Chris Chernesky'
spec.email = 'chris.netping@tinderglow.com'
Expand Down
2 changes: 1 addition & 1 deletion test/test_net_ping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

class TC_Net_Ping < Test::Unit::TestCase
def test_net_ping_version
assert_equal('1.7.6', Net::Ping::VERSION)
assert_not_nil(Net::Ping::VERSION)
end
end

Expand Down