vpndetection-rails 2.1.0 → 2.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19aff4067906b1224611a73aa026e8e844cae8ac860603d738d40de3fc190c1a
4
- data.tar.gz: f403e754f52b4c48bc0d45b9b9a4e6a3ba0d9c9a20b332dbd599034e6b0bfd3d
3
+ metadata.gz: a439a954d6da2deab766b3a646c7d181d272c4fcf05a4b318bd96141714e985a
4
+ data.tar.gz: 1fa171f322413f6ced753b666ddba19b60b1c91e06258051faa738c6e8cc8813
5
5
  SHA512:
6
- metadata.gz: 15e492920cb49c87109e29adafe64bdf014810f693e1271862c11d34892efb3126222c22d0849cf9424b3dde90199ed1a88b67435f25530712f7f3af3bbf5f4b
7
- data.tar.gz: 412e327c133f3c1053de33cc03adc42bb8d5ff711739365ab2f81bfefc4b864f280bf50656b01c52e534c8865e89888ecec720c3efa3034bf7ba595d7136fa54
6
+ metadata.gz: c4b294953af36c1651476dfbfe5f0ac3eb4cd1c3916a7f6da716c0a50ca2544f903f5b2c6c5525571fa2777a0da7d162e85ae59379aea546b66fde92b5c34294
7
+ data.tar.gz: aaeaa438d7bc42c7567b2ca7da0541fe3e7da16c73413e745427a887d73e8a8d3f883330a5f6d7749ad0b7cc17149f06715d5f3cee400fbfd567826d4590b6ec
data/README.md CHANGED
@@ -90,10 +90,10 @@ The request is let through, and the reason is on `lookup.error`. Our outage shou
90
90
 
91
91
  Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried — on a request path, failing open quickly beats holding a visitor while we try again.
92
92
 
93
- Skip what you do not care about:
93
+ Files in `public/`, compiled assets included, never reach the middleware: `ActionDispatch::Static` answers them first, so they cost no lookup. Skip the routes you do not care about:
94
94
 
95
95
  ```ruby
96
- skip: ->(request) { request.path.start_with?("/assets") }
96
+ skip: ->(request) { request.path == "/up" || request.path.start_with?("/webhooks") }
97
97
  ```
98
98
 
99
99
  Beyond a few million distinct visitors a day, stop calling the API per request: [download the dataset](https://vpndetection.io/#databases) and look addresses up locally instead.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VPNDetection
4
4
  module Rails
5
- VERSION = '2.1.0'
5
+ VERSION = '2.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpndetection-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.6.3
32
+ version: 5.7.0
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '6'
@@ -39,7 +39,7 @@ dependencies:
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 5.6.3
42
+ version: 5.7.0
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '6'