synapse_pay_rest 3.4.3 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/synapse_pay_rest/http_client.rb +8 -0
- data/lib/synapse_pay_rest/version.rb +1 -1
- data/samples.md +2 -0
- 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: 8d3ce3eea0a120bcb6e3621ff90d6a8244f028608b7b84f242919a349889db97
|
4
|
+
data.tar.gz: 55725242d86c842b4df14ebf2dd123e47bf41cc9445652cfc4e9ad5166d1c86f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee70af94009f67035588125232ac138bb23656e517a54964d606174d338c6d12008dda292d6cc3ab05ce48e89e7cd326652111517f27603c8b005340d3d53a7
|
7
|
+
data.tar.gz: f742f518328c0efcd5eb1f89d4a5963a61dc6821dcdb730be265d300f9bf1cd8f6992e2cfb42fd767ef33fd66210664ec80344824ba04eaea7aab17a17a72df5
|
@@ -10,6 +10,10 @@ module SynapsePayRest
|
|
10
10
|
# @return [Hash] various settings related to request headers
|
11
11
|
attr_accessor :base_url, :config
|
12
12
|
|
13
|
+
# @!attribute [rw] proxy_url
|
14
|
+
# @return [String] the url which is used to proxy outboard requests
|
15
|
+
attr_reader :proxy_url
|
16
|
+
|
13
17
|
# @param base_url [String] the base url of the API (production or sandbox)
|
14
18
|
# @param client_id [String]
|
15
19
|
# @param client_secret [String]
|
@@ -17,12 +21,16 @@ module SynapsePayRest
|
|
17
21
|
# @param ip_address [String]
|
18
22
|
# @param logging [Boolean] (optional) logs to stdout when true
|
19
23
|
# @param log_to [String] (optional) file path to log to file (logging must be true)
|
24
|
+
# @param proxy_url [String] (optional) proxy url which is used to proxy outbound requests
|
20
25
|
def initialize(base_url:, client_id:, fingerprint:, ip_address:,
|
21
26
|
client_secret:, **options)
|
22
27
|
log_to = options[:log_to] || 'stdout'
|
23
28
|
RestClient.log = log_to if options[:logging]
|
24
29
|
@logging = options[:logging]
|
25
30
|
|
31
|
+
RestClient.proxy = options[:proxy_url] if options[:proxy_url]
|
32
|
+
@proxy_url = options[:proxy_url]
|
33
|
+
|
26
34
|
@config = {
|
27
35
|
client_id: client_id,
|
28
36
|
client_secret: client_secret,
|
data/samples.md
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_pay_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Broderick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|