apigeoloc 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: c866f2642bb655d1594d830433bfc0d3d7e038e1
4
- data.tar.gz: bdc40ad4bcf95f6c334db2daaae788df9d603b77
3
+ metadata.gz: 13e55336e4ac9664025eb77bd4408212ec4485e9
4
+ data.tar.gz: b10dd4bd85edce27c4de7d728966697bc8e0c909
5
5
  SHA512:
6
- metadata.gz: bbf181dadcf4b6c5d73895557ce6b0e370f19ecb30db0ae582d4c8e94bf1cf8759a81e83fa0df82dca78746b15c1922346cd3f3950e639c1d00f0ab0c72ca2b7
7
- data.tar.gz: bd735eed557ecf0206d6f8e00f6c0cae64a28dbcfac1934563e3f579f8f035f4d5fb5a2d710dd398ed5d07ac0e93ad51645f37042112b48de4e60cff1ba1ec3f
6
+ metadata.gz: 8822806e1f613e99e10bba44f126279e1d87b8e4f32ed9b7ebe9914b50f2ec25230b6fd35e96d114ad1050bfe79a0c8d86bab6f82f23dd386fb49a3afaf988a6
7
+ data.tar.gz: ad0b995f26bfd40764aa7f2844194d629f880bec7ce23743c9bc64ca456bff7e850e550c49fe1e5d3d1b2d6441d68e42b3fde0636712f776864e64f3c08c10f9
data/.gitignore CHANGED
@@ -2,3 +2,4 @@ apigeoloc*.gem
2
2
  test-*
3
3
  Gemfile.lock
4
4
  coverage
5
+ .DS_Store
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.email = 'rdelaplace@vente-privee.com'
40
40
  s.license = 'Apache-2.0'
41
41
 
42
- s.summary = 'Tool to request and check an API.'
42
+ s.summary = 'Tool to request an api to match a network with a location.'
43
43
  s.description = 'APIGeoloc is a simple tool to get location from a subnet.'
44
44
  s.homepage = 'https://github.com/vp-noc/apigeoloc.git'
45
45
 
@@ -35,13 +35,6 @@ module APIGeoloc
35
35
  desc: 'Http headers used with the request (comma separated). ' \
36
36
  '<key>:<value>[,<key>:<value>[,...]]'
37
37
  )
38
- option(
39
- :data,
40
- aliases: ['-d'],
41
- desc: 'Set of data sent with the request. ' \
42
- 'May be of type www_form or json.' \
43
- 'If no specific data type is detected, www_form is used.'
44
- )
45
38
  option(
46
39
  :user,
47
40
  aliases: ['-u'],
@@ -66,13 +59,6 @@ module APIGeoloc
66
59
  default: false,
67
60
  desc: 'No Check certificates.'
68
61
  )
69
- option(
70
- :quiet,
71
- aliases: ['-q'],
72
- type: :boolean,
73
- default: false,
74
- desc: 'Silently do the job'
75
- )
76
62
  option(
77
63
  :simulation,
78
64
  aliases: ['-s'],
@@ -15,8 +15,6 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require 'json'
19
-
20
18
  module APIGeoloc
21
19
  # This is a matcher class used to match ip with geoloc.
22
20
  class Matcher
@@ -16,8 +16,6 @@
16
16
  #
17
17
 
18
18
  require 'net/http'
19
- require 'cgi'
20
- require 'json'
21
19
  require 'openssl'
22
20
 
23
21
  module APIGeoloc
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module APIGeoloc
19
- VERSION = '1.0.1'.freeze
19
+ VERSION = '1.0.2'.freeze
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apigeoloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Delaplace
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-20 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -181,5 +181,5 @@ rubyforge_project:
181
181
  rubygems_version: 2.5.2
182
182
  signing_key:
183
183
  specification_version: 4
184
- summary: Tool to request and check an API.
184
+ summary: Tool to request an api to match a network with a location.
185
185
  test_files: []