maxmind-geoip2 0.4.0

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