wafris 1.1.10 → 1.1.11

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: 031d8144c5556cf40a2325f2299edfadbe4e9f1528d8150df8d87548b47ace09
4
- data.tar.gz: baa7327a7cd765ccd5ebe098490e108f1e04d4ca66a57c6c19eead5a9ba4ff84
3
+ metadata.gz: e2fcb2f6f87a3f5fe3f89091437cad264aa10b8a8e0440ab6568e172674fc9a7
4
+ data.tar.gz: 1713ee535af2200d1c8b9b0512456c2a96544942e552fbe487a77690d66ac262
5
5
  SHA512:
6
- metadata.gz: 8ea901efba9cb37e0756ffdb94c2f35d18927b78874da49dbb5c52d1cd06a5f152ecfac867fcd5232ae823e3809e24e6c7f7f8f1174c233cd16bb9c56d93a20f
7
- data.tar.gz: 2f38a25d6cd4a16be22bd422e47fbb8cda1d1553794daf7da2fa5190d70f3ef4a04f5e5a382b66c36741ada88562d9cdbed697821b97aaa2fa5d1646c61ea72e
6
+ metadata.gz: 0312e05a8cf9687dd222263a75a3fcec4590bdd325b3d3f01d80ed211c6810b99bcaa9cfd1b682767f6cba9ba7f97240f7faf6d78d549a7cc03df4d9c40fad68
7
+ data.tar.gz: 5e897f2ea32786c2b82e39f2f5b9385bd862b255294f92e59f405a8327d16e96efeb6d38194ba0490b8b9020e22931dae06c7d28112e7bd71efc456b4841ccc8
@@ -39,6 +39,15 @@ module Wafris
39
39
  "[Wafris] Wafris timed out during processing. Request passed without rules check."
40
40
  )
41
41
  @app.call(env)
42
+ rescue NoMethodError => e
43
+ if e.message.include?("undefined method `connection_pool'")
44
+ LogSuppressor.puts_log(
45
+ "[Wafris] Wafris is not configured. Please check your configuration settings. Request passed without rules check. More info can be found at: https://github.com/Wafris/wafris-rb"
46
+ )
47
+ else
48
+ raise e
49
+ end
50
+ @app.call(env)
42
51
  rescue StandardError => e
43
52
  LogSuppressor.puts_log(
44
53
  "[Wafris] Redis connection error: #{e.message}. Request passed without rules check."
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wafris
4
- VERSION = "1.1.10"
4
+ VERSION = "1.1.11"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wafris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micahel Buckbee
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-05 00:00:00.000000000 Z
12
+ date: 2024-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: connection_pool