truelayer 0.1.2 → 0.1.3

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: 97b25ca97786a2e59e0770f9f1b827f842c0e10ca638090373bd7eeb5df76053
4
- data.tar.gz: 91ff1ac6dbe044c5c2626c33737110525ed67b3fe0a07ef100a2095d054bb2c2
3
+ metadata.gz: 2437f69663ed1a6216c49e884f35b89417660c91190148bda921777a130bb5e2
4
+ data.tar.gz: 8d8c508e12bf18227369e644270ab4c56714c619cefc8cf87b1304aa58b29f8d
5
5
  SHA512:
6
- metadata.gz: bf13e238cdc673f8fb9992fc9095e072a2227b3008eeac7bcfe685cf56f349860ef1c1122a0ed8542f1acb444e742946a78ce4bab1ffa313bbb8f6e9c533e4d6
7
- data.tar.gz: f04e331d511d80d41f070384d1fb015be598039da7046ae7cac7030fd9be2fdad1f79616ca4eef18b95995043214f733c93478553128b9db13dcc919c0b2bc58
6
+ metadata.gz: 5e411a5b8582aa63a0776ca30c33366480628175e0b0f96dbad9638a11550dfcd7f35d215b5f460a4d2a206261f9d10d0e101b0d878f045f0a8ca2f2632dc4a1
7
+ data.tar.gz: 7515529da169bfaef9f7a0f65ad0b655ca1e4d968a02e3bd538c557c750e0f82bfc3d6b94c441ca4b415bf818a7b3af9a66164a91d4dff6db14a1cbfe90bda76
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truelayer (0.1.2)
4
+ truelayer (0.1.3)
5
5
  faraday (~> 2.7)
6
6
  multi_json
7
7
 
data/bin/console CHANGED
@@ -4,8 +4,15 @@ require 'bundler/setup'
4
4
  require 'truelayer'
5
5
  require 'json'
6
6
 
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
7
+
8
+ Truelayer.configure do |c|
9
+ c.client_id = ENV['TRUELAYER_CLIENT_ID']
10
+ c.client_secret = ENV['TRUELAYER_CLIENT_SECRET']
11
+ c.debug = true
12
+ c.verbose = true
13
+ c.environment = :sandbox
14
+ end
15
+
9
16
 
10
17
  # (If you use this, don't forget to add pry to your Gemfile!)
11
18
  require 'pry'
@@ -33,7 +33,8 @@ module Truelayer
33
33
 
34
34
  def connection
35
35
  @connection ||= Faraday.new(url: base_url) do |conn|
36
- conn.request :truelayer_auth, access_token
36
+ # conn.request :truelayer_auth, access_token
37
+ conn.use Truelayer::FaradayAuth, access_token
37
38
  conn.response :json, parser_options: { symbolize_names: true }
38
39
  if Truelayer.configuration.debug
39
40
  conn.response :logger, nil, { headers: true, bodies: Truelayer.configuration.verbose }
@@ -22,9 +22,9 @@ module Truelayer
22
22
  @debug = false
23
23
  @verbose = false
24
24
 
25
- return if Faraday::Request.fetch_middleware(:truelayer_auth)
25
+ #return if Faraday::Request.fetch_middleware(:truelayer_auth)
26
26
 
27
- Faraday::Request.register_middleware truelayer_auth: -> { Truelayer::FaradayAuth }
27
+ #Faraday::Request.register_middleware truelayer_auth: -> { Truelayer::FaradayAuth }
28
28
  end
29
29
 
30
30
  def base_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truelayer
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truelayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finpoint