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.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +4 -0
  3. data/bin/simplegeo +10 -8
  4. metadata +7 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fa81cb0eacb0d06214f56051675c65269b9a33a2
4
- data.tar.gz: 8e2d144b9290d1de3f5abe7ccd88540ba7afc522
2
+ SHA256:
3
+ metadata.gz: 5698eaba0de2ba9527e3358c7b28e164fe9a5e01302ab19ad382dec3d5a2d666
4
+ data.tar.gz: 5a38b28ec7700e67cd85225214ee3796b0b053b339884135a289039628575571
5
5
  SHA512:
6
- metadata.gz: 77d985199053621370a927f5525f1e664014198e6054d541fc443501dc2e37fd02a168941969d8b1d904f12059cf573a402b4a3b64bcce4d344f776754026c09
7
- data.tar.gz: 7bc15f22d80b22c10560f4d07509ef5cafdd4281b44ba063e51f7af6d64e067c86100afc2a8fe040afcafaabaf1d18886f95016cb5704d0e65e8534ddbf89036
6
+ metadata.gz: 80d498f1aea439891b9eaa8d868d015fd66e7befa8001ddcfa9fc0ad321229d07abc3fd7f59795f22b861054a6792b49924f178f1bb77efef450ab2f8260e1b7
7
+ data.tar.gz: 7ce50c22643a9fef5daadc2036a34a5ef4f5c3c41d984ef2483cb5beba8c4070a0232d04dd0d5884d67a5fb147da8e3d816b944c34f7c202056d617d39379924
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
  ## Version 2
3
+ ### Version 2.0.2
4
+ * Update Rainbow to version 3, use its new refinements in CLI
5
+ * Update Oj to version 3.7
6
+
3
7
  ### Version 2.0.1
4
8
  * Update StringUtility to version 3
5
9
 
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 Rainbow("ISP: #{isp}").color(StringUtility.random_color_six)
30
- puts Rainbow("Organization: #{org}").color(StringUtility.random_color_six)
31
- puts Rainbow("Timezone: #{timezone}").color(StringUtility.random_color_six)
32
- puts Rainbow("Location: #{city}, #{region}, #{country}, #{zip}").color(StringUtility.random_color_six)
33
- puts Rainbow("Exact location: #{ll.left}, #{ll.right}").color(StringUtility.random_color_six)
34
- puts Rainbow('They are using a mobile connection.').color(StringUtility.random_color_six) if mobile
35
- puts Rainbow('They are using a proxy.').color(StringUtility.random_color_six) if proxy
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.1
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: 2017-03-01 00:00:00.000000000 Z
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: '2'
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: '2'
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: '2'
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: '2'
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
- rubyforge_project:
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.