radius-spec 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.rubocop.yml +2 -2
- data/CHANGELOG.md +26 -0
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/benchmarks/bm_setup.rb +1 -1
- data/benchmarks/hash_transform.rb +2 -2
- data/common_rubocop.yml +8 -3
- data/common_rubocop_rails.yml +7 -3
- data/lib/radius/spec/vcr.rb +7 -4
- data/lib/radius/spec/version.rb +1 -1
- data/radius-spec.gemspec +2 -2
- metadata +26 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74f0fd0a301ab4e74f86ed4aa183e94c3cbd5c6c795ea67cf24ac76ec2390a76
|
4
|
+
data.tar.gz: 43c5ba09b93ff99efb70b05e653dce5e7a7663bcfb567df964a20ee010eca7e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e586e2fdb6396509465475db8d78af5c0e04ae66e8f07a86a740c2537d403490bc55eae9326d4cf4412668b9fd7fc3d82362798fbe0a2f02b5113fc57f62f4
|
7
|
+
data.tar.gz: 5194070d9b33c0771224abcfb58f7e63a4869680df3bef1e606fb04d6720a8ed44f5cbba8c5d7aad973e8ebb3b5815486c6e6b62ac3b8cceac83d140d3a73b51
|
data/.rubocop.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
inherit_mode:
|
2
2
|
merge:
|
3
3
|
- Exclude
|
4
|
-
-
|
4
|
+
- AllowedPatterns
|
5
5
|
|
6
6
|
inherit_from: common_rubocop_rails.yml
|
7
7
|
|
8
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives,
|
8
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
9
9
|
# URISchemes: http, https
|
10
10
|
Layout/LineLength:
|
11
11
|
Exclude:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
## Development
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/RadiusNetworks/radius-spec/compare/v0.9.0...main)
|
4
|
+
|
5
|
+
### Enhancements
|
6
|
+
|
7
|
+
- TODO
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
- TODO
|
12
|
+
|
13
|
+
## 0.12.0 (August 3, 2022)
|
14
|
+
|
15
|
+
[Full Changelog](https://github.com/RadiusNetworks/radius-spec/compare/v0.12.0...0.12.0)
|
16
|
+
|
17
|
+
### Enhancements
|
18
|
+
|
19
|
+
- Added Dependabot
|
20
|
+
- Upgraded VCR to 6.0
|
21
|
+
- Upgrade Rubocop Rails to 2.16
|
22
|
+
- Upgrade Rubocop to 1.33
|
23
|
+
|
24
|
+
### Bug Fixes
|
25
|
+
|
26
|
+
None
|
1
27
|
## 0.11.0 (January 21, 2022)
|
2
28
|
|
3
29
|
[Full Changelog](https://github.com/RadiusNetworks/radius-spec/compare/v0.10.0...0.11.0)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -94,7 +94,7 @@ end
|
|
94
94
|
Projects can inherit from the [base Rubocop config](.rubocop.yml). This can be
|
95
95
|
accomplished by using either the remote raw URL or dependency gem formats. With
|
96
96
|
either method we also strongly suggest setting the `inherit_mode` to `merge`
|
97
|
-
for both `Exclude` and `
|
97
|
+
for both `Exclude` and `AllowedPatterns`. This way you can append additional
|
98
98
|
exceptions without overwriting the defaults.
|
99
99
|
|
100
100
|
#### Inherit from Gem (Recommended Method)
|
@@ -103,7 +103,7 @@ exceptions without overwriting the defaults.
|
|
103
103
|
inherit_mode:
|
104
104
|
merge:
|
105
105
|
- Exclude
|
106
|
-
-
|
106
|
+
- AllowedPatterns
|
107
107
|
|
108
108
|
inherit_gem:
|
109
109
|
radius-spec:
|
@@ -118,7 +118,7 @@ inherit_gem:
|
|
118
118
|
inherit_mode:
|
119
119
|
merge:
|
120
120
|
- Exclude
|
121
|
-
-
|
121
|
+
- AllowedPatterns
|
122
122
|
|
123
123
|
# Available for projects which cannot include this gem (i.e. Ruby < 2.5)
|
124
124
|
inherit_from:
|
@@ -154,7 +154,7 @@ inherit_from: .rubocop_todo.yml
|
|
154
154
|
inherit_mode:
|
155
155
|
merge:
|
156
156
|
- Exclude
|
157
|
-
-
|
157
|
+
- AllowedPatterns
|
158
158
|
|
159
159
|
Style/For:
|
160
160
|
inherit_mode:
|
data/benchmarks/bm_setup.rb
CHANGED
@@ -18,7 +18,7 @@ end
|
|
18
18
|
|
19
19
|
# Bad per Rubocop
|
20
20
|
def hash_transform_key_map_to_h(hash)
|
21
|
-
hash.map { |k, v| [k + 100, v] }.to_h
|
21
|
+
hash.map { |k, v| [k + 100, v] }.to_h # rubocop:disable Style/MapToHash
|
22
22
|
end
|
23
23
|
|
24
24
|
# Bad per Rubocop
|
@@ -78,7 +78,7 @@ end
|
|
78
78
|
|
79
79
|
# Bad per Rubocop
|
80
80
|
def hash_transform_value_map_to_h(hash)
|
81
|
-
hash.map { |k, v| [k, v + 100] }.to_h
|
81
|
+
hash.map { |k, v| [k, v + 100] }.to_h # rubocop:disable Style/MapToHash
|
82
82
|
end
|
83
83
|
|
84
84
|
# Bad per Rubocop
|
data/common_rubocop.yml
CHANGED
@@ -130,11 +130,11 @@ Layout/FirstArgumentIndentation:
|
|
130
130
|
# this for a node pattern matcher in the future.
|
131
131
|
#
|
132
132
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes,
|
133
|
-
# IgnoreCopDirectives,
|
133
|
+
# IgnoreCopDirectives, AllowedPatterns.
|
134
134
|
# URISchemes: http, https
|
135
135
|
Layout/LineLength:
|
136
136
|
IgnoreCopDirectives: true
|
137
|
-
|
137
|
+
AllowedPatterns:
|
138
138
|
# Leading comments
|
139
139
|
- '\A\s*#'
|
140
140
|
# Attempt at trailing comments
|
@@ -286,7 +286,7 @@ Naming/BinaryOperatorParameterName:
|
|
286
286
|
|
287
287
|
# We don't need this configured just yet, because we dont have any applications on
|
288
288
|
# Ruby 3.1, but pre-emptively, we want to configure this to prefer the explicit style.
|
289
|
-
#
|
289
|
+
#
|
290
290
|
# bad
|
291
291
|
# def foo(&)
|
292
292
|
# bar(&)
|
@@ -537,6 +537,11 @@ Style/EmptyMethod:
|
|
537
537
|
Style/FrozenStringLiteralComment:
|
538
538
|
EnforcedStyle: always_true
|
539
539
|
|
540
|
+
# If we're using consecutive conditionals we probably know what we're doing. The good thing is this
|
541
|
+
# cop will still flag consecutive conditionals that are identical.
|
542
|
+
Style/GuardClause:
|
543
|
+
AllowConsecutiveConditionals: true
|
544
|
+
|
540
545
|
# Prefer symbol keys using the 1.9 hash syntax. However, when keys are mixed
|
541
546
|
# use a consistent mapping style; which generally means using hash rockets:
|
542
547
|
#
|
data/common_rubocop_rails.yml
CHANGED
@@ -3,7 +3,7 @@ require: rubocop-rails
|
|
3
3
|
inherit_mode:
|
4
4
|
merge:
|
5
5
|
- Exclude
|
6
|
-
-
|
6
|
+
- AllowedPatterns
|
7
7
|
|
8
8
|
inherit_from: common_rubocop.yml
|
9
9
|
|
@@ -26,10 +26,10 @@ Style/Documentation:
|
|
26
26
|
# Rails foreign keys and indexes can get long. We want to ignore our annotation
|
27
27
|
# comments which are for these entries.
|
28
28
|
#
|
29
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives,
|
29
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
30
30
|
# URISchemes: http, https
|
31
31
|
Layout/LineLength:
|
32
|
-
|
32
|
+
AllowedPatterns:
|
33
33
|
- '\A# fk_rails_'
|
34
34
|
- '\A# index_'
|
35
35
|
|
@@ -194,6 +194,10 @@ Rails/IndexBy:
|
|
194
194
|
Rails/IndexWith:
|
195
195
|
Enabled: false
|
196
196
|
|
197
|
+
# This would be extremely hard to implement with our app
|
198
|
+
Rails/I18nLocaleTexts:
|
199
|
+
Enabled: false
|
200
|
+
|
197
201
|
# This cop enforces the use of ids over pluck(:id) and pluck(primary_key).
|
198
202
|
# https://rails.rubystyle.guide/#ids
|
199
203
|
Rails/PluckId:
|
data/lib/radius/spec/vcr.rb
CHANGED
@@ -10,7 +10,7 @@ VCR.configure do |config|
|
|
10
10
|
config.ignore_localhost = true
|
11
11
|
|
12
12
|
record_mode = case
|
13
|
-
when ENV
|
13
|
+
when ENV.fetch('CI', false)
|
14
14
|
# Never let CI record
|
15
15
|
:none
|
16
16
|
when RSpec.configuration.files_to_run.one?
|
@@ -42,14 +42,17 @@ VCR.configure do |config|
|
|
42
42
|
RADIUS_OAUTH_PROVIDER_APP_SECRET
|
43
43
|
RADIUS_OAUTH_PROVIDER_URL
|
44
44
|
].each do |secret|
|
45
|
-
|
45
|
+
# WARNING: It may seem tempting, but don't try to extract ENV[secret] to a local variable
|
46
|
+
# here. `filter_sensitive_data` calls its block instead of exec-ing it, so a local variable
|
47
|
+
# set outside the blocks won't be accessible inside them.
|
48
|
+
config.filter_sensitive_data("<#{secret}>") { ENV.fetch(secret, nil) }
|
46
49
|
|
47
50
|
config.filter_sensitive_data("<#{secret}_FORM>") {
|
48
|
-
URI.encode_www_form_component(ENV
|
51
|
+
URI.encode_www_form_component(ENV.fetch(secret, nil)) if ENV[secret]
|
49
52
|
}
|
50
53
|
|
51
54
|
config.filter_sensitive_data("<#{secret}_URI>") {
|
52
|
-
ERB::Util.url_encode(ENV
|
55
|
+
ERB::Util.url_encode(ENV.fetch(secret, nil)) if ENV[secret]
|
53
56
|
}
|
54
57
|
|
55
58
|
config.filter_sensitive_data('<AUTHORIZATION_HEADER>') { |interaction|
|
data/lib/radius/spec/version.rb
CHANGED
data/radius-spec.gemspec
CHANGED
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.required_ruby_version = ">= 2.5" # rubocop:disable Gemspec/RequiredRubyVersion
|
33
33
|
|
34
34
|
spec.add_runtime_dependency "rspec", "~> 3.7"
|
35
|
-
spec.add_runtime_dependency "rubocop", "
|
36
|
-
spec.add_runtime_dependency "rubocop-rails", "
|
35
|
+
spec.add_runtime_dependency "rubocop", ">= 1.25", "< 1.33"
|
36
|
+
spec.add_runtime_dependency "rubocop-rails", ">= 2.13", "< 2.16"
|
37
37
|
|
38
38
|
spec.add_development_dependency "bundler", ">= 2.2.10"
|
39
39
|
spec.add_development_dependency "rake", ">= 12.0", "< 14.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radius-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radius Networks
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -29,30 +29,42 @@ dependencies:
|
|
29
29
|
name: rubocop
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.25'
|
35
|
+
- - "<"
|
33
36
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.
|
37
|
+
version: '1.33'
|
35
38
|
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
39
|
-
- - "
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '1.25'
|
45
|
+
- - "<"
|
40
46
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
47
|
+
version: '1.33'
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
name: rubocop-rails
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
45
51
|
requirements:
|
46
|
-
- - "
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.13'
|
55
|
+
- - "<"
|
47
56
|
- !ruby/object:Gem::Version
|
48
|
-
version: 2.
|
57
|
+
version: '2.16'
|
49
58
|
type: :runtime
|
50
59
|
prerelease: false
|
51
60
|
version_requirements: !ruby/object:Gem::Requirement
|
52
61
|
requirements:
|
53
|
-
- - "
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '2.13'
|
65
|
+
- - "<"
|
54
66
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.
|
67
|
+
version: '2.16'
|
56
68
|
- !ruby/object:Gem::Dependency
|
57
69
|
name: bundler
|
58
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +106,7 @@ executables: []
|
|
94
106
|
extensions: []
|
95
107
|
extra_rdoc_files: []
|
96
108
|
files:
|
109
|
+
- ".github/dependabot.yml"
|
97
110
|
- ".github/workflows/ci.yml"
|
98
111
|
- ".github/workflows/reviewdog.yml"
|
99
112
|
- ".gitignore"
|
@@ -151,8 +164,8 @@ licenses:
|
|
151
164
|
- Apache-2.0
|
152
165
|
metadata:
|
153
166
|
bug_tracker_uri: https://github.com/RadiusNetworks/radius-spec/issues
|
154
|
-
changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.
|
155
|
-
source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.
|
167
|
+
changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.12.0/CHANGELOG.md
|
168
|
+
source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.12.0
|
156
169
|
rubygems_mfa_required: 'true'
|
157
170
|
post_install_message:
|
158
171
|
rdoc_options: []
|
@@ -169,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
182
|
- !ruby/object:Gem::Version
|
170
183
|
version: '0'
|
171
184
|
requirements: []
|
172
|
-
rubygems_version: 3.1.
|
185
|
+
rubygems_version: 3.1.6
|
173
186
|
signing_key:
|
174
187
|
specification_version: 4
|
175
188
|
summary: Radius Networks RSpec setup and plug-ins
|