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 +4 -4
- data/lib/wealthforge/api_exception.rb +3 -0
- data/lib/wealthforge/connection.rb +12 -1
- data/lib/wealthforge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb10ed89703b868cf24d1ea795c5f95e859e201e
|
4
|
+
data.tar.gz: 7763f933910a7402d7175c8707a6f6ddc6bf51b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289ee7236c93d4112aa1dae5b2799d2c7d25ecbdda6f24325519a83d0b26f62d686a36a84dd563507b2b0b08420474d97c0df961ea59010badc103b19180b91a
|
7
|
+
data.tar.gz: 52f126e05a81560617bf4f3dda49c317e26852646c01e227872daf2161f98198362aa25c56de4fb58831843830a30e56ef316703c579b062c7d35f983dcb87c0
|
@@ -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|
|
data/lib/wealthforge/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|