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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43f4e6124d81f3d7a48fd835b8c985a778f04f0e324a939c0d441a1b75e07c4a
4
- data.tar.gz: 995d0d656dff3dee41f5d91225dc0954b936ddd3aead58e709eacd9b6e7944e8
3
+ metadata.gz: 6ff67312ed0d0d7dc47a70ddfef1acc3d151f6369c42b8f1f5ed7203e2110d9b
4
+ data.tar.gz: fb1bc0948cf63c414831150e8c33ec4f5b08b3d2eea584432a89cf570f9a8df2
5
5
  SHA512:
6
- metadata.gz: 916850bf4bb78db885f3d8aa1bb881ceb047ebbf4437a22852435af110a596de7b5aca024ffccd681e2b65f2590cc2c3ebe9b0d7feb466928bf656eeb458e1fc
7
- data.tar.gz: 7487380619478a974d19ba623bca052067c3f6aca7b7db3d6846d331c74bf0612adba1eb1917cebc150a72334fd542f3bd1714341180f80def8b5a1742bc35d9
6
+ metadata.gz: c918dd692e4f380126aac7f31be2511fedde71abf4ff1f14ced63f79657422287cf1dd4b57585d75892a235ebf8a427dad678a85f77cd946e270f4d6a237ba47
7
+ data.tar.gz: 524648d0769178f69506dd53f106f18fced7948a1bbaa19bc8b09f58440b6a8cfbd546ac099e8390feef93df98b9c28b63ec528cdcb7e1b2e7d35b664af54b4b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reso_transport (1.3.0)
4
+ reso_transport (1.3.2)
5
5
  faraday (~> 0.15.0)
6
6
 
7
7
  GEM
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?)
@@ -1,3 +1,3 @@
1
1
  module ResoTransport
2
- VERSION = "1.3.2"
2
+ VERSION = "1.4.0"
3
3
  end
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.3.2
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-02-27 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday