vpndetection-rails 2.1.18 → 2.1.19
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: 93bf26121f48a07d3b0019ba79c40b3c7e62a7953bcfceb9fad7696b86ba9723
|
|
4
|
+
data.tar.gz: c2994ab79ecb7035224bd6a2140b3f36447e96aa82a6b8f9d7864fd30d1c6260
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fefebd21375d50adcc8f86344c22ac40ef928f3e455c610e329add0fe80ad93559fda666543f83e394b7e0bfac0ba7a7064b43849358fb5ddc531d2132582002
|
|
7
|
+
data.tar.gz: 5ded6bcfbfb144d7bb7aeb8fd8b2786091ef78942c1dbbc7634448186e0e8528d9a6e5569cbffaa44327d01d60885284d86fb4af0e9a7e28070961d91912bbc3
|
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 on a paid plan. Create one in the [console](https://app.vpndetection.io); without one a lookup is on the
|
|
20
|
+
You need an API key on a paid plan. Create one in the [console](https://app.vpndetection.io); without one a lookup is on Unlimited, the free plan, and leaves out the hosting, CDN and proxy flags, so a paid plan is what makes this usable in production rather than optional. A free account tries every field, 100 lookups a day.
|
|
21
21
|
|
|
22
22
|
```ruby
|
|
23
23
|
# config/application.rb
|
|
@@ -108,7 +108,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
|
|
|
108
108
|
|
|
109
109
|
## Absent is not false
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Unlimited, with a key or without one, leaves out `is_hosting`, `is_cdn` and the four proxy flags, and of the detail behind each flag it answers only Tor's and relay's. 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.
|
|
112
112
|
|
|
113
113
|
```ruby
|
|
114
114
|
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.19
|
|
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.14.
|
|
32
|
+
version: 5.14.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.14.
|
|
42
|
+
version: 5.14.1
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '6'
|