brl_auth 0.1.0.1 → 0.1.1

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: dd1eb2fa32a8d6956353d7c8d7224b9fbb18670939c80cf290ea404d88a27cf9
4
- data.tar.gz: f5bd2726f40a25de222b27775d11dd551b40776c658faba7048500b1731bae6e
3
+ metadata.gz: ea17630de99f36ada012300c1512331e3760747756b79427343a93b042d8e554
4
+ data.tar.gz: 18901868f032ee7b3ff75724c1bd0c03828852bd9ca456dfc124d87fc77580bd
5
5
  SHA512:
6
- metadata.gz: dd965e7556d88b91a0fbf4d7a807ea38a8a88eae0fcda259e36ae6de55a2a6856e6586eb75b8b071ea5dd37fb753ec36db3b2b148fa1f4594ab67eb4d8761d85
7
- data.tar.gz: f5d47b36ad8fab43143e4e65b0bd9c1c042f8c22818caae291dc49504f5a45bed9584154e84c832a0cbe59a1f394ba20f51b5cfb24a0da224e3bc6cca8fe0e7f
6
+ metadata.gz: 6410b66149d82d173a1b5fe290610eb1b5177846d4e25befb8805ed2831f07bfeafd7333d1405b9860b799a39dcf3c992d7956f9a864a650829d8851ef2c9d45
7
+ data.tar.gz: 0d737bb19d93a8cc1e1d38347c3865a5705de8529b734ab19e13c1350a509471fd79c2589d07c4fc7602a66af16f3a65f72ed36dd5632ea0da6c28a4aaa8c364
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.1.1-20220202 - Danilo Carolino
4
+
5
+ * [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
6
+ Reduzir uso de pipelines em projetos Ruby [Dependabot]
7
+ * Bump Ruby version to v3.1.0
8
+
3
9
  ## v0.1.0
4
10
 
5
11
  * Initial release of BRL Auth
@@ -10,7 +10,7 @@ module BRL
10
10
  cache: defined?(Rails) ? Rails.cache : nil,
11
11
  request_class: Faraday,
12
12
  base_url: BRL::BASE_URL)
13
- super(request_class: request_class, base_url: base_url)
13
+ super(request_class:, base_url:)
14
14
  @token_service = token_service
15
15
  @cache = cache
16
16
  end
@@ -7,7 +7,7 @@ module BRL
7
7
  CONTENT_TYPE = "application/x-www-form-urlencoded"
8
8
 
9
9
  def initialize(request_class: Faraday, base_url: BRL.configuration.auth_base_url)
10
- super(request_class: request_class, base_url: base_url)
10
+ super(request_class:, base_url:)
11
11
  end
12
12
 
13
13
  def default_headers
@@ -9,6 +9,6 @@ module BRL
9
9
  # Major - Incremented for incompatible changes with previous release (or big enough new features)
10
10
  # Minor - Incremented for new backwards-compatible features + deprecations
11
11
  # Patch - Incremented for backwards-compatible bug fixes
12
- VERSION = "0.1.0.1"
12
+ VERSION = "0.1.1"
13
13
  end
14
14
  end
@@ -5,9 +5,9 @@ require "spec_helper"
5
5
  RSpec.describe BRL::Auth::AuthenticatedConnection do
6
6
  describe "#default_headers" do
7
7
  let(:token_service) { instance_double(BRL::Auth::TokenService) }
8
- let(:token) { BRL::Auth::Token.new(access_token: access_token) }
8
+ let(:token) { BRL::Auth::Token.new(access_token:) }
9
9
 
10
- subject { described_class.new(token_service: token_service, cache: cache).default_headers }
10
+ subject { described_class.new(token_service:, cache:).default_headers }
11
11
 
12
12
  context "when token is cached" do
13
13
  let(:access_token) { "Bearer access_token" }
@@ -6,7 +6,7 @@ RSpec.describe BRL::Auth::AuthenticatedResource do
6
6
  describe "#initialize" do
7
7
  let(:connection) { instance_double(BRL::Auth::AuthenticatedConnection) }
8
8
 
9
- subject { described_class.new(connection: connection) }
9
+ subject { described_class.new(connection:) }
10
10
 
11
11
  it { expect(subject).to be_kind_of(BRL::Auth::AuthenticatedResource) }
12
12
  end
@@ -14,7 +14,7 @@ RSpec.describe BRL::Auth::TokenService do
14
14
  let(:scope) { "scope" }
15
15
  let(:token_type) { "token_type" }
16
16
 
17
- subject { described_class.new(connection: connection).retrieve }
17
+ subject { described_class.new(connection:).retrieve }
18
18
 
19
19
  before do
20
20
  allow(connection).to receive(:post).with(url: BRL::Auth::TOKEN_ENDPOINT, body: req_body).and_return(result)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brl_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Carolino
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -16,35 +16,35 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: '0.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: '0.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: flash_integration
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0
33
+ version: '0.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0
40
+ version: '0.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: i18n
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.8.0
47
+ version: '1.9'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
50
  version: '1.0'
@@ -54,7 +54,7 @@ dependencies:
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: 1.8.0
57
+ version: '1.9'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.0'
@@ -62,29 +62,26 @@ dependencies:
62
62
  name: json
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 2.5.1
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
- version: '2.0'
67
+ version: '2.5'
68
+ - - "<"
69
+ - !ruby/object:Gem::Version
70
+ version: '2.7'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: 2.5.1
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
- version: '2.0'
77
+ version: '2.5'
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: '2.7'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: bundler
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: 2.2.25
88
85
  - - ">="
89
86
  - !ruby/object:Gem::Version
90
87
  version: '2.0'
@@ -92,9 +89,6 @@ dependencies:
92
89
  prerelease: false
93
90
  version_requirements: !ruby/object:Gem::Requirement
94
91
  requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: 2.2.25
98
92
  - - ">="
99
93
  - !ruby/object:Gem::Version
100
94
  version: '2.0'
@@ -104,14 +98,14 @@ dependencies:
104
98
  requirements:
105
99
  - - "~>"
106
100
  - !ruby/object:Gem::Version
107
- version: 6.2.0
101
+ version: '6.2'
108
102
  type: :development
109
103
  prerelease: false
110
104
  version_requirements: !ruby/object:Gem::Requirement
111
105
  requirements:
112
106
  - - "~>"
113
107
  - !ruby/object:Gem::Version
114
- version: 6.2.0
108
+ version: '6.2'
115
109
  - !ruby/object:Gem::Dependency
116
110
  name: gemsurance
117
111
  requirement: !ruby/object:Gem::Requirement
@@ -132,21 +126,21 @@ dependencies:
132
126
  requirements:
133
127
  - - "~>"
134
128
  - !ruby/object:Gem::Version
135
- version: 0.14.1
129
+ version: '0.14'
136
130
  type: :development
137
131
  prerelease: false
138
132
  version_requirements: !ruby/object:Gem::Requirement
139
133
  requirements:
140
134
  - - "~>"
141
135
  - !ruby/object:Gem::Version
142
- version: 0.14.1
136
+ version: '0.14'
143
137
  - !ruby/object:Gem::Dependency
144
138
  name: rake
145
139
  requirement: !ruby/object:Gem::Requirement
146
140
  requirements:
147
141
  - - "~>"
148
142
  - !ruby/object:Gem::Version
149
- version: 13.0.6
143
+ version: '13.0'
150
144
  - - ">="
151
145
  - !ruby/object:Gem::Version
152
146
  version: 10.0.0
@@ -156,7 +150,7 @@ dependencies:
156
150
  requirements:
157
151
  - - "~>"
158
152
  - !ruby/object:Gem::Version
159
- version: 13.0.6
153
+ version: '13.0'
160
154
  - - ">="
161
155
  - !ruby/object:Gem::Version
162
156
  version: 10.0.0
@@ -166,70 +160,70 @@ dependencies:
166
160
  requirements:
167
161
  - - "~>"
168
162
  - !ruby/object:Gem::Version
169
- version: 3.10.0
163
+ version: '3.10'
170
164
  type: :development
171
165
  prerelease: false
172
166
  version_requirements: !ruby/object:Gem::Requirement
173
167
  requirements:
174
168
  - - "~>"
175
169
  - !ruby/object:Gem::Version
176
- version: 3.10.0
170
+ version: '3.10'
177
171
  - !ruby/object:Gem::Dependency
178
172
  name: rubocop
179
173
  requirement: !ruby/object:Gem::Requirement
180
174
  requirements:
181
175
  - - "~>"
182
176
  - !ruby/object:Gem::Version
183
- version: '1.20'
177
+ version: '1.25'
184
178
  type: :development
185
179
  prerelease: false
186
180
  version_requirements: !ruby/object:Gem::Requirement
187
181
  requirements:
188
182
  - - "~>"
189
183
  - !ruby/object:Gem::Version
190
- version: '1.20'
184
+ version: '1.25'
191
185
  - !ruby/object:Gem::Dependency
192
186
  name: rubocop-packaging
193
187
  requirement: !ruby/object:Gem::Requirement
194
188
  requirements:
195
189
  - - "~>"
196
190
  - !ruby/object:Gem::Version
197
- version: 0.5.1
191
+ version: '0.5'
198
192
  type: :development
199
193
  prerelease: false
200
194
  version_requirements: !ruby/object:Gem::Requirement
201
195
  requirements:
202
196
  - - "~>"
203
197
  - !ruby/object:Gem::Version
204
- version: 0.5.1
198
+ version: '0.5'
205
199
  - !ruby/object:Gem::Dependency
206
200
  name: rubocop-performance
207
201
  requirement: !ruby/object:Gem::Requirement
208
202
  requirements:
209
203
  - - "~>"
210
204
  - !ruby/object:Gem::Version
211
- version: 1.11.5
205
+ version: '1.13'
212
206
  type: :development
213
207
  prerelease: false
214
208
  version_requirements: !ruby/object:Gem::Requirement
215
209
  requirements:
216
210
  - - "~>"
217
211
  - !ruby/object:Gem::Version
218
- version: 1.11.5
212
+ version: '1.13'
219
213
  - !ruby/object:Gem::Dependency
220
214
  name: simplecov
221
215
  requirement: !ruby/object:Gem::Requirement
222
216
  requirements:
223
217
  - - "~>"
224
218
  - !ruby/object:Gem::Version
225
- version: 0.21.2
219
+ version: '0.21'
226
220
  type: :development
227
221
  prerelease: false
228
222
  version_requirements: !ruby/object:Gem::Requirement
229
223
  requirements:
230
224
  - - "~>"
231
225
  - !ruby/object:Gem::Version
232
- version: 0.21.2
226
+ version: '0.21'
233
227
  description: Módulo de autenticação para API da BRL para projetos em Ruby
234
228
  email:
235
229
  - danilo.carolino@qflash.com.br
@@ -269,7 +263,7 @@ metadata:
269
263
  changelog_uri: https://github.com/Quasar-Flash/brl_auth_ruby/blob/master/CHANGELOG.md
270
264
  source_code_uri: https://github.com/Quasar-Flash/brl_auth_ruby
271
265
  bug_tracker_uri: https://github.com/Quasar-Flash/brl_auth_ruby/issues
272
- post_install_message:
266
+ post_install_message:
273
267
  rdoc_options: []
274
268
  require_paths:
275
269
  - lib
@@ -277,15 +271,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
271
  requirements:
278
272
  - - ">="
279
273
  - !ruby/object:Gem::Version
280
- version: '2.5'
274
+ version: '2.7'
281
275
  required_rubygems_version: !ruby/object:Gem::Requirement
282
276
  requirements:
283
277
  - - ">="
284
278
  - !ruby/object:Gem::Version
285
279
  version: '0'
286
280
  requirements: []
287
- rubygems_version: 3.2.22
288
- signing_key:
281
+ rubygems_version: 3.3.3
282
+ signing_key:
289
283
  specification_version: 4
290
284
  summary: BRL Auth Library
291
285
  test_files: