youlend 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18d857527219678077de7bbf3ef9c0b6b02e6c02d5e5282cbadc1d2e7faf7477
4
- data.tar.gz: 24fd7fee73efd1b9e26640f08d0c7637b385a1ceff8af0bcb0dd1ccf5b9332ea
3
+ metadata.gz: 126e7fc7a5c9de8aeb4edb0f0cf1d8eb8d26f278aacae932cdcb9a37f9ad8b29
4
+ data.tar.gz: f191162bbe623e51e42b04a5ca8eb362d2cb9ea1013e7a5c7edeaca6102312ca
5
5
  SHA512:
6
- metadata.gz: 90777077ba928c3b3ccb6422c2243e18f0cdfcb8571dc157c800c185140208ffb561287122212319dfa422d996ee74bdd33da29da766ba928d09823c0d6f5156
7
- data.tar.gz: 8bb163f875067850c9e30fdd46ed6608555e52869c5ec7de9a331e6b29ed8ea9552b56fb80cae11b1029b459b35d855262cc92d7da4fadf8ec827a68bf2145ee
6
+ metadata.gz: c112d229b26ea67974658bb9269b04bab1a63c1f0a12d2335901ea43155b539fff2e55292d85c707827176006929dd9977df71320ee3109979c9a3a34a522f1e
7
+ data.tar.gz: 41cbed12eb598138645524229e0411fc4abff5d570f66f310c301b1ba542c1474c51e5d7ece9241e267de2ca0f97ad6cfe7e80a20be246ab624b2048a004b8b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- youlend (1.0.1)
4
+ youlend (1.0.2)
5
5
  addressable
6
6
  faraday
7
7
  faraday_middleware
data/lib/youlend/auth.rb CHANGED
@@ -9,7 +9,10 @@ module Youlend
9
9
  class Auth
10
10
  extend Forwardable
11
11
 
12
- AUTH_URL = 'https://youlend-stag.eu.auth0.com'
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
- Faraday.new(url: AUTH_URL) do |conn|
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
@@ -6,7 +6,7 @@ module Youlend
6
6
  attr_writer :debug
7
7
 
8
8
  API_DOMAINS = {
9
- production: '',
9
+ production: 'https://youlendapi.com',
10
10
  development: 'https://staging.youlendapi.com'
11
11
  }.freeze
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Youlend
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youlend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas