youlend 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +12 -0
- data/Gemfile.lock +7 -15
- data/lib/youlend/auth.rb +0 -3
- data/lib/youlend/connection.rb +0 -2
- data/lib/youlend/version.rb +1 -1
- data/youlend.gemspec +1 -15
- metadata +10 -192
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3f57a435845090dd2b211654b10c90586babec8d0fc57feb7d06e8472002db5
|
4
|
+
data.tar.gz: 562e3f4012d95e0d7cea97a918288b1f0a9b15d4203f963ecba4f019296fd0c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d7d51ec508377a1d9b859213925597f5489e268e2755f45efad64bafb7af162cd9507a2d4ead80aa4c04fc2e3ee8c14087089dfec12b1d7011f9926abe7ed0
|
7
|
+
data.tar.gz: 2a08dd2adfeef4a4e7e4f606876f6a496ef4c8856e08c0ff53fe99f14c128b4eb035ea9008d644c370ce84e85cb314740b8278f825f432e94898f505400d03b8
|
data/Gemfile
CHANGED
@@ -4,3 +4,15 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in youlend.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
# Development dependencies
|
9
|
+
gem 'dotenv'
|
10
|
+
gem 'faker'
|
11
|
+
gem 'pry-byebug'
|
12
|
+
gem 'rake', '~> 10.0'
|
13
|
+
gem 'rspec', '~> 3.0'
|
14
|
+
gem 'rubocop'
|
15
|
+
gem 'rubocop-rspec'
|
16
|
+
gem 'simplecov'
|
17
|
+
gem 'vcr'
|
18
|
+
gem 'webmock'
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
youlend (1.1.
|
4
|
+
youlend (1.1.4)
|
5
5
|
addressable
|
6
|
-
faraday
|
7
|
-
faraday_middleware
|
8
|
-
multi_json
|
6
|
+
faraday (~> 2.7)
|
9
7
|
rainbow
|
10
8
|
|
11
9
|
GEM
|
@@ -24,20 +22,15 @@ GEM
|
|
24
22
|
dotenv (2.7.5)
|
25
23
|
faker (2.11.0)
|
26
24
|
i18n (>= 1.6, < 2)
|
27
|
-
faraday (
|
28
|
-
faraday-net_http (
|
29
|
-
|
30
|
-
|
31
|
-
faraday-net_http (1.0.1)
|
32
|
-
faraday_middleware (1.0.0)
|
33
|
-
faraday (~> 1.0)
|
25
|
+
faraday (2.7.4)
|
26
|
+
faraday-net_http (>= 2.0, < 3.1)
|
27
|
+
ruby2_keywords (>= 0.0.4)
|
28
|
+
faraday-net_http (3.0.2)
|
34
29
|
hashdiff (1.0.1)
|
35
30
|
i18n (1.8.5)
|
36
31
|
concurrent-ruby (~> 1.0)
|
37
32
|
jaro_winkler (1.5.4)
|
38
33
|
method_source (1.0.0)
|
39
|
-
multi_json (1.15.0)
|
40
|
-
multipart-post (2.1.1)
|
41
34
|
parallel (1.19.1)
|
42
35
|
parser (2.7.1.2)
|
43
36
|
ast (~> 2.4.0)
|
@@ -92,7 +85,6 @@ PLATFORMS
|
|
92
85
|
ruby
|
93
86
|
|
94
87
|
DEPENDENCIES
|
95
|
-
bundler
|
96
88
|
dotenv
|
97
89
|
faker
|
98
90
|
pry-byebug
|
@@ -106,4 +98,4 @@ DEPENDENCIES
|
|
106
98
|
youlend!
|
107
99
|
|
108
100
|
BUNDLED WITH
|
109
|
-
2.
|
101
|
+
2.4.7
|
data/lib/youlend/auth.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'multi_json'
|
4
3
|
require 'faraday'
|
5
|
-
require 'faraday_middleware'
|
6
4
|
require 'addressable'
|
7
5
|
|
8
6
|
module Youlend
|
@@ -54,7 +52,6 @@ module Youlend
|
|
54
52
|
Faraday.new(url: auth_url) do |conn|
|
55
53
|
conn.headers['Content-Type'] = 'application/json'
|
56
54
|
conn.headers['User-Agent'] = "ruby-youlend-#{VERSION}"
|
57
|
-
conn.use FaradayMiddleware::ParseJson
|
58
55
|
conn.response :json, parser_options: { symbolize_names: true }
|
59
56
|
conn.response :logger if Youlend.configuration.debug?
|
60
57
|
conn.adapter Faraday.default_adapter
|
data/lib/youlend/connection.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
-
require 'faraday_middleware'
|
5
4
|
require 'rainbow'
|
6
5
|
require 'addressable'
|
7
6
|
|
@@ -67,7 +66,6 @@ module Youlend
|
|
67
66
|
conn.headers['Authorization'] = "Bearer #{token}" unless token.to_s.empty?
|
68
67
|
conn.headers['Content-Type'] = 'application/json'
|
69
68
|
conn.headers['User-Agent'] = "ruby-youlend-#{VERSION}"
|
70
|
-
conn.use FaradayMiddleware::ParseJson
|
71
69
|
conn.response :json, parser_options: { symbolize_names: true }
|
72
70
|
conn.response :logger if Youlend.configuration.debug?
|
73
71
|
conn.adapter Faraday.default_adapter
|
data/lib/youlend/version.rb
CHANGED
data/youlend.gemspec
CHANGED
@@ -27,20 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
29
|
spec.add_dependency 'addressable'
|
30
|
-
spec.add_dependency 'faraday'
|
31
|
-
spec.add_dependency 'faraday_middleware'
|
32
|
-
spec.add_dependency 'multi_json'
|
30
|
+
spec.add_dependency 'faraday', '~> 2.7'
|
33
31
|
spec.add_dependency 'rainbow'
|
34
|
-
|
35
|
-
spec.add_development_dependency 'bundler'
|
36
|
-
spec.add_development_dependency 'dotenv'
|
37
|
-
spec.add_development_dependency 'faker'
|
38
|
-
spec.add_development_dependency 'pry-byebug'
|
39
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
40
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
41
|
-
spec.add_development_dependency 'rubocop'
|
42
|
-
spec.add_development_dependency 'rubocop-rspec'
|
43
|
-
spec.add_development_dependency 'simplecov'
|
44
|
-
spec.add_development_dependency 'vcr'
|
45
|
-
spec.add_development_dependency 'webmock'
|
46
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youlend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rikas
|
8
|
-
autorequire:
|
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: addressable
|
@@ -28,44 +28,16 @@ dependencies:
|
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
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
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: multi_json
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
31
|
+
- - "~>"
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
33
|
+
version: '2.7'
|
62
34
|
type: :runtime
|
63
35
|
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
37
|
requirements:
|
66
|
-
- - "
|
38
|
+
- - "~>"
|
67
39
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
40
|
+
version: '2.7'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: rainbow
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,160 +52,6 @@ dependencies:
|
|
80
52
|
- - ">="
|
81
53
|
- !ruby/object:Gem::Version
|
82
54
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: bundler
|
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: dotenv
|
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: faker
|
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: pry-byebug
|
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: rake
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '10.0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '10.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rspec
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '3.0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '3.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rubocop-rspec
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: simplecov
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: vcr
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - ">="
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '0'
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - ">="
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: webmock
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - ">="
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '0'
|
237
55
|
description: Youlend API wrapper
|
238
56
|
email:
|
239
57
|
- oterosantos@gmail.com
|
@@ -276,7 +94,7 @@ homepage: https://youlend.com/
|
|
276
94
|
licenses: []
|
277
95
|
metadata:
|
278
96
|
homepage_uri: https://youlend.com/
|
279
|
-
post_install_message:
|
97
|
+
post_install_message:
|
280
98
|
rdoc_options: []
|
281
99
|
require_paths:
|
282
100
|
- lib
|
@@ -291,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
109
|
- !ruby/object:Gem::Version
|
292
110
|
version: '0'
|
293
111
|
requirements: []
|
294
|
-
rubygems_version: 3.
|
295
|
-
signing_key:
|
112
|
+
rubygems_version: 3.2.3
|
113
|
+
signing_key:
|
296
114
|
specification_version: 4
|
297
115
|
summary: Youlend API wrapper
|
298
116
|
test_files: []
|