vpndetection 3.2.0 → 3.2.1

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: e3489ebf7b31c0307756abb483614adb213f1b9feb37890ed1e5b1f163f35c02
4
- data.tar.gz: b0f1881979f90e0a0378bf399bf1442005c30d1fe775f1c332a71418470799b4
3
+ metadata.gz: 968cc7e17b2c94d267e03fe6110e7780fc6c2f8a5710b1f642ce433013ecce65
4
+ data.tar.gz: e3d165e53eb9e0aaffb73cf35710970727f9e0e5c163c1ac7132dfbb694b63de
5
5
  SHA512:
6
- metadata.gz: a346d47d4e39b0b0ed62649db5d32bf9718f04e15472ff1a3ca6bf2a470cbc5ef69be8e1bfcaa72078d165724c386e948d1003db7eb0a96a02603b848737c53e
7
- data.tar.gz: 72ad76f8e9fed8ac94b3aaee0fea5e82a40746da4c3a0f62c99f6ea4469fc94d13ec23b064de9025b29b44f163d3b5d174a08774bb965fab00c6d190698023df
6
+ metadata.gz: 463de94ed352de2c514a1614ae59b37021ec28faa33c5c664b11c33124c551ba00f30fc457e4f1a3c1864b5d8d6dd0ae630c86598629af79e50d818c89952aac
7
+ data.tar.gz: fc051a127d33bff9c8bd5cac109807f493baf4876c9fc5b673ba6d22e485fab026f8ef81a2d66ea0714233d004c4af6cddf4a7b85b5e8964707113ef2d051f88
@@ -177,7 +177,11 @@ module VPNDetection
177
177
  @ignore_operation_servers = false
178
178
  @inject_format = false
179
179
  @force_ending_format = false
180
- @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
180
+ # `::Rails`, not `Rails`: this file is inside `module VPNDetection`, so a
181
+ # bare constant resolves to `VPNDetection::Rails` first if one exists -
182
+ # and one does, as soon as the vpndetection-rails gem is loaded. The
183
+ # intent has always been the top-level Rails.
184
+ @logger = defined?(::Rails) ? ::Rails.logger : Logger.new(STDOUT)
181
185
 
182
186
  yield(self) if block_given?
183
187
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VPNDetection
4
- VERSION = '3.2.0'
4
+ VERSION = '3.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpndetection
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev