Skip to content

Commit 6535a6e

Browse files
committed
Update dependencies to current RubyGems releases
Bumped httparty to ~> 0.24.0, rubocop-rake to ~> 0.7.0, and bundler to ~> 4.0 to track current RubyGems releases and maintain compatibility with modern tooling.
1 parent 3981f20 commit 6535a6e

5 files changed

Lines changed: 41 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Change type: additive (initial extraction)
3333
`SECURITY.md`, `CODE_OF_CONDUCT.md`, `MIT-LICENSE`, `ROADMAP.md`,
3434
`TODO.md`, GitHub issue/PR templates, CI workflows, and `.coderabbit.yaml`.
3535

36+
### Changed
37+
38+
- Bumped `httparty` to `~> 0.24.0` (from `~> 0.22.0`) and `rubocop-rake` to
39+
`~> 0.7.0` (from `~> 0.6.0`) to track current RubyGems releases.
40+
- Bumped the development `bundler` constraint to `~> 4.0` (from `~> 2.5`).
41+
3642
## [0.1.0] - 2026-07-11
3743

3844
### Added

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ source 'https://rubygems.org'
44
gemspec
55

66
group :development, :test do
7-
gem 'bundler', '~> 2.5'
7+
gem 'bundler', '~> 4.0'
88
gem 'rake', '~> 13.2'
99
gem 'rspec', '~> 3.13'
1010
gem 'rubocop', '~> 1.64', require: false
1111
gem 'rubocop-performance', '~> 1.21', require: false
12-
gem 'rubocop-rake', '~> 0.6.0', require: false
12+
gem 'rubocop-rake', '~> 0.7.0', require: false
1313
gem 'rubocop-rspec', '~> 3.0', require: false
1414
gem 'simplecov', '~> 0.22.0', require: false
1515
end

Gemfile.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
ruby_api_pack_core (0.1.0)
5-
httparty (~> 0.22.0)
5+
httparty (~> 0.24.0)
66
oj (~> 3.16)
77

88
GEM
@@ -13,7 +13,7 @@ GEM
1313
csv (3.3.5)
1414
diff-lcs (1.6.2)
1515
docile (1.4.1)
16-
httparty (0.22.0)
16+
httparty (0.24.2)
1717
csv
1818
mini_mime (>= 1.0.0)
1919
multi_xml (>= 0.5.2)
@@ -67,8 +67,9 @@ GEM
6767
lint_roller (~> 1.1)
6868
rubocop (>= 1.75.0, < 2.0)
6969
rubocop-ast (>= 1.47.1, < 2.0)
70-
rubocop-rake (0.6.0)
71-
rubocop (~> 1.0)
70+
rubocop-rake (0.7.1)
71+
lint_roller (~> 1.1)
72+
rubocop (>= 1.72.1)
7273
rubocop-rspec (3.10.2)
7374
lint_roller (~> 1.1)
7475
regexp_parser (>= 2.0)
@@ -89,15 +90,15 @@ PLATFORMS
8990
x86_64-linux
9091

9192
DEPENDENCIES
92-
bundler (~> 2.5)
93+
bundler (~> 4.0)
9394
rake (~> 13.2)
9495
rspec (~> 3.13)
9596
rubocop (~> 1.64)
9697
rubocop-performance (~> 1.21)
97-
rubocop-rake (~> 0.6.0)
98+
rubocop-rake (~> 0.7.0)
9899
rubocop-rspec (~> 3.0)
99100
ruby_api_pack_core!
100101
simplecov (~> 0.22.0)
101102

102103
BUNDLED WITH
103-
2.5.22
104+
4.0.16

ruby_api_pack_core.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
3737
spec.require_paths = ['lib']
3838

3939
# Main Dependencies
40-
spec.add_dependency 'httparty', '~> 0.22.0'
40+
spec.add_dependency 'httparty', '~> 0.24.0'
4141
spec.add_dependency 'oj', '~> 3.16'
4242
end

spec/ruby_api_pack_core/connection/base_spec.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,30 @@ def auth_headers
138138

139139
expect(connection.api_get).to eq({})
140140
end
141+
142+
it 'raises when the response has no headers' do
143+
headerless_response = instance_double(
144+
HTTParty::Response,
145+
code: 200,
146+
body: '{"id":1}',
147+
headers: nil
148+
)
149+
allow(HTTParty).to receive(:get).and_return(headerless_response)
150+
151+
expect { connection.api_get }.to raise_error(/Unexpected response/)
152+
end
153+
154+
it 'raises when the content-type header is missing' do
155+
no_content_type_response = instance_double(
156+
HTTParty::Response,
157+
code: 200,
158+
body: '{"id":1}',
159+
headers: {}
160+
)
161+
allow(HTTParty).to receive(:get).and_return(no_content_type_response)
162+
163+
expect { connection.api_get }.to raise_error(/Unexpected response/)
164+
end
141165
end
142166

143167
describe 'unimplemented #auth_headers' do

0 commit comments

Comments
 (0)