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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f94fcac53cdc8ef16859d5285216f15d1e9d367426d8ec5f08d74e187fbd7cc
4
- data.tar.gz: 4336e1fb22567b68a7d272d8a07eac92493b034ee4e288ac0f7d7ae6ce8dd860
3
+ metadata.gz: b9ca333da6fb958d62956348fee363cb5c79027171d823609e9bc61a890507eb
4
+ data.tar.gz: 249c075745946d222e5333d1716f4572381d31598a6f61eaea80ed2f91cd3df1
5
5
  SHA512:
6
- metadata.gz: 5e1d6135c95152cd774bdf69ec602162015d2bd5175b05dae54090e5f84174ae443b2c33d9bfda0fb51a25170f34dd39abacb0da0833e77b20cbab1c4ec6b7bd
7
- data.tar.gz: 399c05ce2908bcd607e4c08f3f26acf072ba1f29fa37ba2f8432be90eb55ad67171802f126406e381cb35232140e1fc65dde0863cea835065b0d0467c0b14d3d
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'bundler/setup'
5
- require 'price-hubble'
5
+ require 'pricehubble'
6
6
  require 'pp'
7
7
 
8
8
  # You can add fixtures and/or initialization code here to make experimenting
data/bin/run CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'bundler/setup'
5
- require 'price-hubble'
5
+ require 'pricehubble'
6
6
  require 'pp'
7
7
 
8
8
  $stdout.sync = true
@@ -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]}", color_status(status), true)
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.
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module PriceHubble
5
5
  # The version of the +price-hubble+ gem
6
- VERSION = '2.7.0'
6
+ VERSION = '2.8.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pricehubble
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer