simple_geolocator 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/bin/simplegeo +10 -8
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5698eaba0de2ba9527e3358c7b28e164fe9a5e01302ab19ad382dec3d5a2d666
|
4
|
+
data.tar.gz: 5a38b28ec7700e67cd85225214ee3796b0b053b339884135a289039628575571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80d498f1aea439891b9eaa8d868d015fd66e7befa8001ddcfa9fc0ad321229d07abc3fd7f59795f22b861054a6792b49924f178f1bb77efef450ab2f8260e1b7
|
7
|
+
data.tar.gz: 7ce50c22643a9fef5daadc2036a34a5ef4f5c3c41d984ef2483cb5beba8c4070a0232d04dd0d5884d67a5fb147da8e3d816b944c34f7c202056d617d39379924
|
data/CHANGELOG.md
CHANGED
data/bin/simplegeo
CHANGED
@@ -4,10 +4,12 @@
|
|
4
4
|
path = File.expand_path('../lib', __FILE__)
|
5
5
|
$LOAD_PATH.unshift(path)
|
6
6
|
|
7
|
-
require 'rainbow'
|
7
|
+
require 'rainbow/refinement'
|
8
8
|
require 'string-utility'
|
9
9
|
require_relative '../lib/simple_geolocator'
|
10
10
|
|
11
|
+
using Rainbow
|
12
|
+
|
11
13
|
if ARGV.empty?
|
12
14
|
fail 'You must provide an IP.'
|
13
15
|
end
|
@@ -26,10 +28,10 @@ mobile = response.mobile?
|
|
26
28
|
proxy = response.proxy?
|
27
29
|
|
28
30
|
puts "Here is the data for #{ip}:"
|
29
|
-
puts
|
30
|
-
puts
|
31
|
-
puts
|
32
|
-
puts
|
33
|
-
puts
|
34
|
-
puts
|
35
|
-
puts
|
31
|
+
puts "ISP: #{isp}".color(StringUtility.random_color_six)
|
32
|
+
puts "Organization: #{org}".color(StringUtility.random_color_six)
|
33
|
+
puts "Timezone: #{timezone}".color(StringUtility.random_color_six)
|
34
|
+
puts "Location: #{city}, #{region}, #{country}, #{zip}".color(StringUtility.random_color_six)
|
35
|
+
puts "Exact location: #{ll.left}, #{ll.right}".color(StringUtility.random_color_six)
|
36
|
+
puts 'They are using a mobile connection.'.color(StringUtility.random_color_six) if mobile
|
37
|
+
puts 'They are using a proxy.'.color(StringUtility.random_color_six) if proxy
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_geolocator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: string-utility
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.7'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: data_types
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.6.10
|
116
|
+
rubygems_version: 3.0.3
|
118
117
|
signing_key:
|
119
118
|
specification_version: 4
|
120
119
|
summary: A Ruby gem for easily using the IP-API.com API to perform IP geolocation.
|