macaw_framework 1.1.3 → 1.1.4
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/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/lib/macaw_framework/data_filters/log_data_filter.rb +1 -3
- data/lib/macaw_framework/version.rb +1 -1
- data/lib/macaw_framework.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc7bfb37c6506663a831ad24ad26b97236980ae448affe8010b4f9a7b35d454
|
4
|
+
data.tar.gz: 43ab3f174a2bc222d71f7f13353546da14d124d2a67f9169775a5927d5cd815f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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":
|
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)
|
data/lib/macaw_framework.rb
CHANGED
@@ -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"] ||
|
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.
|
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-
|
11
|
+
date: 2023-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prometheus-client
|