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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fbc814d168650a7fd1464610ae0c6e87cf7f68b8cf5e3e1e139e2bb71e6891f
4
- data.tar.gz: 3de3b4941071c1afeebbd27327f5642074dfc1e418beb9625e1efcf9e98db58e
3
+ metadata.gz: f4ef66759fc8f50747be3c2db4cc9b723ccdb0d0fcce0ed1889b485de2376577
4
+ data.tar.gz: ae7f83ed0066939cf04784ce5fbcd128b193db0b708327129d47f53b3028b09f
5
5
  SHA512:
6
- metadata.gz: 3b69fbe36290bda8d3323b6dab93d3931e796667ee85ce92edb383e80e7ea849b2296baefbe2726bab6effe148dfdcfd7a5e896dcf68c71b50a25f730ac90caa
7
- data.tar.gz: c9be99a9577a0d09039bc4208989074a77ad6eb836802b27a362945c6d55a3f6d82c7257502b97cd5f591b86cbe0e6c9191474085c91e87029640ce2aac48d6d
6
+ metadata.gz: 0bf113e75dc7c84a6801d8e665886938c1987426b251cfbebfb9e35161504a1053d32f6b7d87143f79997057d262590b1f2ebda86889871fc4aa9d8d7af1d6e4
7
+ data.tar.gz: dddad11c115f767ef389b4052b5e4ae302bccd19ecbed3db27b5818a61a37922ac4445a3b5ea17f42d94ddfa8c39f20b5c6a167854fa214b37e11755fce439aa
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -29,6 +29,10 @@ class ShafClient
29
29
  JSON.pretty_generate(to_h)
30
30
  end
31
31
 
32
+ def inspect
33
+ to_s
34
+ end
35
+
32
36
  def attribute(key)
33
37
  raise Error, "No attribute for key: #{key}" unless attributes.key? key
34
38
  attributes.fetch(key.to_sym)
@@ -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.1
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-09-23 00:00:00.000000000 Z
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