ip_filter 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/CHANGELOG +29 -0
- data/Gemfile.lock +117 -0
- data/LICENSE +20 -0
- data/README.rdoc +232 -0
- data/Rakefile +6 -0
- data/data/geoip/country_code.yml +255 -0
- data/data/geoip/country_code3.yml +255 -0
- data/data/geoip/country_continent.yml +255 -0
- data/data/geoip/country_name.yml +255 -0
- data/data/geoip/time_zone.yml +677 -0
- data/lib/geoip.rb +559 -0
- data/lib/ip_filter.rb +100 -0
- data/lib/ip_filter/cache.rb +30 -0
- data/lib/ip_filter/cache/dallistore.rb +39 -0
- data/lib/ip_filter/cache/redis.rb +26 -0
- data/lib/ip_filter/configuration.rb +47 -0
- data/lib/ip_filter/controller/geo_ip_lookup.rb +78 -0
- data/lib/ip_filter/lookups/base.rb +60 -0
- data/lib/ip_filter/lookups/geoip.rb +41 -0
- data/lib/ip_filter/providers/max_mind.rb +52 -0
- data/lib/ip_filter/providers/s3.rb +51 -0
- data/lib/ip_filter/railtie.rb +23 -0
- data/lib/ip_filter/request.rb +14 -0
- data/lib/ip_filter/results/base.rb +39 -0
- data/lib/ip_filter/results/geoip.rb +19 -0
- data/lib/ip_filter/version.rb +3 -0
- data/spec/cache/dallistore_spec.rb +16 -0
- data/spec/cache/redis_spec.rb +56 -0
- data/spec/controller/ip_controller_spec.rb +56 -0
- data/spec/fixtures/GeoIP.dat +0 -0
- data/spec/fixtures/LICENSE.txt +31 -0
- data/spec/fixtures/country.dat +0 -0
- data/spec/ip_filter_spec.rb +19 -0
- data/spec/providers/max_mind_spec.rb +11 -0
- data/spec/providers/s3_spec.rb +11 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/support/enable_dallistore_cache.rb +15 -0
- data/spec/support/enable_redis_cache.rb +15 -0
- metadata +85 -0
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ip_filter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Le Massu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Filter ip by region/country/continent to grant access. Typically for
|
14
|
+
DRM. Based on Chris Trinh gem (https://github.com/elentras/ip_filter), I rewrite
|
15
|
+
/ review code and choose to keep this version under my own git account
|
16
|
+
email:
|
17
|
+
- webmaster@elentras.com
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- ".gitignore"
|
23
|
+
- ".rspec"
|
24
|
+
- CHANGELOG
|
25
|
+
- Gemfile.lock
|
26
|
+
- LICENSE
|
27
|
+
- README.rdoc
|
28
|
+
- Rakefile
|
29
|
+
- data/geoip/country_code.yml
|
30
|
+
- data/geoip/country_code3.yml
|
31
|
+
- data/geoip/country_continent.yml
|
32
|
+
- data/geoip/country_name.yml
|
33
|
+
- data/geoip/time_zone.yml
|
34
|
+
- lib/geoip.rb
|
35
|
+
- lib/ip_filter.rb
|
36
|
+
- lib/ip_filter/cache.rb
|
37
|
+
- lib/ip_filter/cache/dallistore.rb
|
38
|
+
- lib/ip_filter/cache/redis.rb
|
39
|
+
- lib/ip_filter/configuration.rb
|
40
|
+
- lib/ip_filter/controller/geo_ip_lookup.rb
|
41
|
+
- lib/ip_filter/lookups/base.rb
|
42
|
+
- lib/ip_filter/lookups/geoip.rb
|
43
|
+
- lib/ip_filter/providers/max_mind.rb
|
44
|
+
- lib/ip_filter/providers/s3.rb
|
45
|
+
- lib/ip_filter/railtie.rb
|
46
|
+
- lib/ip_filter/request.rb
|
47
|
+
- lib/ip_filter/results/base.rb
|
48
|
+
- lib/ip_filter/results/geoip.rb
|
49
|
+
- lib/ip_filter/version.rb
|
50
|
+
- spec/cache/dallistore_spec.rb
|
51
|
+
- spec/cache/redis_spec.rb
|
52
|
+
- spec/controller/ip_controller_spec.rb
|
53
|
+
- spec/fixtures/GeoIP.dat
|
54
|
+
- spec/fixtures/LICENSE.txt
|
55
|
+
- spec/fixtures/country.dat
|
56
|
+
- spec/ip_filter_spec.rb
|
57
|
+
- spec/providers/max_mind_spec.rb
|
58
|
+
- spec/providers/s3_spec.rb
|
59
|
+
- spec/spec_helper.rb
|
60
|
+
- spec/support/enable_dallistore_cache.rb
|
61
|
+
- spec/support/enable_redis_cache.rb
|
62
|
+
homepage: https://github.com/elentras/ip_filter
|
63
|
+
licenses: []
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.4.5
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: IP filter solution for Rails.
|
85
|
+
test_files: []
|