footrest 0.5.5 → 0.5.6

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: be977a54a8e40ac5206e41dde7e61f108041caebef68dd02e70bc7729cd827a8
4
- data.tar.gz: '0958476e1cfba7825facf00d3f72067b666a16b66babc2c6e458dccbfae2335d'
3
+ metadata.gz: 40372fba249c8a24b3e6198a6926d935030fd191686884f9d357ad33af35306b
4
+ data.tar.gz: 60914c80b6bb3e30c853207dec563551463b8c9cf707a9ad36a752f547e3f7c6
5
5
  SHA512:
6
- metadata.gz: 140f2e7ec60b8841ca9148036456ef803cec9a042fdbd239094605f97ac16ecbaa9c9b3240e21594d4fd136ca4439c4c8fcc6dd211fb0e19250cfe33d8eba81a
7
- data.tar.gz: 9770fe04f0f9ec7015bc8081c177fb17714b883ac530a7688b94652f54f052fbf6a6dbf088641a72bf2d92263c0ea32ee8339d599348b41be669346eaea2495e
6
+ metadata.gz: '0578c75a4542254954a50420c637b93148c9c2a8c42c9c2cecbd2ca7640b390205cddf4783a9e6caecb9be0784ab7e9d002f2617fcf18b41a1a11f1aa61a920b'
7
+ data.tar.gz: ff0192a555472cba9afba3181581b1db8c81e355a72a8d359336e8fd2bbbe3fab3ad6b3c1ccdc803b844af68026ddc90b8e31d526406ae203849b37181c73698
@@ -34,7 +34,8 @@ module Footrest
34
34
  end
35
35
 
36
36
  def errors
37
- JSON::pretty_generate(JSON::parse(@body)["errors"])
37
+ parsed_body = JSON::parse(@body)
38
+ JSON::pretty_generate(parsed_body["errors"] || parsed_body)
38
39
  rescue
39
40
  @body
40
41
  end
@@ -1,3 +1,3 @@
1
1
  module Footrest
2
- VERSION = '0.5.5' unless defined?(Footrest::VERSION)
2
+ VERSION = '0.5.6' unless defined?(Footrest::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-23 00:00:00.000000000 Z
12
+ date: 2024-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake