lookupip 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/bin/console +0 -7
- data/bin/setup +0 -2
- data/lib/lookupip/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37142ba9cdf22d567dc3ce88a1abd95962a4a37
|
4
|
+
data.tar.gz: 86ff08c2e04b2aa121b32cc882c77446c3065c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/lookupip/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.1.
|
1
|
+
module LookupIP
|
2
|
+
VERSION = "0.1.1"
|
3
3
|
end
|