wealthforge-ruby 2.2.2 → 2.2.3

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
  SHA1:
3
- metadata.gz: f32dde536206f21e2428342f36cfde6cc009b23d
4
- data.tar.gz: bb2d5d7a99297958f5f4b13836b803529a412206
3
+ metadata.gz: cb10ed89703b868cf24d1ea795c5f95e859e201e
4
+ data.tar.gz: 7763f933910a7402d7175c8707a6f6ddc6bf51b7
5
5
  SHA512:
6
- metadata.gz: a591cc41c66770fe36905c4e17d7c0bd7732164d6734317b8f468b5763d8cf20f78bcd7dc02dd24d4d93e68fbb421b47dffccd973501d29b0364596a5a856737
7
- data.tar.gz: 7368b7c3ceb7496b9126ca5a96ddc384471bc1b7d38f2f4ba0d70ba12d5ddc5fabe0758bf6097e02d2f553ebb33e4141df8014068174a35d8469816bf6f3a44a
6
+ metadata.gz: 289ee7236c93d4112aa1dae5b2799d2c7d25ecbdda6f24325519a83d0b26f62d686a36a84dd563507b2b0b08420474d97c0df961ea59010badc103b19180b91a
7
+ data.tar.gz: 52f126e05a81560617bf4f3dda49c317e26852646c01e227872daf2161f98198362aa25c56de4fb58831843830a30e56ef316703c579b062c7d35f983dcb87c0
@@ -1,5 +1,8 @@
1
+ require 'pp'
2
+
1
3
  class WealthForge::ApiException < StandardError
2
4
  def initialize(e = nil)
5
+ pp e
3
6
  super e
4
7
  set_backtrace e.backtrace if e
5
8
  end
@@ -5,6 +5,7 @@ require 'csv'
5
5
  require 'timeout'
6
6
  require 'resolv-replace'
7
7
  require 'jwt'
8
+ require 'pp'
8
9
 
9
10
  class WealthForge::Connection
10
11
 
@@ -18,7 +19,9 @@ class WealthForge::Connection
18
19
  rescue => e
19
20
  raise WealthForge::ApiException.new(e)
20
21
  end
21
- JSON.parse(response.body)
22
+ result = JSON.parse(response.body)
23
+ check_result(result)
24
+ result
22
25
  end
23
26
 
24
27
 
@@ -61,6 +64,14 @@ class WealthForge::Connection
61
64
  end
62
65
 
63
66
 
67
+ def self.check_result(result)
68
+ pp result
69
+ unless result['errors'].nil?
70
+ pp result
71
+ end
72
+ end
73
+
74
+
64
75
  def self.connection_multipart
65
76
  set_token
66
77
  return Faraday.new(:url => @api_url) do |faraday|
@@ -1,3 +1,3 @@
1
1
  module WealthForge
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wealthforge-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Simone | dinosimone.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-15 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday