macaw_framework 1.1.3 → 1.1.4

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: 206cdc56fc4e1027b3f1cc5d98b57a531c4043500cb1e99545b6e198c9b01f9d
4
- data.tar.gz: 954b2f0bcbfea9bdc8e0a39362455e3c155e7b04f7b2accf786c6be658740c65
3
+ metadata.gz: 3cc7bfb37c6506663a831ad24ad26b97236980ae448affe8010b4f9a7b35d454
4
+ data.tar.gz: 43ab3f174a2bc222d71f7f13353546da14d124d2a67f9169775a5927d5cd815f
5
5
  SHA512:
6
- metadata.gz: ec8a983e02579327ef6987a86267094ed0d0384ed8f1da4c244b0c77d27b1ddae2de4e1ef94020ab90824055ae892f03f5884ce724ec596551622e25ee88d167
7
- data.tar.gz: 9a90daa6f5884b4148728b89780a6fb118e071e932c6e437c4efa8f4f548b7624d021bb540e25f929d584c20e398974c27e962869e0d7337894466e0cf914a37
6
+ metadata.gz: 688abf67476e4787922f5a9bded16a3f84c00a19035002219397d3577b2c254da2b18906a0e0db90c528d46c22f27c9cbd0e2621a7f473df7947856aa7e75b40
7
+ data.tar.gz: 41f1000eeb8d5066741792e687c48515965a8a5776f1fa34662fb557cb43eae4a63481ad66e1ec2ae3e2b8575ca8e79be186dac6b8d667cc828489bc3a7c0a86
data/CHANGELOG.md CHANGED
@@ -91,3 +91,8 @@
91
91
  - Adding start_without_server! method for starting the framework without running a web server
92
92
  - Improving documentation
93
93
  - Raising the number of default threads from 5 to 10
94
+
95
+ ## [1.1.3] - 2023-06-05
96
+
97
+ - Changing default number of threads to 200
98
+ - Fixing error where sensitive inputs were not being hashed
data/README.md CHANGED
@@ -134,7 +134,7 @@ end
134
134
  "macaw": {
135
135
  "port": 8080,
136
136
  "bind": "localhost",
137
- "threads": 10,
137
+ "threads": 200,
138
138
  "log": {
139
139
  "max_length": 1024,
140
140
  "sensitive_fields": [
@@ -215,6 +215,8 @@ m.get('/test_params') do |context|
215
215
  end
216
216
  ```
217
217
 
218
+ - The default number of virtual threads in the thread pool is 200.
219
+
218
220
  - Rate Limit window should also be specified in seconds. Rate limit will be activated only if the `rate_limiting` config
219
221
  exists inside `application.json`.
220
222
 
@@ -34,10 +34,8 @@ module LogDataFilter
34
34
  return "" if data.nil?
35
35
 
36
36
  data = data.to_s.force_encoding("UTF-8")
37
- data = data.gsub(/[\x00-\x1F\x7F]/, "")
38
- data = data.gsub(/\s+/, " ")
39
- data = data.gsub("/", "")
40
37
  data = data.slice(0, config[:max_length])
38
+ data = data.gsub("\\", "")
41
39
 
42
40
  sensitive_fields.each do |field|
43
41
  next unless data.include?(field.to_s)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MacawFramework
4
- VERSION = "1.1.3"
4
+ VERSION = "1.1.4"
5
5
  end
@@ -31,7 +31,7 @@ module MacawFramework
31
31
  @config = JSON.parse(File.read("application.json"))
32
32
  @port = @config["macaw"]["port"] || 8080
33
33
  @bind = @config["macaw"]["bind"] || "localhost"
34
- @threads = @config["macaw"]["threads"] || 10
34
+ @threads = @config["macaw"]["threads"] || 200
35
35
  unless @config["macaw"]["cache"].nil?
36
36
  @cache = MemoryInvalidationMiddleware.new(@config["macaw"]["cache"]["cache_invalidation"].to_i || 3_600)
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macaw_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aria Diniz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prometheus-client