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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5ab8ef7e9e508e277635dd3e28d6713ab98a575
4
- data.tar.gz: 8ab96fc4116fff9e5984afba8f8c35355fa511f0
3
+ metadata.gz: 659ffec61da1f314d37ee5a99d00bb302930a41a
4
+ data.tar.gz: b411441c8d0680fb81f4dc1a6d297c1745d8499f
5
5
  SHA512:
6
- metadata.gz: efd1d57883bc7989a620cb6b5e4818993b441a22f881eb18c29bbafe6ba8c4dcd5a7112b53daa9db3b6d9ef5b9da44caf7347f52b8c7d285a2abd9fd64c076b9
7
- data.tar.gz: e580151244231e06ebcf162806e686632744356ce036f696374492357a80bfd69734d5ed244127753bdf9d470f41e9e69bd1d07a5314f183e383617efd96d260
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
@@ -1,3 +1,3 @@
1
1
  module WealthForge
2
- VERSION = '2.2.5'
2
+ VERSION = '2.2.6'
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.5
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-06 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday