vpndetection-rails 2.1.14 → 2.1.16

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: 970a4b9dcb72b24f5cc1834034b25165efce14da9ad1038dbfd4abee7c863a5a
4
- data.tar.gz: 796d47a5136d16215f23be67af07a2b118a077a1b2134c4407b3a0e4d3f6f283
3
+ metadata.gz: 0ca566f90e87ff2acd9f856fd2703d430bf743b2a4b075f64d53c4629eb8070a
4
+ data.tar.gz: b7141713a324ad228f0cd9ef60809aa94776c87e43a0969f6e4ecb1b5915a49a
5
5
  SHA512:
6
- metadata.gz: 62dd76f794636aecb926ba35107ea8c98f31b150d2015aab477a68624089764233458c956a21da5788d79adb4d38d89681fa5b90bd9c9163841724152c2ea086
7
- data.tar.gz: f7ddb60277521f24d4a34460cb83858b43e27af981db79e9d95ab37d997430d7d619943b60aece6cc7a07b0300c3a120b713b279cddb2cfde243426931c4c628
6
+ metadata.gz: f6374a1117edb1b1ef88aa5e71d67832abd32934c31a8a889bee501c0b047e3565be9241090f4b33783f06cc66754a47c009f5b37872b0715885f97532fc5641
7
+ data.tar.gz: cbb561d0cef1254a47394c69cb40de3af8788cd6255346f28bf9b420d7710bcbaa834a9208d408f9ffa2dd12e7c1f9c6d7428997b36208f8e5fa6d0546323277
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); 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.
20
+ You need an API key. Create one in the [console](https://app.vpndetection.io); without one a lookup leaves out the hosting, CDN and proxy flags, so a key is what makes this usable in production rather than optional.
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
- 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.
111
+ Without a key a lookup leaves out `is_hosting`, `is_cdn` and the four proxy flags, and a free key leaves out `vpn` and the detail behind each flag. 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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VPNDetection
4
4
  module Rails
5
- VERSION = '2.1.14'
5
+ VERSION = '2.1.16'
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.14
4
+ version: 2.1.16
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.12.0
32
+ version: 5.13.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.12.0
42
+ version: 5.13.1
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '6'