fluffy-ruby 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df63476d08e11dd837b8ec07e9ba6d12166d80b8
4
- data.tar.gz: 49384b5034f7d50716d7c5a28340fd698d2a7e6c
3
+ metadata.gz: fe019eb547ed16d6d0da4c2e69459b5bb5e63e6f
4
+ data.tar.gz: 2db810bb64f0fe18523e6e048fdcb4359c7aa842
5
5
  SHA512:
6
- metadata.gz: dccbe3c837d7c2a6c7ad14817718f3b68953c4dc24751cefd0527cc4408446353a97a6f09c3de6829d1e1cce596310a2504505eb851a01cdc7c2b6a13a0adf9c
7
- data.tar.gz: d823d9b23b7ff043d7e37dc636db8c51ae2be330b03e0918a42a49ade890bdd246ef49f74ae0db11a2dfbfb29e33290994c8de618035072a48bcfe7e9ef7bf59
6
+ metadata.gz: 628b852c35871593c742183c6f86a83d81ecebbb1aae129ee690bbc84366024bc7b2b8f782dbf3aa2f273d094147c5cb98725dd91b5c470baea8763b94d7dcf6
7
+ data.tar.gz: 421a9579d1a2f393a89111e8446ae9b5233cfb77528cbbd6b7b361189680e7bafe87a3590b8be061cf0e362bc50afb366b8b292c9d9bb62f1e883d7dbaa42ffc
@@ -57,7 +57,7 @@ module Fluffy
57
57
  #
58
58
  def patch(endpoint:, params: {})
59
59
  resp = self.http.patch([self.url, endpoint.is_a?(Array) ? endpoint.join('/') : endpoint].join('/'), params.to_json, {'Content-Type' => 'application/json', 'Accept' => 'application/json'})
60
- if resp.body.empty?
60
+ unless resp.body.empty?
61
61
  data = JSON.parse(resp.body)
62
62
  raise APIError.new(data['message'], data['error'], resp.status) if resp.status >= 400
63
63
  data['message']
@@ -1,5 +1,5 @@
1
1
  module Fluffy
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluffy-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti