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 +4 -4
- data/Gemfile.lock +1 -1
- data/bin/console +9 -2
- data/lib/truelayer/client.rb +2 -1
- data/lib/truelayer/configuration.rb +2 -2
- data/lib/truelayer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2437f69663ed1a6216c49e884f35b89417660c91190148bda921777a130bb5e2
|
4
|
+
data.tar.gz: 8d8c508e12bf18227369e644270ab4c56714c619cefc8cf87b1304aa58b29f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e411a5b8582aa63a0776ca30c33366480628175e0b0f96dbad9638a11550dfcd7f35d215b5f460a4d2a206261f9d10d0e101b0d878f045f0a8ca2f2632dc4a1
|
7
|
+
data.tar.gz: 7515529da169bfaef9f7a0f65ad0b655ca1e4d968a02e3bd538c557c750e0f82bfc3d6b94c441ca4b415bf818a7b3af9a66164a91d4dff6db14a1cbfe90bda76
|
data/Gemfile.lock
CHANGED
data/bin/console
CHANGED
@@ -4,8 +4,15 @@ require 'bundler/setup'
|
|
4
4
|
require 'truelayer'
|
5
5
|
require 'json'
|
6
6
|
|
7
|
-
|
8
|
-
|
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'
|
data/lib/truelayer/client.rb
CHANGED
@@ -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
|
data/lib/truelayer/version.rb
CHANGED