synapse_pay_rest 3.4.3 → 3.4.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: 66269b68182386602d6a40b1991b74e86c3d8c597e9eff157e1989c7a7518700
4
- data.tar.gz: b3e42f519a6cd3c6211072b5666a2f27f9d7c85d467b0f1d28f05a08cc86b365
3
+ metadata.gz: 8d3ce3eea0a120bcb6e3621ff90d6a8244f028608b7b84f242919a349889db97
4
+ data.tar.gz: 55725242d86c842b4df14ebf2dd123e47bf41cc9445652cfc4e9ad5166d1c86f
5
5
  SHA512:
6
- metadata.gz: e54165d81946de7acc22e9967cd9aedb5512b15b6287598079616f41ede11d8d97eec3cd6ed11df3cd9042144181cbdf14ca98cdc0d0d69feabccfbed710248f
7
- data.tar.gz: 0cc5e1e53aaa3f1c25f79355db21c79694844502fa0d678a2944f7fa736ca379635e3def34c15c5a44d17b469c923e18a1ed4674844e4df386a84f471e815fb8
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,
@@ -1,4 +1,4 @@
1
1
  module SynapsePayRest
2
2
  # Gem version
3
- VERSION = '3.4.3'.freeze
3
+ VERSION = '3.4.4'.freeze
4
4
  end
data/samples.md CHANGED
@@ -26,6 +26,8 @@ args = {
26
26
  logging: true,
27
27
  # (optional) file path to write logs to
28
28
  log_to: nil
29
+ # (optional) URL used to proxy outbound requests
30
+ proxy_url: nil
29
31
  }
30
32
 
31
33
  client = SynapsePayRest::Client.new(args)
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.3
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-09-25 00:00:00.000000000 Z
12
+ date: 2018-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client