maxmind-geoip2 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +70 -0
- data/LICENSE-APACHE +202 -0
- data/LICENSE-MIT +17 -0
- data/README.dev.md +4 -0
- data/README.md +326 -0
- data/Rakefile +14 -0
- data/lib/maxmind/geoip2.rb +4 -0
- data/lib/maxmind/geoip2/client.rb +313 -0
- data/lib/maxmind/geoip2/errors.rb +48 -0
- data/lib/maxmind/geoip2/model/abstract.rb +27 -0
- data/lib/maxmind/geoip2/model/anonymous_ip.rb +63 -0
- data/lib/maxmind/geoip2/model/asn.rb +39 -0
- data/lib/maxmind/geoip2/model/city.rb +75 -0
- data/lib/maxmind/geoip2/model/connection_type.rb +32 -0
- data/lib/maxmind/geoip2/model/country.rb +70 -0
- data/lib/maxmind/geoip2/model/domain.rb +32 -0
- data/lib/maxmind/geoip2/model/enterprise.rb +15 -0
- data/lib/maxmind/geoip2/model/insights.rb +14 -0
- data/lib/maxmind/geoip2/model/isp.rb +53 -0
- data/lib/maxmind/geoip2/reader.rb +277 -0
- data/lib/maxmind/geoip2/record/abstract.rb +22 -0
- data/lib/maxmind/geoip2/record/city.rb +38 -0
- data/lib/maxmind/geoip2/record/continent.rb +37 -0
- data/lib/maxmind/geoip2/record/country.rb +54 -0
- data/lib/maxmind/geoip2/record/location.rb +73 -0
- data/lib/maxmind/geoip2/record/maxmind.rb +17 -0
- data/lib/maxmind/geoip2/record/place.rb +28 -0
- data/lib/maxmind/geoip2/record/postal.rb +30 -0
- data/lib/maxmind/geoip2/record/represented_country.rb +23 -0
- data/lib/maxmind/geoip2/record/subdivision.rb +48 -0
- data/lib/maxmind/geoip2/record/traits.rb +200 -0
- data/maxmind-geoip2.gemspec +25 -0
- data/test/test_client.rb +424 -0
- data/test/test_model_country.rb +80 -0
- data/test/test_model_names.rb +47 -0
- data/test/test_reader.rb +459 -0
- metadata +116 -0
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maxmind-geoip2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- William Storey
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: http
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: maxmind-db
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
41
|
+
description: A gem for interacting with the GeoIP2 webservices and databases. MaxMind
|
42
|
+
provides geolocation data as downloadable databases as well as through a webservice.
|
43
|
+
email: support@maxmind.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- CHANGELOG.md
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- LICENSE-APACHE
|
52
|
+
- LICENSE-MIT
|
53
|
+
- README.dev.md
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- lib/maxmind/geoip2.rb
|
57
|
+
- lib/maxmind/geoip2/client.rb
|
58
|
+
- lib/maxmind/geoip2/errors.rb
|
59
|
+
- lib/maxmind/geoip2/model/abstract.rb
|
60
|
+
- lib/maxmind/geoip2/model/anonymous_ip.rb
|
61
|
+
- lib/maxmind/geoip2/model/asn.rb
|
62
|
+
- lib/maxmind/geoip2/model/city.rb
|
63
|
+
- lib/maxmind/geoip2/model/connection_type.rb
|
64
|
+
- lib/maxmind/geoip2/model/country.rb
|
65
|
+
- lib/maxmind/geoip2/model/domain.rb
|
66
|
+
- lib/maxmind/geoip2/model/enterprise.rb
|
67
|
+
- lib/maxmind/geoip2/model/insights.rb
|
68
|
+
- lib/maxmind/geoip2/model/isp.rb
|
69
|
+
- lib/maxmind/geoip2/reader.rb
|
70
|
+
- lib/maxmind/geoip2/record/abstract.rb
|
71
|
+
- lib/maxmind/geoip2/record/city.rb
|
72
|
+
- lib/maxmind/geoip2/record/continent.rb
|
73
|
+
- lib/maxmind/geoip2/record/country.rb
|
74
|
+
- lib/maxmind/geoip2/record/location.rb
|
75
|
+
- lib/maxmind/geoip2/record/maxmind.rb
|
76
|
+
- lib/maxmind/geoip2/record/place.rb
|
77
|
+
- lib/maxmind/geoip2/record/postal.rb
|
78
|
+
- lib/maxmind/geoip2/record/represented_country.rb
|
79
|
+
- lib/maxmind/geoip2/record/subdivision.rb
|
80
|
+
- lib/maxmind/geoip2/record/traits.rb
|
81
|
+
- maxmind-geoip2.gemspec
|
82
|
+
- test/test_client.rb
|
83
|
+
- test/test_model_country.rb
|
84
|
+
- test/test_model_names.rb
|
85
|
+
- test/test_reader.rb
|
86
|
+
homepage: https://github.com/maxmind/GeoIP2-ruby
|
87
|
+
licenses:
|
88
|
+
- Apache-2.0
|
89
|
+
- MIT
|
90
|
+
metadata:
|
91
|
+
bug_tracker_uri: https://github.com/maxmind/GeoIP2-ruby/issues
|
92
|
+
changelog_uri: https://github.com/maxmind/GeoIP2-ruby/blob/master/CHANGELOG.md
|
93
|
+
documentation_uri: https://github.com/maxmind/GeoIP2-ruby
|
94
|
+
homepage_uri: https://github.com/maxmind/GeoIP2-ruby
|
95
|
+
source_code_uri: https://github.com/maxmind/GeoIP2-ruby
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 2.4.0
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.5.2.1
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: A gem for interacting with the GeoIP2 webservices and databases.
|
116
|
+
test_files: []
|