httpigeon 2.3.1 → 2.3.3

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: 16ce49310907bd1fa04c88e931ece4ef802242cd02de04902f8e46c5fe1abf70
4
- data.tar.gz: d556922db92044afa1b0f27ab8711319e5475c9e9ea2248139b4b58d5d120f42
3
+ metadata.gz: 26b229037a0922f7b415061dcb5526276cf4df1ac8775c9a76e07b8bcbba8a46
4
+ data.tar.gz: e0e8832b8e0c53b54c8866e6a0aaff54353107454820397a94e502553f7344ea
5
5
  SHA512:
6
- metadata.gz: f3f59f055d2c4d7f9f27008bbf61b80eb2479fb4c2d9e7f723954bdbe334d01a926a06800b613fabac69de0057d08e4c7144f17b1c10098130f8befa7826fb35
7
- data.tar.gz: 8ae56db04ef5262ac0f606ee349f0e8c1807d2ff8209f526e6e5677a0d18d96f479aaf55c49e97f0368251dfa01f84c64809bc834fc89a96128c7f920fda350b
6
+ metadata.gz: a45461037b0036849d041936f3314c515f153e0c205cbd99ae43433b7057c48e55fd6306b60837ec5942a9c7b307bfbbee9a350cc566ff56b0be373f6e22f9fc
7
+ data.tar.gz: 06ce613d96db3663827f3ce9c71979275e2621417fd1679fc390c003e3fcc0ee776219743d89b33d7f255924f342367d48305cc1de659aa95861e8db905e74eb
@@ -25,5 +25,5 @@ jobs:
25
25
  - name: Auto Commit
26
26
  uses: stefanzweifel/git-auto-commit-action@v5
27
27
  with:
28
- commit_message: Rubocop Auto Corrections
28
+ commit_message: chore: Rubocop Auto Corrections
29
29
  commit_user_name: Rubocop
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.3](https://github.com/dailypay/httpigeon/compare/v2.3.2...v2.3.3) (2025-08-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **main:** Upgrade rake version ([#48](https://github.com/dailypay/httpigeon/issues/48)) ([b83a5c2](https://github.com/dailypay/httpigeon/commit/b83a5c23ac326d5741000437467845b102ccdfb4))
9
+
10
+ ## [2.3.2](https://github.com/dailypay/httpigeon/compare/v2.3.1...v2.3.2) (2024-11-14)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **UNTICKETED:** Dont parse pdf as json ([#44](https://github.com/dailypay/httpigeon/issues/44)) ([fd4c13c](https://github.com/dailypay/httpigeon/commit/fd4c13cbb6c8084aa054c2daa756ace651e1338b))
16
+
3
17
  ## [2.3.1](https://github.com/dailypay/httpigeon/compare/v2.3.0...v2.3.1) (2024-07-11)
4
18
 
5
19
 
data/httpigeon.gemspec CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ["lib"]
29
29
 
30
30
  spec.add_dependency "faraday", "~> 2.7.6"
31
- spec.add_dependency "activesupport", "~> 7.0.4"
31
+ spec.add_dependency "activesupport", "~> 7.2.0"
32
32
 
33
- spec.add_development_dependency "rake", "~> 13.0"
33
+ spec.add_development_dependency "rake", "~> 13.3"
34
34
  spec.add_development_dependency "rspec", "~> 3.4"
35
35
  spec.add_development_dependency "simplecov"
36
36
  spec.add_development_dependency "rubocop", "~> 1.65"
@@ -5,7 +5,7 @@ module HTTPigeon
5
5
  attr_reader :request, :parsed_response, :raw_response
6
6
 
7
7
  delegate :each, :to_h, :to_json, :with_indifferent_access, to: :parsed_response
8
- delegate :status, :body, :env, to: :raw_response
8
+ delegate :status, :body, :env, :headers, to: :raw_response
9
9
 
10
10
  def initialize(request, raw_response)
11
11
  @request = request
@@ -25,7 +25,8 @@ module HTTPigeon
25
25
  private
26
26
 
27
27
  def parse_response
28
- parsed_body = body.is_a?(String) ? JSON.parse(body) : body
28
+ parsable_content_type = headers.blank? || headers['content-type'].blank? || headers['content-type'].include?('application/json')
29
+ parsed_body = body.is_a?(String) && parsable_content_type ? JSON.parse(body) : body
29
30
  @parsed_response = deep_with_indifferent_access(parsed_body)
30
31
  rescue JSON::ParserError
31
32
  @parsed_response = body.presence || {}
@@ -1,3 +1,3 @@
1
1
  module HTTPigeon
2
- VERSION = "2.3.1".freeze
2
+ VERSION = "2.3.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpigeon
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 2k-joker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2025-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 7.0.4
33
+ version: 7.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 7.0.4
40
+ version: 7.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '13.0'
47
+ version: '13.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '13.0'
54
+ version: '13.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ licenses:
178
178
  metadata:
179
179
  homepage_uri: https://github.com/dailypay/httpigeon
180
180
  source_code_uri: https://github.com/dailypay/httpigeon
181
- post_install_message:
181
+ post_install_message:
182
182
  rdoc_options: []
183
183
  require_paths:
184
184
  - lib
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubygems_version: 3.3.27
197
- signing_key:
197
+ signing_key:
198
198
  specification_version: 4
199
199
  summary: Simple, easy way to make and log HTTP requests and responses
200
200
  test_files: []