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

Commit 290931f

Browse files
tapajoslavoiesl
authored andcommitted
Remove depredated faraday_middleware
1 parent afeb8f8 commit 290931f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

json_api_client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
1313

1414
s.add_dependency "activesupport", '>= 3.2.0'
1515
s.add_dependency "faraday", '>= 0.15.2', '< 2.0'
16-
s.add_dependency "faraday_middleware", '>= 0.9.0', '< 2.0'
16+
s.add_dependency "faraday-gzip", '>= 0.1.0', '< 2.0'
1717
s.add_dependency "addressable", '~> 2.2'
1818
s.add_dependency "activemodel", '>= 3.2.0'
1919
s.add_dependency "rack", '>= 0.2'

lib/json_api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'faraday'
2-
require 'faraday_middleware'
2+
require 'faraday/gzip'
33
require 'json'
44
require 'addressable/uri'
55
require 'json_api_client/formatter'

lib/json_api_client/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(options = {})
1414
builder.use Middleware::JsonRequest
1515
builder.use Middleware::Status, status_middleware_options
1616
builder.use Middleware::ParseJson
17-
builder.use ::FaradayMiddleware::Gzip
17+
builder.use ::Faraday::Gzip::Middleware
1818
builder.adapter(*adapter_options)
1919
end
2020
yield(self) if block_given?

0 commit comments

Comments
 (0)