pricehubble 2.7.0 → 2.8.0
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 +4 -0
- data/bin/console +1 -1
- data/bin/run +1 -1
- data/lib/price_hubble/instrumentation/log_subscriber.rb +6 -6
- data/lib/price_hubble/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9ca333da6fb958d62956348fee363cb5c79027171d823609e9bc61a890507eb
|
|
4
|
+
data.tar.gz: 249c075745946d222e5333d1716f4572381d31598a6f61eaea80ed2f91cd3df1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d37544a971872aa274e3fa0428c661a4b7b728da647228c82d0d458cb5fab19c49e0a7a487bbe77ba15752789ddf27d01756cfaa375cc98ee250e74ddb847f0
|
|
7
|
+
data.tar.gz: a76d61e61cb5c7e25c617d60f1b439dafd6dd1351e85a56c165bcf8d26d858a446dbc75dff8ef17bada70ff936d01d7a67cccaa2f14a08b9434393ab47c74bfe
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 2.8.0 (12 February 2026)
|
|
6
|
+
|
|
7
|
+
* Corrected broken `ActiveSupport::LogSubscriber#color` usage ([#29](https://github.com/hausgold/pricehubble/pull/29))
|
|
8
|
+
|
|
5
9
|
### 2.7.0 (10 February 2026)
|
|
6
10
|
|
|
7
11
|
* Changed optional Ruby 4.0 CI matrix to required ([#28](https://github.com/hausgold/pricehubble/pull/28))
|
data/bin/console
CHANGED
data/bin/run
CHANGED
|
@@ -23,8 +23,6 @@ module PriceHubble
|
|
|
23
23
|
log_response_details(event)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
private
|
|
27
|
-
|
|
28
26
|
# Print some top-level request/action details.
|
|
29
27
|
#
|
|
30
28
|
# @param event [ActiveSupport::Notifications::Event] the subscribed event
|
|
@@ -82,7 +80,7 @@ module PriceHubble
|
|
|
82
80
|
def req_origin(env)
|
|
83
81
|
req = env.request.context
|
|
84
82
|
action = req[:action]
|
|
85
|
-
action = color(action, color_method(action), true)
|
|
83
|
+
action = color(action, color_method(action), bold: true)
|
|
86
84
|
client = req[:client].to_s.gsub('PriceHubble::Client', 'PriceHubble')
|
|
87
85
|
"#{client.underscore}##{action}"
|
|
88
86
|
end
|
|
@@ -93,7 +91,7 @@ module PriceHubble
|
|
|
93
91
|
# @return [String] the request identifier
|
|
94
92
|
def req_dest(env)
|
|
95
93
|
method = env[:method].to_s.upcase
|
|
96
|
-
method = color(method, color_method(method), true)
|
|
94
|
+
method = color(method, color_method(method), bold: true)
|
|
97
95
|
url = env[:url].to_s.gsub(/access_token=[^&]+/,
|
|
98
96
|
'access_token=[FILTERED]')
|
|
99
97
|
"#{method} #{url}"
|
|
@@ -104,10 +102,12 @@ module PriceHubble
|
|
|
104
102
|
# @param env [Faraday::Env] the request/response environment
|
|
105
103
|
# @return [String] the request identifier
|
|
106
104
|
def res_result(env)
|
|
107
|
-
return color('no response', RED, true).to_s if env.response.nil?
|
|
105
|
+
return color('no response', RED, bold: true).to_s if env.response.nil?
|
|
108
106
|
|
|
109
107
|
status = env[:status]
|
|
110
|
-
color("#{status}/#{env[:reason_phrase]}",
|
|
108
|
+
color("#{status}/#{env[:reason_phrase]}",
|
|
109
|
+
color_status(status),
|
|
110
|
+
bold: true)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
# Decide which color to use for the given HTTP status code.
|
data/lib/price_hubble/version.rb
CHANGED