shaf_client 0.6.1 → 0.6.2
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 +0 -0
- data/lib/shaf_client.rb +1 -0
- data/lib/shaf_client/base_resource.rb +4 -0
- data/lib/shaf_client/resource.rb +8 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ef66759fc8f50747be3c2db4cc9b723ccdb0d0fcce0ed1889b485de2376577
|
4
|
+
data.tar.gz: ae7f83ed0066939cf04784ce5fbcd128b193db0b708327129d47f53b3028b09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf113e75dc7c84a6801d8e665886938c1987426b251cfbebfb9e35161504a1053d32f6b7d87143f79997057d262590b1f2ebda86889871fc4aa9d8d7af1d6e4
|
7
|
+
data.tar.gz: dddad11c115f767ef389b4052b5e4ae302bccd19ecbed3db27b5818a61a37922ac4445a3b5ea17f42d94ddfa8c39f20b5c6a167854fa214b37e11755fce439aa
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shaf_client.rb
CHANGED
@@ -96,6 +96,7 @@ class ShafClient
|
|
96
96
|
options.fetch(:faraday_http_cache, {}).tap do |cache_params|
|
97
97
|
cache_params[:store] ||= options[:http_cache_store] if options[:http_cache_store]
|
98
98
|
cache_params[:shared_cache] ||= false
|
99
|
+
cache_params[:serializer] ||= Marshal
|
99
100
|
end
|
100
101
|
end
|
101
102
|
|
data/lib/shaf_client/resource.rb
CHANGED
@@ -28,6 +28,14 @@ class ShafClient
|
|
28
28
|
super(payload)
|
29
29
|
end
|
30
30
|
|
31
|
+
def inspect
|
32
|
+
<<~RESOURCE
|
33
|
+
Status: #{http_status}
|
34
|
+
Headers: #{headers}
|
35
|
+
#{to_s}
|
36
|
+
RESOURCE
|
37
|
+
end
|
38
|
+
|
31
39
|
%i[get put post delete patch].each do |method|
|
32
40
|
define_method(method) do |rel, payload = nil, **options|
|
33
41
|
href = link(rel).href
|
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.2
|
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-
|
33
|
+
date: 2019-10-04 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: faraday
|
metadata.gz.sig
CHANGED
Binary file
|