ipis 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b5d766ffeeb74812d8d5b892e65a7986c36d07e8df0deaea58539bc9eb2b679
4
- data.tar.gz: 72523ff66eeb28ea8d41bf3a98d5a0eecf7e3aa34bb524264b0c8bddd196c7f4
3
+ metadata.gz: aca60fe79d287a93dae172edfaebf86dad0fdcbc8e9e79429665e726200ab779
4
+ data.tar.gz: 16f1de9320d9f2d39e2cb541f325b3031e78934e2cbd92991f9a9740a0798c41
5
5
  SHA512:
6
- metadata.gz: f4af34cfc8b17f0d8418ea7426deebb67a8fc5a1ec3ca8761a39a7fecd82b170e21755b71d19e8650e3d327aa55d6100d3e760ea2eef4c4235f6e67442032ca8
7
- data.tar.gz: 8930dd11d6ba4208d3cb39d14cd543d17722bb9c93ea30ecd849906b8b4287cdb58f3fe7ae0a6e650b247c4cce5b6a80db0fdee10e8fff3c13107b19fa207613
6
+ metadata.gz: d3ace1ee897a1f2b6821e469a1380d232646693bff9bee44ef436f235d91c308db4afd525f0b00932a7eb7174698d498137dfa16e36eea43ff17f2abdc9c500d
7
+ data.tar.gz: 8638f7ebe226eb501afb4fb11cb222e37726b788651b23a98febf8762eb957ad939e5c7c0974131e96c3aa18570aba75464a469f38cd458d79c2af40c6946b38
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ipis (0.1.0)
5
- http
4
+ ipis (0.1.1)
5
+ http (> 3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
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
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 2.0"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_dependency "http"
34
+ spec.add_dependency "http", '> 3.0'
35
35
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Ipis
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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