youlend 1.1.2 → 1.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: 6c272f6f9bceb7ac698b4244aba6ff5b74718fa740e0d761f47b029c6862b34f
4
- data.tar.gz: b161a2c0d8603d525176b433fd32f9c64656ad3d778a81c1445c2a8ccf807bdb
3
+ metadata.gz: 4a0d506952a24eb9ecccb2ee7d2d89cf3d00306d093ff764793ab0895c3d68a9
4
+ data.tar.gz: 1aea5c48cb985851f2f5190c25b45727eb52d6b09e6017560e8616adf4e3f965
5
5
  SHA512:
6
- metadata.gz: 9f8ea959082e0510b50235dfd2dc5e4037d600b330153a75e7ba66e60193d826a7acb162697683050235d8ffcabd75f70496190b1e21a24331ac4c5180d622b3
7
- data.tar.gz: 2b89bc6e6e7823b6d3ed5931038b32294f5827fb4adaee262d1f743bfd24c8bf8da4d1a062f6807503638cab3ae4029778edebf186b5d707a89fac14d6bbb5d3
6
+ metadata.gz: '049795bc3e787d888f7b6ca39bbb227bb0eccf85b1e0e83d3d6b366564b2fdd5209d5ad8083b93ee5e720bf4b13c30fd058463174fd9c582a68f44a56854cbf1'
7
+ data.tar.gz: 9b4d8c822433b93f95999c1f2ba355bf369c3516fa6917b3034732d3a60f9c0b974d12c954014967515960bba84131f776d54977e08547463326caccf36af4ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- youlend (1.1.2)
4
+ youlend (1.1.3)
5
5
  addressable
6
6
  faraday
7
7
  faraday_middleware
data/lib/youlend/lead.rb CHANGED
@@ -24,7 +24,7 @@ module Youlend
24
24
  domain = Youlend.configuration.domain
25
25
 
26
26
  url = Addressable::Template.new("#{domain}/dashboard/youlendapisignup{?query*}")
27
- url.expand(query: { emailAddress: email_address, leadId: lead_id}).to_s
27
+ url.expand(query: { emailAddress: email_address, leadId: lead_id }).to_s
28
28
  end
29
29
  end
30
30
  end
@@ -24,5 +24,15 @@ module Youlend
24
24
 
25
25
  auth_header.match?(/.*token is expired.*/)
26
26
  end
27
+
28
+ def errors
29
+ return [] unless unauthorized? || token_expired?
30
+
31
+ @http_response.body
32
+ end
33
+
34
+ def data
35
+ @http_response.body
36
+ end
27
37
  end
28
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Youlend
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas