shaf_client 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/lib/faraday_http_cache_patch.rb +17 -0
- data/lib/shaf_client.rb +5 -0
- metadata +3 -2
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d368622457d097eda4375008f44dabd5f2757e860e777347fee28679eb517a3
|
4
|
+
data.tar.gz: 4f59085a13b589b01f3e4dec49c08410f3bc7617e54fa64f8d16fab260bb3a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9e353931db9365e43038a6bfbf89ec19a1bd5e1e96031821517e582261c730e7c2e4c860ee3e937951c042c454f5176e627d3b3fd3b3126bd7c696361aa5ee8
|
7
|
+
data.tar.gz: 7f23e71a7ccab43837f152ed5285118f1cbbff0aafdf439d18a58fba44ef736ceb00d260b3b4612638c5dc54b1338eedec3bece80c88a05ac5b7bd9d29f779e2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
�e�&&�]�V��X�|���ǝ�A��S����!�{dt+�\e�xu������:��7��pg�.�Y'�]=i��� 7��8�b;�Gޙ����Xw��KAW����lk�`�
|
@@ -0,0 +1,17 @@
|
|
1
|
+
faraday_version = Gem.loaded_specs['faraday']&.version.to_s
|
2
|
+
faraday_http_cache_version = Gem.loaded_specs['faraday-http-cache']&.version.to_s
|
3
|
+
|
4
|
+
if faraday_version.start_with?("0.16") && faraday_http_cache_version <= '2.0.0'
|
5
|
+
module Faraday
|
6
|
+
class HttpCache < Faraday::Middleware
|
7
|
+
def create_response(env)
|
8
|
+
hash = env.to_hash
|
9
|
+
{
|
10
|
+
status: hash[:status],
|
11
|
+
body: hash[:response_body] || hash[:body],
|
12
|
+
response_headers: hash[:response_headers]
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/shaf_client.rb
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'faraday'
|
4
4
|
require 'faraday-http-cache'
|
5
|
+
|
6
|
+
# FIXME remove this when faraday-http-cache has released this fix
|
7
|
+
# https://github.com/plataformatec/faraday-http-cache/pull/116
|
8
|
+
require 'faraday_http_cache_patch'
|
9
|
+
|
5
10
|
require 'json'
|
6
11
|
require 'shaf_client/error'
|
7
12
|
require 'shaf_client/middleware/redirect'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shaf_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sammy Henningsson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
ZMhjYR7sRczGJx+GxGU2EaR0bjRsPVlC4ywtFxoOfRG3WaJcpWGEoAoMJX6Z0bRv
|
31
31
|
M40=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2019-10-
|
33
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: faraday
|
@@ -100,6 +100,7 @@ executables: []
|
|
100
100
|
extensions: []
|
101
101
|
extra_rdoc_files: []
|
102
102
|
files:
|
103
|
+
- lib/faraday_http_cache_patch.rb
|
103
104
|
- lib/shaf_client.rb
|
104
105
|
- lib/shaf_client/api_error.rb
|
105
106
|
- lib/shaf_client/base_resource.rb
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
p�b�WQ�l%�f����;b�YjÛys��C��bC)(�rjlP:�����l�OP�����5�J��� � �mzU3�-"��䤌�ӂ�Ex#����h;aU�tK����Z�=�;�gq�ݑ��$�ܧ|�CYv� ��>I�"��/���5E�A����d[��ML^t�J������h1l�2���,���nȐ*��
|
2
|
+
v��O���3�����}Y|&Y�5Hk��*�֭ %$U���}5�iKe�6��
|