ip_info 0.3.0 → 0.3.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/ipinfo.gemspec +1 -1
- data/lib/ip_info/version.rb +1 -1
- data/spec/cassettes/ipinfo_api/check_type_of_request.yml +38 -0
- data/spec/cassettes/ipinfo_api_request/check__query_params_second_param_is_optioanl.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_ip_address.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_url_address.yml +38 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_both_params.yml +42 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_city_params.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_without_params.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_both_params.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_city_params.yml +40 -0
- data/spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_without_params.yml +40 -0
- metadata +22 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba4673b2e84e6fcf874b90a4b762f236dc32e97a
|
|
4
|
+
data.tar.gz: 6dc643c4f7e73c3c543e759f1fb4ba74743f9bed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f5fe0d892df8e2d9d6ba9e3c11888200a80616340e06ab05bb667f093381cbf56075507ec4caa0dd7cd7314c096a877907c8a658e38e796f59571e50f251c0d
|
|
7
|
+
data.tar.gz: 33af00924c2e2bed99362f8e050046b805854671a7eee27ede613291837cb395b0001e4fabbf5e342519554db464e863eb55333cd12244fe851802056a11c4f0
|
data/ipinfo.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["mak7.dj@gmail.com"]
|
|
11
11
|
spec.description = %q{API interface for http://ipinfodb.com }
|
|
12
12
|
spec.summary = "Using for getting information about ip"
|
|
13
|
-
spec.homepage = "https://github.com/max-si-m/
|
|
13
|
+
spec.homepage = "https://github.com/max-si-m/ip_info"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/ip_info/version.rb
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=devbattles.com&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:04:12 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '138'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
34
|
+
: \"104.236.167.162\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
35
|
+
States\"\n}"
|
|
36
|
+
http_version:
|
|
37
|
+
recorded_at: Sun, 19 Jul 2015 08:07:47 GMT
|
|
38
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=64.233.191.255&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:07:55 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '137'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- PHP/5.4.41-0+deb7u1
|
|
33
|
+
body:
|
|
34
|
+
encoding: UTF-8
|
|
35
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
36
|
+
: \"64.233.191.255\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
37
|
+
States\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:48 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=invalid%20ip&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:08:00 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '140'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- PHP/5.4.41-0+deb7u1
|
|
33
|
+
body:
|
|
34
|
+
encoding: UTF-8
|
|
35
|
+
string: "{\n\t\"statusCode\" : \"ERROR\",\n\t\"statusMessage\" : \"Invalid IP
|
|
36
|
+
Address.\",\n\t\"ipAddress\" : \"invalid ip\",\n\t\"countryCode\" : \"\",\n\t\"countryName\"
|
|
37
|
+
: \"\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:53 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=invalid%20url&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:15:54 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '141'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: "{\n\t\"statusCode\" : \"ERROR\",\n\t\"statusMessage\" : \"Invalid IP
|
|
34
|
+
Address.\",\n\t\"ipAddress\" : \"invalid url\",\n\t\"countryCode\" : \"\",\n\t\"countryName\"
|
|
35
|
+
: \"\"\n}"
|
|
36
|
+
http_version:
|
|
37
|
+
recorded_at: Sun, 19 Jul 2015 08:07:54 GMT
|
|
38
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-city/?format=json&ip=64.233.191.255&key=api_key&timezone=true
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:07:58 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '295'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- PHP/5.4.41-0+deb7u1
|
|
33
|
+
body:
|
|
34
|
+
encoding: UTF-8
|
|
35
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
36
|
+
: \"64.233.191.255\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
37
|
+
States\",\n\t\"regionName\" : \"California\",\n\t\"cityName\" : \"Mountain
|
|
38
|
+
View\",\n\t\"zipCode\" : \"94043\",\n\t\"latitude\" : \"37.406\",\n\t\"longitude\"
|
|
39
|
+
: \"-122.079\",\n\t\"timeZone\" : \"-07:00\"\n}"
|
|
40
|
+
http_version:
|
|
41
|
+
recorded_at: Sun, 19 Jul 2015 08:07:50 GMT
|
|
42
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-city/?format=json&ip=64.233.191.255&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:15:50 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '295'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
34
|
+
: \"64.233.191.255\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
35
|
+
States\",\n\t\"regionName\" : \"California\",\n\t\"cityName\" : \"Mountain
|
|
36
|
+
View\",\n\t\"zipCode\" : \"94043\",\n\t\"latitude\" : \"37.406\",\n\t\"longitude\"
|
|
37
|
+
: \"-122.079\",\n\t\"timeZone\" : \"-07:00\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:50 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=64.233.191.255&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:07:57 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '137'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- PHP/5.4.41-0+deb7u1
|
|
33
|
+
body:
|
|
34
|
+
encoding: UTF-8
|
|
35
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
36
|
+
: \"64.233.191.255\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
37
|
+
States\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:50 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-city/?format=json&ip=devbattles.com&key=api_key&timezone=true
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:04:18 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '297'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
34
|
+
: \"104.236.167.162\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
35
|
+
States\",\n\t\"regionName\" : \"California\",\n\t\"cityName\" : \"San Francisco\",\n\t\"zipCode\"
|
|
36
|
+
: \"94102\",\n\t\"latitude\" : \"37.7749\",\n\t\"longitude\" : \"-122.419\",\n\t\"timeZone\"
|
|
37
|
+
: \"-07:00\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:53 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-city/?format=json&ip=devbattles.com&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:15:52 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '297'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
34
|
+
: \"104.236.167.162\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
35
|
+
States\",\n\t\"regionName\" : \"California\",\n\t\"cityName\" : \"San Francisco\",\n\t\"zipCode\"
|
|
36
|
+
: \"94102\",\n\t\"latitude\" : \"37.7749\",\n\t\"longitude\" : \"-122.419\",\n\t\"timeZone\"
|
|
37
|
+
: \"-07:00\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:52 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.ipinfodb.com/v3/ip-country/?format=json&ip=devbattles.com&key=api_key&timezone=false
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx
|
|
23
|
+
Date:
|
|
24
|
+
- Sun, 19 Jul 2015 08:07:58 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=UTF-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '138'
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
31
|
+
X-Powered-By:
|
|
32
|
+
- PHP/5.4.41-0+deb7u1
|
|
33
|
+
body:
|
|
34
|
+
encoding: UTF-8
|
|
35
|
+
string: "{\n\t\"statusCode\" : \"OK\",\n\t\"statusMessage\" : \"\",\n\t\"ipAddress\"
|
|
36
|
+
: \"104.236.167.162\",\n\t\"countryCode\" : \"US\",\n\t\"countryName\" : \"United
|
|
37
|
+
States\"\n}"
|
|
38
|
+
http_version:
|
|
39
|
+
recorded_at: Sun, 19 Jul 2015 08:07:51 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ip_info
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxim Djuliy
|
|
@@ -120,12 +120,22 @@ files:
|
|
|
120
120
|
- lib/ip_info/parser.rb
|
|
121
121
|
- lib/ip_info/request.rb
|
|
122
122
|
- lib/ip_info/version.rb
|
|
123
|
+
- spec/cassettes/ipinfo_api/check_type_of_request.yml
|
|
124
|
+
- spec/cassettes/ipinfo_api_request/check__query_params_second_param_is_optioanl.yml
|
|
125
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_ip_address.yml
|
|
126
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_url_address.yml
|
|
127
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_both_params.yml
|
|
128
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_city_params.yml
|
|
129
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_without_params.yml
|
|
130
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_both_params.yml
|
|
131
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_city_params.yml
|
|
132
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_without_params.yml
|
|
123
133
|
- spec/ip_info/api_spec.rb
|
|
124
134
|
- spec/ip_info/parser_spec.rb
|
|
125
135
|
- spec/ip_info/request_spec.rb
|
|
126
136
|
- spec/spec_helper.rb
|
|
127
137
|
- spec/support/vcr.rb
|
|
128
|
-
homepage: https://github.com/max-si-m/
|
|
138
|
+
homepage: https://github.com/max-si-m/ip_info
|
|
129
139
|
licenses:
|
|
130
140
|
- MIT
|
|
131
141
|
metadata: {}
|
|
@@ -150,6 +160,16 @@ signing_key:
|
|
|
150
160
|
specification_version: 4
|
|
151
161
|
summary: Using for getting information about ip
|
|
152
162
|
test_files:
|
|
163
|
+
- spec/cassettes/ipinfo_api/check_type_of_request.yml
|
|
164
|
+
- spec/cassettes/ipinfo_api_request/check__query_params_second_param_is_optioanl.yml
|
|
165
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_ip_address.yml
|
|
166
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_invalid_response_url_address.yml
|
|
167
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_both_params.yml
|
|
168
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_with_city_params.yml
|
|
169
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_ip_address_check_valid_ip_address_without_params.yml
|
|
170
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_both_params.yml
|
|
171
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_with_city_params.yml
|
|
172
|
+
- spec/cassettes/ipinfo_api_request/check__query_response_url_address_check_valid_url_address_without_params.yml
|
|
153
173
|
- spec/ip_info/api_spec.rb
|
|
154
174
|
- spec/ip_info/parser_spec.rb
|
|
155
175
|
- spec/ip_info/request_spec.rb
|