reso_transport 1.3.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/console +2 -2
- data/lib/reso_transport/client.rb +2 -0
- data/lib/reso_transport/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: 6ff67312ed0d0d7dc47a70ddfef1acc3d151f6369c42b8f1f5ed7203e2110d9b
|
4
|
+
data.tar.gz: fb1bc0948cf63c414831150e8c33ec4f5b08b3d2eea584432a89cf570f9a8df2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c918dd692e4f380126aac7f31be2511fedde71abf4ff1f14ced63f79657422287cf1dd4b57585d75892a235ebf8a427dad678a85f77cd946e270f4d6a237ba47
|
7
|
+
data.tar.gz: 524648d0769178f69506dd53f106f18fced7948a1bbaa19bc8b09f58440b6a8cfbd546ac099e8390feef93df98b9c28b63ec528cdcb7e1b2e7d35b664af54b4b
|
data/Gemfile.lock
CHANGED
data/bin/console
CHANGED
@@ -22,8 +22,8 @@ require 'byebug'
|
|
22
22
|
|
23
23
|
SECRETS = YAML.load_file("secrets.yml")
|
24
24
|
|
25
|
-
@trestle = ResoTransport::Client.new(SECRETS[:trestle])
|
26
|
-
@bridge = ResoTransport::Client.new(SECRETS[:bridge])
|
25
|
+
@trestle = ResoTransport::Client.new(SECRETS[:trestle].merge(logger: Logger.new($stdout)))
|
26
|
+
@bridge = ResoTransport::Client.new(SECRETS[:bridge].merge(logger: Logger.new($stdout)))
|
27
27
|
@spark = ResoTransport::Client.new(SECRETS[:spark])
|
28
28
|
@crmls = ResoTransport::Client.new(SECRETS[:crmls])
|
29
29
|
|
@@ -8,10 +8,12 @@ module ResoTransport
|
|
8
8
|
@authentication = ensure_valid_auth_strategy(options.fetch(:authentication))
|
9
9
|
@vendor = options.fetch(:vendor, {})
|
10
10
|
@faraday_options = options.fetch(:faraday_options, {})
|
11
|
+
@logger = options.fetch(:logger, nil)
|
11
12
|
|
12
13
|
@connection = Faraday.new(@endpoint, @faraday_options) do |faraday|
|
13
14
|
faraday.request :url_encoded
|
14
15
|
faraday.response :logger, ResoTransport.configuration.logger if ResoTransport.configuration.logger
|
16
|
+
faraday.response :logger, @logger if @logger
|
15
17
|
#yield faraday if block_given?
|
16
18
|
faraday.use Authentication::Middleware, @authentication
|
17
19
|
faraday.adapter Faraday.default_adapter #unless faraday.builder.send(:adapter_set?)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reso_transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Druse
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|