lookupip 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45b237b54039a4d7df4f74724c775042d2cccad3
4
- data.tar.gz: 3b5ab81724492f8cdfc1678d71753e0cc3ee4b4a
3
+ metadata.gz: d37142ba9cdf22d567dc3ce88a1abd95962a4a37
4
+ data.tar.gz: 86ff08c2e04b2aa121b32cc882c77446c3065c41
5
5
  SHA512:
6
- metadata.gz: 55eb47e6b76bf6469042fe48e6580199b5f74f8377f115c755648bd4f4e9ad51fe90f18c957157184397f45a46cfda97324b0ebf6f7c0ed88c3cd05f88b3db00
7
- data.tar.gz: c70e5b0c97ccb19bf8afaa2a7de93f9dd86619ba1b35233655a2f35c2d908161fedee79dbe35f39dd1305edc201a02f40ec8ade9ca6e08a4c3cc2fed4d3a9ba5
6
+ metadata.gz: f655ac6b90c7ef5cb80d33612cb5c5727ef2fbf18d57a80c7227b7bd103c5984b34095f49c3eef93a56121b8e1849bf633fd8ff4ad9668546ff4e0fa97181f7f
7
+ data.tar.gz: 16eff31ee42d509e34aca3b1f0ae4e5974c4ba19f09f5a5ef83ad30842c7bd2882ff5fe4b7e31f13bc4434e96ff7bf3c6d0e7298608761e227dadf68a06d45a8
data/README.md CHANGED
@@ -22,7 +22,15 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ```ruby
26
+ require 'lookupip'
27
+
28
+ # IPv4
29
+ ip_info = LookupIP::V4.address '30.104.194.91'
30
+ puts ip_info.country #=> "United States"
31
+ puts ip_info.city #=> "Columbus"
32
+ puts ip_info.isp #=> "DoD Network Information Center"
33
+ ```
26
34
 
27
35
  ## Development
28
36
 
data/bin/console CHANGED
@@ -3,12 +3,5 @@
3
3
  require "bundler/setup"
4
4
  require "lookupip"
5
5
 
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
6
  require "irb"
14
7
  IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -4,5 +4,3 @@ IFS=$'\n\t'
4
4
  set -vx
5
5
 
6
6
  bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,3 +1,3 @@
1
- module Lookupip
2
- VERSION = "0.1.0"
1
+ module LookupIP
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookupip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Farhad