Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Faraday gzip #1

Merged
merged 2 commits into from
Nov 25, 2023
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- [#402](https://github.com/JsonApiClient/json_api_client/pull/402) - Remove deprecated faraday_middleware and add faraday-gzip

## 1.22.0

- [#403](https://github.com/JsonApiClient/json_api_client/pull/403) - Feature: Use the association options to lookup relationship class
Expand Down
2 changes: 1 addition & 1 deletion json_api_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|

s.add_dependency "activesupport", '>= 3.2.0'
s.add_dependency "faraday", '>= 0.15.2', '< 2.0'
s.add_dependency "faraday_middleware", '>= 0.9.0', '< 2.0'
s.add_dependency "faraday-gzip", '>= 0.1.0', '< 2.0'
s.add_dependency "addressable", '~> 2.2'
s.add_dependency "activemodel", '>= 3.2.0'
s.add_dependency "rack", '>= 0.2'
Expand Down
2 changes: 1 addition & 1 deletion lib/json_api_client.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'faraday'
require 'faraday_middleware'
require 'faraday/gzip'
require 'json'
require 'addressable/uri'
require 'json_api_client/formatter'
Expand Down
2 changes: 1 addition & 1 deletion lib/json_api_client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(options = {})
builder.use Middleware::JsonRequest
builder.use Middleware::Status, status_middleware_options
builder.use Middleware::ParseJson
builder.use ::FaradayMiddleware::Gzip
builder.use ::Faraday::Gzip::Middleware
builder.adapter(*adapter_options)
end
yield(self) if block_given?
Expand Down