youlend 1.0.1 → 1.0.2
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/lib/youlend/auth.rb +7 -2
- data/lib/youlend/configuration.rb +1 -1
- data/lib/youlend/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: 126e7fc7a5c9de8aeb4edb0f0cf1d8eb8d26f278aacae932cdcb9a37f9ad8b29
|
4
|
+
data.tar.gz: f191162bbe623e51e42b04a5ca8eb362d2cb9ea1013e7a5c7edeaca6102312ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c112d229b26ea67974658bb9269b04bab1a63c1f0a12d2335901ea43155b539fff2e55292d85c707827176006929dd9977df71320ee3109979c9a3a34a522f1e
|
7
|
+
data.tar.gz: 41cbed12eb598138645524229e0411fc4abff5d570f66f310c301b1ba542c1474c51e5d7ece9241e267de2ca0f97ad6cfe7e80a20be246ab624b2048a004b8b0
|
data/Gemfile.lock
CHANGED
data/lib/youlend/auth.rb
CHANGED
@@ -9,7 +9,10 @@ module Youlend
|
|
9
9
|
class Auth
|
10
10
|
extend Forwardable
|
11
11
|
|
12
|
-
|
12
|
+
AUTH_URLS = {
|
13
|
+
production: 'https://youlend.eu.auth0.com',
|
14
|
+
development: 'https://youlend-stag.eu.auth0.com'
|
15
|
+
}.freeze
|
13
16
|
|
14
17
|
AUDIENCES = %i[prequalification onboarding].freeze
|
15
18
|
DEFAULT_AUDIENCE = :prequalification
|
@@ -46,7 +49,9 @@ module Youlend
|
|
46
49
|
private
|
47
50
|
|
48
51
|
def adapter
|
49
|
-
|
52
|
+
auth_url = AUTH_URLS[Youlend.configuration.env]
|
53
|
+
|
54
|
+
Faraday.new(url: auth_url) do |conn|
|
50
55
|
conn.headers['Content-Type'] = 'application/json'
|
51
56
|
conn.headers['User-Agent'] = "ruby-youlend-#{VERSION}"
|
52
57
|
conn.use FaradayMiddleware::ParseJson
|
data/lib/youlend/version.rb
CHANGED