ipis 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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +20 -1
- data/bin/ipis +0 -0
- data/ipis.gemspec +1 -1
- data/lib/ipis.rb +3 -0
- data/lib/ipis/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aca60fe79d287a93dae172edfaebf86dad0fdcbc8e9e79429665e726200ab779
|
|
4
|
+
data.tar.gz: 16f1de9320d9f2d39e2cb541f325b3031e78934e2cbd92991f9a9740a0798c41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3ace1ee897a1f2b6821e469a1380d232646693bff9bee44ef436f235d91c308db4afd525f0b00932a7eb7174698d498137dfa16e36eea43ff17f2abdc9c500d
|
|
7
|
+
data.tar.gz: 8638f7ebe226eb501afb4fb11cb222e37726b788651b23a98febf8762eb957ad939e5c7c0974131e96c3aa18570aba75464a469f38cd458d79c2af40c6946b38
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -11,4 +11,23 @@ Install it:
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
$ ipis [IPs to query separated by spaces]
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
as: AS7922 Comcast Cable Communications, LLC
|
|
16
|
+
city: Minneapolis
|
|
17
|
+
country: United States
|
|
18
|
+
countryCode: US
|
|
19
|
+
isp: Comcast Cable Communications
|
|
20
|
+
lat: 44.9778
|
|
21
|
+
lon: -93.2650
|
|
22
|
+
org: Comcast IP Services, L.L.C.
|
|
23
|
+
region: MN
|
|
24
|
+
regionName: Minnesota
|
|
25
|
+
status: success
|
|
26
|
+
timezone: America/Chicago
|
|
27
|
+
zip: 55416
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
* Uses [ip-api.com](https://ip-api.com) for querying.
|
|
32
|
+
* Depends on the great [HTTP.rb](https://github.com/httprb/http)
|
|
33
|
+
* If you don't specify a list of IPs to query, it'll still run the query against your current IPv4
|
data/bin/ipis
CHANGED
|
File without changes
|
data/ipis.gemspec
CHANGED
data/lib/ipis.rb
CHANGED
|
@@ -9,6 +9,9 @@ module IPis
|
|
|
9
9
|
class Lookup
|
|
10
10
|
def initialize(args)
|
|
11
11
|
@ips_to_lookup = args.map(&:strip).uniq
|
|
12
|
+
if @ips_to_lookup.size == 0
|
|
13
|
+
@ips_to_lookup = [''] # fix self
|
|
14
|
+
end
|
|
12
15
|
@query_adapter = IPis::Queries::IPApi
|
|
13
16
|
@formatter_adapter = IPis::Formatters::BaseFormatter
|
|
14
17
|
end
|
data/lib/ipis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ipis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Brody
|
|
@@ -42,16 +42,16 @@ dependencies:
|
|
|
42
42
|
name: http
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - ">"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
47
|
+
version: '3.0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
54
|
+
version: '3.0'
|
|
55
55
|
description: Command line tool for ipinfo.io
|
|
56
56
|
email:
|
|
57
57
|
- josh@josh.mn
|