finapps 0.3.5.pre → 0.3.6.pre

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: 5fc4c97cf77d4ef297efceaf2e5ab824c2509493
4
- data.tar.gz: f3e3fba687d1d5f29334e559e08e8191b3a75234
3
+ metadata.gz: ceea8a3333d8e705700d79a6de9a3eae862fdcf2
4
+ data.tar.gz: a2f666b1b30d0faf35ce55c5276ea7a9cc2267e7
5
5
  SHA512:
6
- metadata.gz: 604a3b63df9178644cd50bfe476863f90233557254a130b87f9a3470151d231d1b7f0ff09a75c7872ae23be1a8a11e7ad73669807209c32aec12d0d52885ac69
7
- data.tar.gz: 381117d7b2f38f09bab9d26f906ba55dfac9be7648b41ebba19f0aed3d1598aa216053059cf1d8fa79028622b4bc56b4bd7a0edb20dae14dea04c85b908f2cd6
6
+ metadata.gz: 7c62a3af92c89fcb965598732633144cc288c9d1b66e38d1d59e7fb9af0677b82f08abdce6f31dcffe26ec8f11486ffd4807dd7548ace7e88513632889109f44
7
+ data.tar.gz: f35b02cdb781280045af9e52500342f54b4b0ec16139e2d164302e5ceadd82fdfc606d869e58e8e61c8654ae78d49d805d311c690777d1c6bf35eca9ee4531a6
@@ -38,10 +38,10 @@ module FinApps
38
38
 
39
39
  body = response_body
40
40
  if body.present?
41
- if body.respond_to?(:error_messages)
41
+ if body.has_key?(:error_messages)
42
42
  message_array = body[:error_messages]
43
43
  else
44
- message_array = body[:messages] if body.respond_to?(:messages)
44
+ message_array = body[:messages] if body.has_key?(:messages)
45
45
  end
46
46
  end
47
47
 
@@ -52,7 +52,7 @@ module FinApps
52
52
  def response_body
53
53
  body = nil
54
54
  if @response.present?
55
- @response.respond_to?(:body) ? body = @response[:body] : body = @response
55
+ @response.has_key?(:body) ? body = @response[:body] : body = @response
56
56
  end
57
57
 
58
58
  body
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.3.5.pre'
2
+ VERSION = '0.3.6.pre'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5.pre
4
+ version: 0.3.6.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero