hyperwallet-api 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hyperwallet/client.rb +5 -2
- data/lib/hyperwallet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d426190ee21f1434fb873912ff0a9a904a603cc8f024dfc087e71266aa81a618
|
4
|
+
data.tar.gz: d2d168b552407b395545d2486222b55a3dd0b26d7f50f726c9e2bd69dd5483ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6826e0e69d72289b6591026af182b3b6cfea42f01301e4b8917a4c76288d8ffd1876f9d7e19f50a415d42188a75b36dbd7ed0cf8e13198b2fa19de1313c86581
|
7
|
+
data.tar.gz: d0f2e1c813a38f09ace6b8d56d96970c6623302d5e20f6236a9e417b072879ab24da1007b3dd53b6fa05399310a78919f6033f7ba6a39d5cf146695bc240443a
|
data/lib/hyperwallet/client.rb
CHANGED
@@ -11,14 +11,15 @@ module Hyperwallet
|
|
11
11
|
include Hyperwallet::Client::User
|
12
12
|
include Hyperwallet::Client::WebhookNotification
|
13
13
|
|
14
|
-
attr_reader :url, :username, :password, :logger, :connection, :adapter
|
14
|
+
attr_reader :url, :username, :password, :logger, :connection, :adapter, :proxy
|
15
15
|
|
16
|
-
def initialize(url:, username:, password:, logger: true, adapter: Faraday.default_adapter)
|
16
|
+
def initialize(url:, username:, password:, logger: true, adapter: Faraday.default_adapter, proxy: nil)
|
17
17
|
@url = "#{url}/rest/v4/"
|
18
18
|
@username = username
|
19
19
|
@password = password
|
20
20
|
@logger = logger
|
21
21
|
@adapter = adapter
|
22
|
+
@proxy = proxy
|
22
23
|
end
|
23
24
|
|
24
25
|
def delete(path, options = {})
|
@@ -54,6 +55,8 @@ module Hyperwallet
|
|
54
55
|
headers: headers
|
55
56
|
}
|
56
57
|
|
58
|
+
client_opts[:proxy] = proxy if proxy
|
59
|
+
|
57
60
|
Faraday.new(client_opts) do |conn|
|
58
61
|
conn.request :authorization, :basic, username, password
|
59
62
|
conn.request :json
|
data/lib/hyperwallet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperwallet-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|