radius-spec 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8d597edb6ceafbec64f128f6916a669bb632dd47a7f30005a74c708cc650157
4
- data.tar.gz: 2742aed45c3a37ffb4ae489128b525987e79de39d6a405f768391c20e2204f7d
3
+ metadata.gz: 11d5afd163004c770b391ddaa8b133e30382f138dd3dd84305110da2e12cec9d
4
+ data.tar.gz: 40f4a119924a39691ebf6536859d25c070ece461f2e076414f4a9e36023ccc09
5
5
  SHA512:
6
- metadata.gz: 6c2fbdfd8c2d2cb6022240184cf4e321a610efb5402d2e332668ef5b3d0a471d689cee73f41e4aa9b12f97416cd7f18870587b85d9d0cd727d7db63cda8cdab7
7
- data.tar.gz: 4aa93da9405ef5a2cd35e54b5c219772ba987dd25c42c6143b4180b54aec6a3a158990acb88c54c536df573749769f29dfca900498de457ebc5805003fc7b9d6
6
+ metadata.gz: 139670b6368055942aabd6c739c98d4fa9156db3311713df9b91dfc7442b18bc11b8e732f752a5929fa793dca5e8e9f0fd8bd7919a6e15a4b671f6382bee498f
7
+ data.tar.gz: 5ae9482c86f52ca6e8b7be513403211ab63b524ec1e99031461fd0347e6ba75d3098a8268127f26861342ea3d6169f09f8527236c36dff9a58f50480aba3cf57
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  strategy:
17
17
  matrix:
18
- ruby-version: ['2.7', '3.0']
18
+ ruby-version: ['3.1', '3.2']
19
19
 
20
20
  steps:
21
21
  - uses: actions/checkout@v2
@@ -9,7 +9,7 @@ jobs:
9
9
  uses: actions/checkout@v1
10
10
  - uses: ruby/setup-ruby@v1 # ruby-version pulled .ruby-version file automatically
11
11
  with:
12
- ruby-version: '2.7'
12
+ ruby-version: '3.1'
13
13
  bundler-cache: true
14
14
  - name: rubocop
15
15
  uses: reviewdog/action-rubocop@v1
data/.gitignore CHANGED
@@ -32,6 +32,7 @@
32
32
  Gemfile.lock
33
33
  .ruby-version
34
34
  .ruby-gemset
35
+ .tool-versions
35
36
 
36
37
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
37
38
  .rvmrc
data/Gemfile CHANGED
@@ -7,6 +7,11 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  # Specify your gem's dependencies in radius-spec.gemspec
8
8
  gemspec
9
9
 
10
+ group :development do
11
+ gem "bundler", ">= 2.2.10"
12
+ gem "rake", ">= 12.0", "< 14.0"
13
+ end
14
+
10
15
  group :benchmark, optional: true do
11
16
  gem 'activesupport', require: false
12
17
  gem 'benchmark-ips', require: false
data/README.md CHANGED
@@ -781,11 +781,18 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
781
781
  `rake spec` to run the tests. You can also run `bin/console` for an interactive
782
782
  prompt that will allow you to experiment.
783
783
 
784
- To install this gem onto your local machine, run `bundle exec rake install`. To
785
- release a new version, update the version number in `version.rb`, and then run
786
- `bundle exec rake release`, which will create a git tag for the version, push
787
- git commits and tags, and push the `.gem` file to
788
- [rubygems.org](https://rubygems.org).
784
+ To install this gem onto your local machine, run `bundle exec rake install`.
785
+
786
+ To release a new version:
787
+ - Update the CHANGELOG file with auto-generated release notes from Github (create
788
+ the next tag in Github releases)
789
+ - Update the version number in `version.rb`
790
+ - Commit these changes and push up a branch. Get it approved.
791
+ - From the updated `main` branch, run `bundle exec rake release`, which will
792
+ create a git tag for the version, push git commits and tags, and push
793
+ the `.gem` file to [rubygems.org](https://rubygems.org).
794
+ - Create a Github release using the tag you created in the first step, and mark
795
+ it as the latest.
789
796
 
790
797
  ## Contributing
791
798
 
data/common_rubocop.yml CHANGED
@@ -818,27 +818,28 @@ Style/TrailingCommaInArguments:
818
818
  # by cutting down on noise when commas are appended.
819
819
  #
820
820
  # Configuration parameters: EnforcedStyleForMultiline.
821
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
821
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma, diff_comma
822
822
  Style/TrailingCommaInArrayLiteral:
823
823
  Details: |
824
824
 
825
- Always use trailing commas for multiline arrays. This makes git diffs
826
- easier to read by cutting down on noise when commas are appended. It also
827
- simplifies adding, removing, and re-arranging the elements.
828
- EnforcedStyleForMultiline: consistent_comma
825
+ Always use trailing commas for multiline arrays, but allow no trailing comma
826
+ for single line arrays. This makes git diffs easier to read by cutting down on
827
+ noise when commas are appended. It also simplifies adding, removing, and
828
+ re-arranging the elements.
829
+ EnforcedStyleForMultiline: diff_comma
829
830
 
830
831
  # Always use trailing commas for multiline. This makes git diffs easier to read
831
832
  # by cutting down on noise when commas are appended.
832
833
  #
833
834
  # Configuration parameters: EnforcedStyleForMultiline.
834
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
835
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma, diff_comma
835
836
  Style/TrailingCommaInHashLiteral:
836
837
  Details: |
837
838
 
838
- Always use trailing commas for multiline hashes. This makes git diffs
839
- easier to read by cutting down on noise when commas are appended. It also
840
- simplifies adding, removing, and re-arranging the elements.
841
- EnforcedStyleForMultiline: consistent_comma
839
+ Always use trailing commas for multiline hashes, but allows no trailing commas for
840
+ single line hashes. This makes git diffs easier to read by cutting down on noise
841
+ when commas are appended. It also simplifies adding, removing, and re-arranging the elements.
842
+ EnforcedStyleForMultiline: diff_comma
842
843
 
843
844
  # Don't combine && & || inside the same `unless` guard clause.
844
845
  Style/UnlessLogicalOperators:
@@ -1,4 +1,7 @@
1
- require: rubocop-rails
1
+ plugins:
2
+ - rubocop-rails
3
+ - rubocop-rspec
4
+ - rubocop-rspec_rails
2
5
 
3
6
  inherit_mode:
4
7
  merge:
@@ -23,6 +26,15 @@ AllCops:
23
26
  Style/Documentation:
24
27
  Enabled: false
25
28
 
29
+ RSpecRails:
30
+ Enabled: false
31
+
32
+ RSpec:
33
+ Enabled: false
34
+
35
+ RSpec/Focus:
36
+ Enabled: true
37
+
26
38
  # Rails foreign keys and indexes can get long. We want to ignore our annotation
27
39
  # comments which are for these entries.
28
40
  #
@@ -75,14 +87,21 @@ Metrics/BlockLength:
75
87
  # We do believe that the default size of 10, which is what we explicitly
76
88
  # configure below so there's no confusion, is a good general limit to help
77
89
  # encourage a balance between terseness and procedural code. Thus we do not
78
- # want to raise the limit, instead we just want to exclude these controllers.
90
+ # want to raise the limit, instead we just want to exclude these controllers. (@cupakromer 2019)
91
+ #
92
+ # We have since raised this limit to 20. We found that too often this cop was being
93
+ # imposed on methods that eked above 10 lines, and the resulting refactoring created
94
+ # code that was less readable overall. Some of us felt the method should be removed
95
+ # entirely, or made significantly larger (trusting devs to self-regulate),
96
+ # but we compromised by doubling it to 20 instead. Devs should still be encouraged to
97
+ # be pragmatic about this, and to see this as a guardrail and not an absolute limit. (@armahillo 2026)
79
98
  #
80
99
  # At this time there is no way for us to exclude just the common controller
81
- # actions / *_params methods so we exclude the entire file.
100
+ # actions / *_params methods so we exclude the entire file. (@cupakromer 2019)
82
101
  #
83
102
  # Configuration parameters: CountComments.
84
103
  Metrics/MethodLength:
85
- Max: 10
104
+ Max: 20
86
105
  Exclude:
87
106
  - 'app/controllers/**/*_controller.rb'
88
107
 
@@ -111,6 +130,11 @@ Rails/CreateTableWithTimestamps:
111
130
  Rails/DefaultScope:
112
131
  Enabled: true
113
132
 
133
+ # This cop checks for usage of Rails.env.foo? and prefers it to be replaced with Feature Flags. Since our team
134
+ # uses Rails.env.foo rarely in configuration files, this isn't a problem we need to have a cop in place for.
135
+ Rails/Env:
136
+ Enabled: false
137
+
114
138
  # We were originally going to disable this, but after much discussion agreed that enabling
115
139
  # this cop with AllowReads: true should be relatively painless.
116
140
  Rails/EnvironmentVariableAccess:
@@ -198,6 +222,12 @@ Rails/IndexWith:
198
222
  Rails/I18nLocaleTexts:
199
223
  Enabled: false
200
224
 
225
+ # This cop enforced a style that helps prevent ambigous calls, which we already use throughout the codebase.
226
+ # The cop doesn't however, account for complex calls like `.order('site_id NULLS FIRST', :description)`.
227
+ # Team decided to disable.
228
+ Rails/OrderArguments:
229
+ Enabled: false
230
+
201
231
  # This cop enforces the use of ids over pluck(:id) and pluck(primary_key).
202
232
  # https://rails.rubystyle.guide/#ids
203
233
  Rails/PluckId:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Radius
4
4
  module Spec
5
- VERSION = "0.14.0"
5
+ VERSION = "0.15.1"
6
6
  end
7
7
  end
data/radius-spec.gemspec CHANGED
@@ -29,12 +29,10 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.required_ruby_version = ">= 2.5" # rubocop:disable Gemspec/RequiredRubyVersion
32
+ spec.required_ruby_version = ">= 3.1" # rubocop:disable Gemspec/RequiredRubyVersion
33
33
 
34
- spec.add_runtime_dependency "rspec", "~> 3.7"
35
- spec.add_runtime_dependency "rubocop", ">= 1.25", "< 1.62"
36
- spec.add_runtime_dependency "rubocop-rails", ">= 2.13", "< 2.22"
37
-
38
- spec.add_development_dependency "bundler", ">= 2.2.10"
39
- spec.add_development_dependency "rake", ">= 12.0", "< 14.0"
34
+ spec.add_dependency "rspec", "~> 3.7"
35
+ spec.add_dependency "rubocop", ">= 1.25", "< 1.83"
36
+ spec.add_dependency "rubocop-rails", ">= 2.13", "< 2.35"
37
+ spec.add_dependency "rubocop-rspec_rails", "~> 2.31"
40
38
  end
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.14.0
4
+ version: 0.15.1
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: 2024-05-23 00:00:00.000000000 Z
12
+ date: 2026-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '1.25'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '1.62'
37
+ version: '1.83'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '1.25'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.62'
47
+ version: '1.83'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rubocop-rails
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '2.13'
55
55
  - - "<"
56
56
  - !ruby/object:Gem::Version
57
- version: '2.22'
57
+ version: '2.35'
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,41 +64,21 @@ dependencies:
64
64
  version: '2.13'
65
65
  - - "<"
66
66
  - !ruby/object:Gem::Version
67
- version: '2.22'
67
+ version: '2.35'
68
68
  - !ruby/object:Gem::Dependency
69
- name: bundler
69
+ name: rubocop-rspec_rails
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 2.2.10
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: 2.2.10
82
- - !ruby/object:Gem::Dependency
83
- name: rake
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '12.0'
89
- - - "<"
72
+ - - "~>"
90
73
  - !ruby/object:Gem::Version
91
- version: '14.0'
92
- type: :development
74
+ version: '2.31'
75
+ type: :runtime
93
76
  prerelease: false
94
77
  version_requirements: !ruby/object:Gem::Requirement
95
78
  requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: '12.0'
99
- - - "<"
79
+ - - "~>"
100
80
  - !ruby/object:Gem::Version
101
- version: '14.0'
81
+ version: '2.31'
102
82
  description: Standard RSpec setup and a collection of plug-ins to help improve specs.
103
83
  email:
104
84
  - support@radiusnetworks.com
@@ -164,8 +144,8 @@ licenses:
164
144
  - Apache-2.0
165
145
  metadata:
166
146
  bug_tracker_uri: https://github.com/RadiusNetworks/radius-spec/issues
167
- changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.14.0/CHANGELOG.md
168
- source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.14.0
147
+ changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.15.1/CHANGELOG.md
148
+ source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.15.1
169
149
  rubygems_mfa_required: 'true'
170
150
  post_install_message:
171
151
  rdoc_options: []
@@ -175,14 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
155
  requirements:
176
156
  - - ">="
177
157
  - !ruby/object:Gem::Version
178
- version: '2.5'
158
+ version: '3.1'
179
159
  required_rubygems_version: !ruby/object:Gem::Requirement
180
160
  requirements:
181
161
  - - ">="
182
162
  - !ruby/object:Gem::Version
183
163
  version: '0'
184
164
  requirements: []
185
- rubygems_version: 3.3.26
165
+ rubygems_version: 3.3.27
186
166
  signing_key:
187
167
  specification_version: 4
188
168
  summary: Radius Networks RSpec setup and plug-ins