lib/dumper.rb in dumper-0.0.1 vs lib/dumper.rb in dumper-0.0.2
- old
+ new
@@ -1,29 +1,9 @@
-require 'dumper/version'
require 'thor'
require 'rainbow'
require 'socket'
module Dumper
- autoload :Cli, 'dumper/cli'
-end
-
-require 'ipaddr'
-class IPAddr
- PrivateRanges = [
- IPAddr.new("10.0.0.0/8"),
- IPAddr.new("172.16.0.0/12"),
- IPAddr.new("192.168.0.0/16")
- ]
-
- def private?
- return false unless self.ipv4?
- PrivateRanges.each do |ipr|
- return true if ipr.include?(self)
- end
- return false
- end
-
- def public?
- !private?
- end
+ autoload :Cli, 'dumper/cli'
+ autoload :Utility, 'dumper/utility'
+ autoload :VERSION, 'dumper/version'
end