truelayer 0.1.1 → 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 +8 -0
- data/Gemfile.lock +5 -33
- data/bin/console +9 -2
- data/lib/truelayer/authentication_repository.rb +1 -1
- data/lib/truelayer/client.rb +4 -3
- data/lib/truelayer/configuration.rb +2 -2
- data/lib/truelayer/version.rb +1 -1
- data/truelayer.gemspec +1 -10
- metadata +7 -133
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
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
truelayer (0.1.
|
5
|
-
faraday
|
6
|
-
faraday_middleware
|
7
|
-
faraday_middleware-multi_json
|
4
|
+
truelayer (0.1.3)
|
5
|
+
faraday (~> 2.7)
|
8
6
|
multi_json
|
9
7
|
|
10
8
|
GEM
|
@@ -17,38 +15,13 @@ GEM
|
|
17
15
|
rexml
|
18
16
|
diff-lcs (1.4.4)
|
19
17
|
dotenv (2.7.6)
|
20
|
-
faraday (
|
21
|
-
faraday-
|
22
|
-
faraday-em_synchrony (~> 1.0)
|
23
|
-
faraday-excon (~> 1.1)
|
24
|
-
faraday-httpclient (~> 1.0)
|
25
|
-
faraday-multipart (~> 1.0)
|
26
|
-
faraday-net_http (~> 1.0)
|
27
|
-
faraday-net_http_persistent (~> 1.0)
|
28
|
-
faraday-patron (~> 1.0)
|
29
|
-
faraday-rack (~> 1.0)
|
30
|
-
faraday-retry (~> 1.0)
|
18
|
+
faraday (2.7.4)
|
19
|
+
faraday-net_http (>= 2.0, < 3.1)
|
31
20
|
ruby2_keywords (>= 0.0.4)
|
32
|
-
faraday-
|
33
|
-
faraday-em_synchrony (1.0.0)
|
34
|
-
faraday-excon (1.1.0)
|
35
|
-
faraday-httpclient (1.0.1)
|
36
|
-
faraday-multipart (1.0.3)
|
37
|
-
multipart-post (>= 1.2, < 3)
|
38
|
-
faraday-net_http (1.0.1)
|
39
|
-
faraday-net_http_persistent (1.2.0)
|
40
|
-
faraday-patron (1.0.0)
|
41
|
-
faraday-rack (1.0.0)
|
42
|
-
faraday-retry (1.0.3)
|
43
|
-
faraday_middleware (1.2.0)
|
44
|
-
faraday (~> 1.0)
|
45
|
-
faraday_middleware-multi_json (0.0.6)
|
46
|
-
faraday_middleware
|
47
|
-
multi_json
|
21
|
+
faraday-net_http (3.0.2)
|
48
22
|
hashdiff (1.0.1)
|
49
23
|
method_source (1.0.0)
|
50
24
|
multi_json (1.15.0)
|
51
|
-
multipart-post (2.1.1)
|
52
25
|
pry (0.13.1)
|
53
26
|
coderay (~> 1.1)
|
54
27
|
method_source (~> 1.0)
|
@@ -81,7 +54,6 @@ PLATFORMS
|
|
81
54
|
x86_64-linux
|
82
55
|
|
83
56
|
DEPENDENCIES
|
84
|
-
bundler (~> 2.2)
|
85
57
|
dotenv
|
86
58
|
pry
|
87
59
|
rake
|
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
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
-
|
4
|
+
|
5
5
|
require 'truelayer/configuration'
|
6
6
|
require 'truelayer/errors'
|
7
7
|
|
@@ -33,8 +33,9 @@ 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
|
37
|
-
conn.
|
36
|
+
# conn.request :truelayer_auth, access_token
|
37
|
+
conn.use Truelayer::FaradayAuth, access_token
|
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 }
|
40
41
|
end
|
@@ -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
data/truelayer.gemspec
CHANGED
@@ -23,15 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_dependency 'faraday'
|
27
|
-
spec.add_dependency 'faraday_middleware'
|
28
|
-
spec.add_dependency 'faraday_middleware-multi_json'
|
26
|
+
spec.add_dependency 'faraday', '~> 2.7'
|
29
27
|
spec.add_dependency 'multi_json'
|
30
|
-
spec.add_development_dependency 'bundler', '~> 2.2'
|
31
|
-
spec.add_development_dependency 'dotenv'
|
32
|
-
spec.add_development_dependency 'pry'
|
33
|
-
spec.add_development_dependency 'rake'
|
34
|
-
spec.add_development_dependency 'rspec'
|
35
|
-
spec.add_development_dependency 'vcr'
|
36
|
-
spec.add_development_dependency 'webmock'
|
37
28
|
end
|
metadata
CHANGED
@@ -1,57 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truelayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finpoint
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday_middleware
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: faraday_middleware-multi_json
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
17
|
+
- - "~>"
|
46
18
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
19
|
+
version: '2.7'
|
48
20
|
type: :runtime
|
49
21
|
prerelease: false
|
50
22
|
version_requirements: !ruby/object:Gem::Requirement
|
51
23
|
requirements:
|
52
|
-
- - "
|
24
|
+
- - "~>"
|
53
25
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
26
|
+
version: '2.7'
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
28
|
name: multi_json
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,104 +38,6 @@ dependencies:
|
|
66
38
|
- - ">="
|
67
39
|
- !ruby/object:Gem::Version
|
68
40
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.2'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '2.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: dotenv
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: vcr
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: webmock
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
41
|
description: Truelayer client
|
168
42
|
email:
|
169
43
|
- nenad@finpoint.co.uk
|
@@ -223,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
97
|
- !ruby/object:Gem::Version
|
224
98
|
version: '0'
|
225
99
|
requirements: []
|
226
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.2.3
|
227
101
|
signing_key:
|
228
102
|
specification_version: 4
|
229
103
|
summary: Truelayer client
|