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 +4 -4
- data/lib/vpndetection/configuration.rb +5 -1
- data/lib/vpndetection/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 968cc7e17b2c94d267e03fe6110e7780fc6c2f8a5710b1f642ce433013ecce65
|
|
4
|
+
data.tar.gz: e3d165e53eb9e0aaffb73cf35710970727f9e0e5c163c1ac7132dfbb694b63de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/vpndetection/version.rb
CHANGED