vpndetection-rails 2.1.5 → 2.1.7
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 +4 -4
- data/README.md +2 -2
- data/lib/vpndetection/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f577d9396f7e1a8d1b91e7821a769d0b66028f771e4a97915c21a1d716931b4
|
|
4
|
+
data.tar.gz: 5d5d226a89ccaac5b6fc5cb969d40789c28ab1555454bcedd88bff0a97657123
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f16134be3b0142e32f96a14b40836fc24bcbd059e1d65aedac656bcedb2c82f7fd421bd728a5d6ebac9485552a365e0043e84a7cbbb0b21891f694a85561be5
|
|
7
|
+
data.tar.gz: 1cb9d8079f4cb8f1a201a98c64263123df126d6137af1edbe467fb5c0897154206488b3116df1ce384f69ce742c4da970b4204cb1b9cd4757d1dff0a75b51838
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@ bundle add vpndetection-rails
|
|
|
17
17
|
|
|
18
18
|
Requires Ruby 3.3 or newer.
|
|
19
19
|
|
|
20
|
-
You need an API key. Create one in the [console](https://app.vpndetection.io);
|
|
20
|
+
You need an API key. Create one in the [console](https://app.vpndetection.io); without one the allowance is counted per source address, and a server is a single source address, so a key is what makes this usable in production rather than optional.
|
|
21
21
|
|
|
22
22
|
```ruby
|
|
23
23
|
# config/application.rb
|
|
@@ -100,7 +100,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
|
|
|
100
100
|
|
|
101
101
|
## Absent is not false
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
Without a key only `ip` and `is_vpn` come back, and a free key adds Tor, relay, `location` and `asn`. A member your plan does not include is `nil`, which means "not in your plan" rather than "checked, and no" — and Ruby makes that easy to lose, since `nil` and `false` are both falsy.
|
|
104
104
|
|
|
105
105
|
```ruby
|
|
106
106
|
lookup.result.hosting? # true or false, never nil
|
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.
|
|
4
|
+
version: 2.1.7
|
|
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.
|
|
32
|
+
version: 5.10.1
|
|
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.
|
|
42
|
+
version: 5.10.1
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '6'
|