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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84e6822de4950f8e05d864190e9f9e33f797fba57315d03f6afcefde256d55ce
4
- data.tar.gz: 54a63819733f685b888589e7caf4043fed8e73140238c6cb835b688ccb76874d
3
+ metadata.gz: d426190ee21f1434fb873912ff0a9a904a603cc8f024dfc087e71266aa81a618
4
+ data.tar.gz: d2d168b552407b395545d2486222b55a3dd0b26d7f50f726c9e2bd69dd5483ae
5
5
  SHA512:
6
- metadata.gz: a0baecbbb0168149d6b39882d8d0084d10a7a4e9312aa2dceaa97fa1706bc24e9b87a1290823c5513316bb4fe4f7b43d39a8bfdec20d667f7f1a64e437d1a77e
7
- data.tar.gz: 9bffabb884b70ca0320f29a574b6ad6f238bc07870adbc00ca5d6a0372ce0061e8f1aff7e140aa80cddb717e7d235262681ea4831bfda635455d80ae902f5caf
6
+ metadata.gz: 6826e0e69d72289b6591026af182b3b6cfea42f01301e4b8917a4c76288d8ffd1876f9d7e19f50a415d42188a75b36dbd7ed0cf8e13198b2fa19de1313c86581
7
+ data.tar.gz: d0f2e1c813a38f09ace6b8d56d96970c6623302d5e20f6236a9e417b072879ab24da1007b3dd53b6fa05399310a78919f6033f7ba6a39d5cf146695bc240443a
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hyperwallet
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
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.3
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-16 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday