wealthforge-ruby 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wealthforge/connection.rb +14 -0
- 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: 659ffec61da1f314d37ee5a99d00bb302930a41a
|
4
|
+
data.tar.gz: b411441c8d0680fb81f4dc1a6d297c1745d8499f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5e7f186cce7f361e5472fc5f4684c4dd1bd3bfca083f1c5b6e0f330324632fe9164acd41c6adf802074b146b3e267ef71289623b305287771aa9365e501667
|
7
|
+
data.tar.gz: 3fdc774a2ab6e412f825fc5ebf3d03cfb996ef2c45d5fda28123e5c2269c9a7b23d3d575489325bfb1f67a5ae93bf9f0cf8b5175e56298fb0dd61e998e47eaf7
|
@@ -36,6 +36,20 @@ class WealthForge::Connection
|
|
36
36
|
end
|
37
37
|
|
38
38
|
|
39
|
+
def self.patch(endpoint, params)
|
40
|
+
begin
|
41
|
+
response = connection.patch do |req|
|
42
|
+
req.url endpoint
|
43
|
+
req.headers['Content-Type'] = 'application/json'
|
44
|
+
req.body = params.to_json
|
45
|
+
end
|
46
|
+
rescue => e
|
47
|
+
raise WealthForge::ApiException.new(e)
|
48
|
+
end
|
49
|
+
JSON.parse(response.body)
|
50
|
+
end
|
51
|
+
|
52
|
+
|
39
53
|
def self.file_upload (endpoint, file, filename, mime_type)
|
40
54
|
payload = {:file => Faraday::UploadIO.new(file, mime_type, filename)}
|
41
55
|
begin
|
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.6
|
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-09-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|