lhc 15.1.1 → 15.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -1
- data/lhc.gemspec +1 -0
- data/lib/lhc/interceptors/auth.rb +2 -2
- data/lib/lhc/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40a7523182b4a8d9a3a93cbc667d35e8df394f4751a1c6e9c0a6ccf71771f136
|
4
|
+
data.tar.gz: d1c16ba4e9cf1ba5cbdaf0833b1c04daf48e3d039cdf4e445c249a6792c9a67f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ab7127d698a59dfeeefaa06d8f80a8d787a7fde26017f4a026473826681a0d85373a560cdc82b8a7ef551be990149a26025a5d77af77b5b54b350f4ef528d78
|
7
|
+
data.tar.gz: 12d1e327c10768fca97287b0efae094d966a3b291b5cf46933181a255a3245312b7fe68f63a232cd6aff50b10085e6dd1f9dfea2c6382fb1559075a9bb89fc23
|
data/.rubocop.yml
CHANGED
@@ -26,6 +26,9 @@ require:
|
|
26
26
|
Bundler/OrderedGems:
|
27
27
|
Enabled: false
|
28
28
|
|
29
|
+
Gemspec/RequireMFA:
|
30
|
+
Enabled: false
|
31
|
+
|
29
32
|
Lint/SuppressedException:
|
30
33
|
Exclude:
|
31
34
|
- spec/**/*
|
@@ -260,7 +263,7 @@ Style/CaseLikeIf:
|
|
260
263
|
Enabled: false
|
261
264
|
|
262
265
|
Style/HashEachMethods:
|
263
|
-
Enabled: false
|
266
|
+
Enabled: false
|
264
267
|
|
265
268
|
Style/HashConversion: # (new in 1.10)
|
266
269
|
Enabled: false
|
@@ -268,6 +271,9 @@ Style/HashConversion: # (new in 1.10)
|
|
268
271
|
Style/NilLambda: # (new in 1.3)
|
269
272
|
Enabled: false
|
270
273
|
|
274
|
+
Style/OpenStructUse:
|
275
|
+
Enabled: false
|
276
|
+
|
271
277
|
RSpec/DescribeClass:
|
272
278
|
Exclude:
|
273
279
|
- spec/views/**/*
|
data/lhc.gemspec
CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.add_development_dependency 'rubocop', '~> 1.0'
|
37
37
|
s.add_development_dependency 'rubocop-performance', '~> 1.0'
|
38
38
|
s.add_development_dependency 'rubocop-rspec', '~> 1.26.0'
|
39
|
+
s.add_development_dependency 'sprockets-rails'
|
39
40
|
s.add_development_dependency 'timecop'
|
40
41
|
s.add_development_dependency 'webmock'
|
41
42
|
|
@@ -39,7 +39,7 @@ class LHC::Auth < LHC::Interceptor
|
|
39
39
|
set_bearer_authorization_header(token)
|
40
40
|
end
|
41
41
|
|
42
|
-
# rubocop:disable
|
42
|
+
# rubocop:disable Naming/AccessorMethodName
|
43
43
|
def set_authorization_header(value)
|
44
44
|
request.headers['Authorization'] = value
|
45
45
|
end
|
@@ -53,7 +53,7 @@ class LHC::Auth < LHC::Interceptor
|
|
53
53
|
request.options[:auth].merge!(bearer_token: token)
|
54
54
|
set_authorization_header("Bearer #{token}")
|
55
55
|
end
|
56
|
-
# rubocop:enable
|
56
|
+
# rubocop:enable Naming/AccessorMethodName
|
57
57
|
|
58
58
|
def reauthenticate!
|
59
59
|
# refresh token and update header
|
data/lib/lhc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.1.
|
4
|
+
version: 15.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhc/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.26.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: sprockets-rails
|
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'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: timecop
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|