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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84e6822de4950f8e05d864190e9f9e33f797fba57315d03f6afcefde256d55ce
4
- data.tar.gz: 54a63819733f685b888589e7caf4043fed8e73140238c6cb835b688ccb76874d
3
+ metadata.gz: 49b92c96c1993b9af2f05641f9fd01f58a7657ca96bf9471ec8702a2d1058749
4
+ data.tar.gz: 6ee8f4cbc30b61c2ddbcdf3dc16e57fb616a6a435d56f7f9a77d35f896a33398
5
5
  SHA512:
6
- metadata.gz: a0baecbbb0168149d6b39882d8d0084d10a7a4e9312aa2dceaa97fa1706bc24e9b87a1290823c5513316bb4fe4f7b43d39a8bfdec20d667f7f1a64e437d1a77e
7
- data.tar.gz: 9bffabb884b70ca0320f29a574b6ad6f238bc07870adbc00ca5d6a0372ce0061e8f1aff7e140aa80cddb717e7d235262681ea4831bfda635455d80ae902f5caf
6
+ metadata.gz: ddfee8f8f80581b45c6a4f3307469504994f2a4e512c8a01acc832ee9173e4da62bb12e56e21cdf3d5c436ec90f7d93f842a2166c10c6f2e7f3becae5bf8f74b
7
+ data.tar.gz: 52f01ed989dffa6eb651cb89dc3cf8e789bb0aa01349dc74555b76ebdf6b75156d698979630c8ebad93aa135bc766fb5d266bd282c949ce059cd00b76480a617
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hyperwallet
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.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.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-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