wafris 0.8.3 → 0.8.5

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: db4ac55c07f22ff09c83a0d4a1056eb9bbdd14f28c9704978ac8faef7ba438b9
4
- data.tar.gz: 8d114c0ca77681e7c9bd20b39a565973a968031980b28fed9964bd0c78213eb1
3
+ metadata.gz: 66b7b15717346a4c6cef883d8615d539cfe9a7a9aca15b1f430b11faf510f378
4
+ data.tar.gz: be84cc1b2adea93af908914942d798ec56406dfbeff5caf063cf2d088b8e1299
5
5
  SHA512:
6
- metadata.gz: 0b5f0d3e83fa9d33874aa21170aa89a0126745cd3f9de4e4a6c2b299c86d519763601a97e4b76fd2675d69cd0fa5529cb5582a741591e5f7d2c57f5ad0fb4743
7
- data.tar.gz: ecebfb0bb9f7e5b835ddd696af75a35189cd8cc94a0fffb85c3804e309177a068e65049c3ae7245353ee05e87c0e1eb1b5b30eb108b1bed4c173cceed0127acb
6
+ metadata.gz: b43cc330f0729a0ce0a74a77670819a474b2f28b11fcd8c45ea4ac30531aff0158fae6e468810666403ec90966444f1fe3f604f501fd173cc2ede8d509f38c53
7
+ data.tar.gz: 6649a022d4213ca7ad57858aed9a33b9860a7a51b9387b4129d12fc349546ac1ab108ff969e3d9a07c70031104816017ec07f71b3854b2d5c216b74fe06944f2
@@ -64,8 +64,8 @@ local function get_request_id(timestamp, ip, max_requests)
64
64
  end
65
65
 
66
66
  local function add_to_graph_timebucket(timebucket, request_id)
67
- local key = wafris_prefix .. "gr-ct:"
68
- redis.call("PFADD", key .. timebucket, request_id)
67
+ local key = wafris_prefix .. "gr-ct:" .. timebucket
68
+ redis.call("PFADD", key, request_id)
69
69
  -- Expire the key after 25 hours if it has no expiry
70
70
  redis.call("EXPIRE", key, 90000)
71
71
  end
@@ -11,6 +11,8 @@ module Wafris
11
11
  ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
12
12
  )
13
13
  @redis_pool_size = 20
14
+
15
+ set_version if ENV['REDIS_URL']
14
16
  end
15
17
 
16
18
  def connection_pool
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wafris
4
- VERSION = "0.8.3"
4
+ VERSION = "0.8.5"
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: 0.8.3
4
+ version: 0.8.5
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: 2023-06-21 00:00:00.000000000 Z
12
+ date: 2023-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: connection_pool
@@ -199,7 +199,11 @@ homepage:
199
199
  licenses:
200
200
  - Elastic-2.0
201
201
  metadata: {}
202
- post_install_message:
202
+ post_install_message: |2
203
+ Thank you for installing the wafris gem. Please note that this is
204
+ BETA software. We may ask that you clear your redis instance but
205
+ will do our best to help migrate any block or allow rules that
206
+ you have created.
203
207
  rdoc_options: []
204
208
  require_paths:
205
209
  - lib