macaw_framework 1.3.21 → 1.3.22
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6884907c34b2719e0166f6a3c7fc5992e277126ec738a6a08e3fbaa71c427b0a
|
4
|
+
data.tar.gz: 554b0671565902d395fa289ae970cb7b149f0b61f9dcebdfdd9947bc277807fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bde5aa848d982a6cd112c9f8eb57b84c39aaf30463f0a21e8ce79dfee2b54bc6711598da4abd3c0287a32f502123a48715700c68f937118fe0cdbb2c045733cd
|
7
|
+
data.tar.gz: 2248a9ea06a53f7602d366fdc2524a7c40866042102ec84fb6b1a724e9617175f2278bf2075fd6b9b7f9bc36626b64824f6cd0baee25ce6346f554bba9e76fd1
|
data/CHANGELOG.md
CHANGED
@@ -151,3 +151,6 @@
|
|
151
151
|
- Refactoring shutdown method
|
152
152
|
- Fixing a bug where a HTTP call without client data broke the parser
|
153
153
|
- Removing logs registering new HTTP connections to reduce log bloat
|
154
|
+
|
155
|
+
## [1.3.3]
|
156
|
+
- Fixing error with tests on Ruby 3.4.x due to splash operator
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
# MacawFramework
|
3
3
|
|
4
4
|
MacawFramework is a lightweight, easy-to-use web framework for Ruby designed to simplify the development of small to
|
5
|
-
medium-sized web applications.
|
6
|
-
provides developers with the essential tools to quickly build and deploy their applications.
|
5
|
+
medium-sized web applications. Weighting less than 26Kb with support for various HTTP methods, caching, and session management,
|
6
|
+
MacawFramework provides developers with the essential tools to quickly build and deploy their applications.
|
7
7
|
|
8
8
|
- [MacawFramework](#macawframework)
|
9
9
|
* [Features](#features)
|
@@ -31,7 +31,8 @@ provides developers with the essential tools to quickly build and deploy their a
|
|
31
31
|
- Session management with server-side in-memory storage
|
32
32
|
- Basic rate limiting and SSL support
|
33
33
|
- Prometheus integration for monitoring and metrics
|
34
|
-
-
|
34
|
+
- Less than 26Kb
|
35
|
+
- Easy to learn
|
35
36
|
|
36
37
|
## Installation
|
37
38
|
|
@@ -3,15 +3,15 @@
|
|
3
3
|
##
|
4
4
|
# Aspect that provide cache for the endpoints.
|
5
5
|
module CacheAspect
|
6
|
-
def call_endpoint(cache, *args)
|
7
|
-
return super(*args) unless !cache[:cache].nil? && cache[:endpoints_to_cache]&.include?(args[0])
|
6
|
+
def call_endpoint(cache, *args, **kwargs)
|
7
|
+
return super(*args, **kwargs) unless !cache[:cache].nil? && cache[:endpoints_to_cache]&.include?(args[0])
|
8
8
|
|
9
9
|
cache_filtered_name = cache_name_filter(args[1], cache[:cached_methods][args[0]])
|
10
10
|
|
11
11
|
cache[:cache].mutex.synchronize do
|
12
12
|
return cache[:cache].cache[cache_filtered_name][0] unless cache[:cache].cache[cache_filtered_name].nil?
|
13
13
|
|
14
|
-
response = super(*args)
|
14
|
+
response = super(*args, **kwargs)
|
15
15
|
cache[:cache].cache[cache_filtered_name] = [response, Time.now] if should_cache_response?(response[1])
|
16
16
|
response
|
17
17
|
end
|
@@ -8,8 +8,8 @@ require_relative '../data_filters/log_data_filter'
|
|
8
8
|
# the input and output of every endpoint called
|
9
9
|
# in the framework.
|
10
10
|
module LoggingAspect
|
11
|
-
def call_endpoint(logger, *args)
|
12
|
-
return super(*args) if logger.nil?
|
11
|
+
def call_endpoint(logger, *args, **kwargs)
|
12
|
+
return super(*args, **kwargs) if logger.nil?
|
13
13
|
|
14
14
|
begin
|
15
15
|
response = super(*args)
|
@@ -3,8 +3,8 @@
|
|
3
3
|
##
|
4
4
|
# Aspect that provides application metrics using prometheus.
|
5
5
|
module PrometheusAspect
|
6
|
-
def call_endpoint(prometheus_middleware, *args)
|
7
|
-
return super(*args) if prometheus_middleware.nil?
|
6
|
+
def call_endpoint(prometheus_middleware, *args, **kwargs)
|
7
|
+
return super(*args, **kwargs) if prometheus_middleware.nil?
|
8
8
|
|
9
9
|
start_time = Time.now
|
10
10
|
|
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.3.
|
4
|
+
version: 1.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aria Diniz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prometheus-client
|
@@ -76,7 +76,7 @@ metadata:
|
|
76
76
|
documentation_uri: https://rubydoc.info/gems/macaw_framework
|
77
77
|
homepage_uri: https://github.com/ariasdiniz/macaw_framework
|
78
78
|
source_code_uri: https://github.com/ariasdiniz/macaw_framework
|
79
|
-
post_install_message:
|
79
|
+
post_install_message:
|
80
80
|
rdoc_options: []
|
81
81
|
require_paths:
|
82
82
|
- lib
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubygems_version: 3.4.10
|
95
|
-
signing_key:
|
95
|
+
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: A lightweight back-end web framework
|
98
98
|
test_files: []
|