Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock faraday_middleware version #316

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 6.1.1 (2024-06-05)
- Unlock faraday_middleware version to allow 1.x

## 6.1.0 (2024-04-09)
- Replace `Faraday::Error::*` with `Faraday::*` error classes
- Handle all `Faraday::Error` instead of `Faraday::Error::ClientError`
Expand Down
2 changes: 1 addition & 1 deletion elastomer-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "addressable", "~> 2.5"
spec.add_dependency "faraday", ">= 0.17"
spec.add_dependency "faraday_middleware", "~> 0.14"
spec.add_dependency "faraday_middleware", ">= 0.14"
spec.add_dependency "multi_json", "~> 1.12"
spec.add_dependency "semantic", "~> 1.6"
end
2 changes: 1 addition & 1 deletion lib/elastomer_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module ElastomerClient
VERSION = "6.1.0"
VERSION = "6.1.1"

def self.version
VERSION
Expand Down
4 changes: 2 additions & 2 deletions test/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
it "uses the adapter specified at creation" do
c = ElastomerClient::Client.new(adapter: :test)

assert_includes c.connection.builder.handlers, Faraday::Adapter::Test
assert_equal c.connection.builder.adapter, Faraday::Adapter::Test
end

it "allows configuring the Faraday when a block is given" do
Expand All @@ -28,7 +28,7 @@
c = ElastomerClient::Client.new
adapter = Faraday::Adapter.lookup_middleware(Faraday.default_adapter)

assert_includes c.connection.builder.handlers, adapter
assert_equal c.connection.builder.adapter, adapter
end

it "uses the same connection for all requests" do
Expand Down