hyperwallet-api 0.0.3 → 0.0.4
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 +3 -1
- 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: 49b92c96c1993b9af2f05641f9fd01f58a7657ca96bf9471ec8702a2d1058749
|
4
|
+
data.tar.gz: 6ee8f4cbc30b61c2ddbcdf3dc16e57fb616a6a435d56f7f9a77d35f896a33398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddfee8f8f80581b45c6a4f3307469504994f2a4e512c8a01acc832ee9173e4da62bb12e56e21cdf3d5c436ec90f7d93f842a2166c10c6f2e7f3becae5bf8f74b
|
7
|
+
data.tar.gz: 52f01ed989dffa6eb651cb89dc3cf8e789bb0aa01349dc74555b76ebdf6b75156d698979630c8ebad93aa135bc766fb5d266bd282c949ce059cd00b76480a617
|
data/lib/hyperwallet/client.rb
CHANGED
@@ -13,7 +13,7 @@ module Hyperwallet
|
|
13
13
|
|
14
14
|
attr_reader :url, :username, :password, :logger, :connection, :adapter
|
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
|
@@ -54,6 +54,8 @@ module Hyperwallet
|
|
54
54
|
headers: headers
|
55
55
|
}
|
56
56
|
|
57
|
+
client_opts[:proxy] = proxy if proxy
|
58
|
+
|
57
59
|
Faraday.new(client_opts) do |conn|
|
58
60
|
conn.request :authorization, :basic, username, password
|
59
61
|
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.4
|
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
|