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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4ef66759fc8f50747be3c2db4cc9b723ccdb0d0fcce0ed1889b485de2376577
4
- data.tar.gz: ae7f83ed0066939cf04784ce5fbcd128b193db0b708327129d47f53b3028b09f
3
+ metadata.gz: 8d368622457d097eda4375008f44dabd5f2757e860e777347fee28679eb517a3
4
+ data.tar.gz: 4f59085a13b589b01f3e4dec49c08410f3bc7617e54fa64f8d16fab260bb3a22
5
5
  SHA512:
6
- metadata.gz: 0bf113e75dc7c84a6801d8e665886938c1987426b251cfbebfb9e35161504a1053d32f6b7d87143f79997057d262590b1f2ebda86889871fc4aa9d8d7af1d6e4
7
- data.tar.gz: dddad11c115f767ef389b4052b5e4ae302bccd19ecbed3db27b5818a61a37922ac4445a3b5ea17f42d94ddfa8c39f20b5c6a167854fa214b37e11755fce439aa
6
+ metadata.gz: e9e353931db9365e43038a6bfbf89ec19a1bd5e1e96031821517e582261c730e7c2e4c860ee3e937951c042c454f5176e627d3b3fd3b3126bd7c696361aa5ee8
7
+ data.tar.gz: 7f23e71a7ccab43837f152ed5285118f1cbbff0aafdf439d18a58fba44ef736ceb00d260b3b4612638c5dc54b1338eedec3bece80c88a05ac5b7bd9d29f779e2
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- #����7y�]�X7c[\�8 8~�&�UBh5F�4� ZR9h�����
1
+ �e�&&�]�V��X�|� ��ǝ�A��S����!�{dt+�\exu������:��7��p g�.�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.2
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-04 00:00:00.000000000 Z
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
- ��'�=T3f��˳i��{K(�<h_sRV �Y���s�����*�T��d����P���}E*t�,���~���k��7A��>)'nS_�����pou��N7O���-�J��� K`gI�-�s�|š�&O�"T�/̛75WO}�gqKw��`�L�*�
2
- CiN�Hi�����-��z�a�3���ZsO��Ym�� ���w����(�'ˇ��2�5�v�͙MGT�Ӝ�J��Y�;�6�v
1
+ p�bWQ�l%�f����;b�YjÛys��C��bC)(rjlP:�����lOP�����5�J��� �mzU3�-"��䤌�ӂ�Ex#����h;aUtK����Z�=�;�gq ݑ��$�ܧ|�CYv �>I�"��/���5E�A����d[��ML^t�J������h1l�2� ��,‡���nȐ*��
2
+ v��O���3�����}Y|&Y�5Hk��*�֭ %$U���}5iKe�6��