wafris 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1efce2cd1d45e54016f741cbe2f90b99eaa1b9c13135775345a8c6c0799f9e8
4
- data.tar.gz: 6b1e761814eaa0830e687b14a67862fd78b60220bc9cf79f5d7b52d0ff48b90c
3
+ metadata.gz: 3b9b1568fdef719383076bc488ff10f37d62b07aeaf143665e2e766e1d5d61b6
4
+ data.tar.gz: d96a46ce2ef95bbe3bfbd4d4d4b08d10a72f8270e1808f8e0f212692249a6634
5
5
  SHA512:
6
- metadata.gz: c4ffd902c97eac5e6f93944da1b4cb8ef93a7504e4d93e0289ef117726eb8f13e8c9691001c2f7c1501d5c916ba1d40cb02aff1a055d90a07a5c56e37f19fce3
7
- data.tar.gz: 56112f8a5bb85fca29a19e9ce3cd0500beb33f573caf415cd5c9f87ef1e2daee081b3da4508ede63712bed7404ff5ea1359471af90f3901164eac51bfa3ad04d
6
+ metadata.gz: 3cf48c2b9aee1ac009b1e242490e6512e45e231d4a57d698cb89237a5c83f466cea1ef428feb4550dce39d786a102790257c861ddd4314e5f7865dad1967e32d
7
+ data.tar.gz: 29b8543c5dd1236471a60c29f45cd9ce71793db0ae77a349b6666c1862e4bcec90ee5e6ba211b87e719a74584fad142bead0afa04b6643f9999636e928aeb24e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wafris
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -3,7 +3,7 @@
3
3
  module Wafris
4
4
  class WafrisRequest
5
5
  attr_reader :ip, :user_agent, :path, :parameters, :host, :method,
6
- :headers, :body, :request_id, :request_timestamp
6
+ :headers, :request_id, :request_timestamp
7
7
 
8
8
  def initialize(request, env)
9
9
  @ip = encode_to_utf8(IpResolver.new(request).resolve)
@@ -15,9 +15,6 @@ module Wafris
15
15
  @headers = extract_headers(env)
16
16
  @request_id = env.fetch("action_dispatch.request_id", SecureRandom.uuid.to_s)
17
17
  @request_timestamp = Time.now.utc.to_i
18
-
19
- @body = encode_to_utf8(request.body&.read)
20
- request.body&.rewind
21
18
  end
22
19
 
23
20
  def data(treatment:, category:, rule:)
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: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Buckbee
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-11-07 00:00:00.000000000 Z
12
+ date: 2024-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack