client-api 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 4bc6e5e982e231b27bb568a9b87675fd6def7f2f837b95cee5a06a3d8e2f094e
4
- data.tar.gz: 43e7aa4636e4b0ba848d703a495f5813781f3edf1686f56589d20e33626ac0fb
3
+ metadata.gz: 88ee419a1172be1de499fc4564ce1ede9c5c1766a40a112a4384b9f406fdbba3
4
+ data.tar.gz: 589900fad8455c679b3157285f8befcc7d014bddf08a2a194591bb71efed5d58
5
5
  SHA512:
6
- metadata.gz: 2aa6c79bc26dfb886f202e2d41527ea1cd2a723f4921d0e0a6e73e6533a736e1e7a5a9347a403ac0b455fd9b610caa3db32647e88b6018fc52804efdaef8b0da
7
- data.tar.gz: 42bdade9f62f70eb101614781b3a254d9f666f314cdf96570d2a898d75b645e9a5e4682524d1444a5dd1bc18d64f8c379c2c46ab027c9a43c02ff553c866223f
6
+ metadata.gz: 150d166c65d88c28049fa5477d61a33c4ac7c1d9a440d52a69cb78214094a8bc857249c0a73a8ba4a05b9fa3041b1c70557aaccb258fcf5c59d7acc563bd2dde
7
+ data.tar.gz: 6216951f3a2ccd019008a97c5421a6bac9bec563ea0fc81a2f38864cffbd01bbeb496cccaaf16b5883b982c4d1fd7160d5f1fe87ecc2ca8a5d7517d4c0d06514
@@ -36,14 +36,12 @@ module ClientApi
36
36
  end
37
37
 
38
38
  def body
39
- if [200, 201, 202, 204].include? status
39
+ unless @output.body == "" || @output.body.nil? || @output.body == "{}"
40
40
  unless json_output['Dirname'] == nil
41
41
  FileUtils.mkdir_p "#{json_output['Dirname']}"
42
42
  File.open("./output/#{json_output['Filename']}.json", "wb") {|file| file.puts JSON.pretty_generate(JSON.parse(@output.body))}
43
43
  end
44
- JSON.parse(@output.body) unless @output.body.empty?
45
- else
46
- JSON.parse(@output.message)
44
+ JSON.parse(@output.body)
47
45
  end
48
46
  end
49
47
 
@@ -1,3 +1,3 @@
1
1
  module ClientApi
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - prashanth-sams