pricehubble 2.6.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: e14dc76841b3b1b50cb876bfd2be83a03d767841edcccb5aca31be9213c35007
4
- data.tar.gz: b1db2f5be3bf077452151f8b3aecc9b81b7008cc4a890be778a17336e0f0940e
3
+ metadata.gz: b9ca333da6fb958d62956348fee363cb5c79027171d823609e9bc61a890507eb
4
+ data.tar.gz: 249c075745946d222e5333d1716f4572381d31598a6f61eaea80ed2f91cd3df1
5
5
  SHA512:
6
- metadata.gz: ccf1eebbd235ddb1167dc4a75db19d24d4eb1f51567ec0434ca87bdbd54363f04026a89d06412ede393b9785e714de3a2d978acb29248925aefddfeec8ac6fae
7
- data.tar.gz: 67e6bd8847bbaec5bc3ec5a59bdc2af31e67dcc31f8ecbf6befea3ff155888e6baa5a47b1ae730d02eb0adaf938be96ff4548519673b59c18047c7d00955b1d1
6
+ metadata.gz: 2d37544a971872aa274e3fa0428c661a4b7b728da647228c82d0d458cb5fab19c49e0a7a487bbe77ba15752789ddf27d01756cfaa375cc98ee250e74ddb847f0
7
+ data.tar.gz: a76d61e61cb5c7e25c617d60f1b439dafd6dd1351e85a56c165bcf8d26d858a446dbc75dff8ef17bada70ff936d01d7a67cccaa2f14a08b9434393ab47c74bfe
@@ -20,7 +20,6 @@ jobs:
20
20
  matrix:
21
21
  ruby: ['3.3', '3.4', '4.0']
22
22
  rails: ['8.0', '8.1']
23
- continue-on-error: ${{ matrix.ruby == '4.0' }}
24
23
  env:
25
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
26
25
  steps:
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
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
+
9
+ ### 2.7.0 (10 February 2026)
10
+
11
+ * Changed optional Ruby 4.0 CI matrix to required ([#28](https://github.com/hausgold/pricehubble/pull/28))
12
+
5
13
  ### 2.6.0 (28 January 2026)
6
14
 
7
15
  * Dropped Rails 7.1 support ([#27](https://github.com/hausgold/pricehubble/pull/27))
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.6.0'
6
+ VERSION = '2.8.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
data/pricehubble.gemspec CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency 'faraday', '~> 2.14'
39
39
  spec.add_dependency 'faraday-follow_redirects', '>= 0.5.0'
40
40
  spec.add_dependency 'faraday-multipart', '~> 1.2'
41
- spec.add_dependency 'faraday-parse_dates', '>= 0.1.1'
41
+ spec.add_dependency 'faraday-parse_dates', '~> 1.0'
42
42
  spec.add_dependency 'mutex_m', '>= 0.3'
43
43
  spec.add_dependency 'recursive-open-struct', '~> 2.0'
44
44
  spec.add_dependency 'zeitwerk', '~> 2.6'
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.6.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -83,16 +83,16 @@ dependencies:
83
83
  name: faraday-parse_dates
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 0.1.1
88
+ version: '1.0'
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.1.1
95
+ version: '1.0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: mutex_m
98
98
  requirement: !ruby/object:Gem::Requirement