Development
Enhancements
- TODO
Bug Fixes
- TODO
0.14.0 (May 23, 2024)
Enhancements
- Update rubocop-rails requirement from >= 2.13, < 2.21 to >= 2.13, < 2.22 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/68
- Disabling
Rails/RedundantActiveRecordAllMethodcop by @alexstone in https://github.com/RadiusNetworks/radius-spec/pull/69 - Update rubocop requirement from >= 1.25, < 1.57 to >= 1.25, < 1.58 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/70
- Update rubocop requirement from >= 1.25, < 1.58 to >= 1.25, < 1.59 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/72
- Update rubocop requirement from >= 1.25, < 1.59 to >= 1.25, < 1.60 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/73
- Update rubocop requirement from >= 1.25, < 1.60 to >= 1.25, < 1.61 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/74
- Update rubocop requirement from >= 1.25, < 1.61 to >= 1.25, < 1.62 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/75
0.13.0 (September 7, 2023)
What's Changed
- Removes Ruby 2.5 from list of versions to run by @corrieleech in https://github.com/RadiusNetworks/radius-spec/pull/60
- Update rubocop requirement from >= 1.25, < 1.43 to >= 1.25, < 1.46 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/57
- Update rubocop-rails requirement from >= 2.13, < 2.18 to >= 2.13, < 2.19 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/58
- Update rubocop requirement from >= 1.25, < 1.46 to >= 1.25, < 1.53 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/61
- Remove Ruby 2.6 from CI workflow. by @jcavena in https://github.com/RadiusNetworks/radius-spec/pull/64
- Update rubocop-rails requirement from >= 2.13, < 2.20 to >= 2.13, < 2.21 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/62
- Update rubocop requirement from >= 1.25, < 1.53 to >= 1.25, < 1.54 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/63
- Update rubocop requirement from >= 1.25, < 1.54 to >= 1.25, < 1.55 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/65
- Update rubocop requirement from >= 1.25, < 1.55 to >= 1.25, < 1.56 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/66
- Update rubocop requirement from >= 1.25, < 1.56 to >= 1.25, < 1.57 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/67
New Contributors
- @corrieleech made their first contribution in https://github.com/RadiusNetworks/radius-spec/pull/60
- @jcavena made their first contribution in https://github.com/RadiusNetworks/radius-spec/pull/64
Full Changelog: https://github.com/RadiusNetworks/radius-spec/compare/v0.12.1...v0.13.0
0.12.0 (August 3, 2022)
Enhancements
- Upgrade
rubocop(1.0 Edition 🎉 ) by @jnebeker in https://github.com/RadiusNetworks/radius-spec/pull/33 - Rubocop rails upgrades by @benreyn in https://github.com/RadiusNetworks/radius-spec/pull/36
- Upgrade rubocop to Latest by @alexstone in https://github.com/RadiusNetworks/radius-spec/pull/37
- Upgrade rubocop and rubcop-rails dependecies by @benreyn in https://github.com/RadiusNetworks/radius-spec/pull/39
- Include model factories in helpers specs by default by @benreyn in https://github.com/RadiusNetworks/radius-spec/pull/40
- Adds Dependabot to Radius-Spec by @alexstone in https://github.com/RadiusNetworks/radius-spec/pull/42
- Update vcr requirement from ~> 4.0 to ~> 6.0 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/44
- Update rubocop-rails requirement from ~> 2.13.0 to >= 2.13, < 2.15 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/46
- Update rubocop requirement from ~> 1.25.0 to >= 1.25, < 1.29 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/48
- Update rubocop-rails requirement from >= 2.13, < 2.15 to >= 2.13, < 2.16 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/50
- Update rubocop requirement from >= 1.25, < 1.29 to >= 1.25, < 1.31 by @dependabot in https://github.com/RadiusNetworks/radius-spec/pull/49
Bug Fixes
None
0.11.0 (January 21, 2022)
Enhancements
- Adjust common Rubocop configuration (Aaron Hill, Aaron Kromer, Ben Reynolds, James Nebeker, JC Avena, Sam Kim)
- Enable
Lint/NoReturnInBeginEndBlocksby default - Set
AllowHttpProtocol: falseforBundler/InsecureProtocolSourcecop - Set
AllowNil: falseforLint/SuppressedExceptioncop - Enable
Naming/BlockForwardingcop for future Ruby 3.1 usage - Disallow Ruby 3
Style/NumberedParameters - Enable
Style/StringCharsby default - Set
AllowMethodsWithArguments: trueforStyle/SymbolProccop - Disallow combined
&&and||in singleunlessclauses - Enable
Naming/InclusiveLanguageby default
- Enable
- Adjust common Rubocop-Rails configuration (Alex Stone, James Nebeker, Aaron Kromer, Ben Reynolds, Sam Kim)
- Enable
Rails/EnvironmentVariableAccess(AllowReadstotrue) - Changed
Rails/FindBy:IgnoreWhereFirsttofalse - Enable
Rails/ReversibleMigrationMethodDefinition
- Enable
- Upgrade to Rubocop Rails 2.12.x (Alex Stone, James Nebeker, Aaron Kromer, Ben Reynolds, Sam Kim)
- Upgrade to Rubocop Rails 2.13.x (Alex Stone, James Nebeker, Aaron Kromer, Ben Reynolds, Sam Kim)
- Upgrade to Rubocop 1.25.x (Alex Stone, James Nebeker, Aaron Kromer, Ben Reynolds, Sam Kim, JC Avena, Eric Ouellette, Aaron Hill)
- Include model factory helpers in helper specs by default (Alex Stone, James Nebeker, Aaron Kromer, Ben Reynolds, JC Avena, Eric Ouellette)
Bug Fixes
None
0.10.0 (October 18, 2021)
Enhancements
- Upgrade to Rubocop Rails 2.8.x (Aaron Hill, Aaron Kromer, Ben Reynolds, James Nebeker, JC Avena, Sam Kim, Alex Stone #30, #32)
- Adjust common Rubocop Rails configuration (Aaron Hill, Aaron Kromer, Ben Reynolds, James Nebeker, JC Avena,
Sam Kim, Alex Stone #30, #32)
- Enable
Rails/AttributeDefaultBlockValueby default - Enable
Rails/ArelStarby default - Enable
Rails/DefaultScopeby default - Enable
Rails/FindByIdby default - Enable
Rails/PluckIdby default - Enable
Rails/WhereEqualsby default - Use the more aggressive
aggressivecheck forRails/PluckInWhere - Use the more aggressive
aggressivecheck forRails/ShortI18n - Switch to new
AllowedMethodsattribute name forRails/SkipsModelValidations - Disable
Rails/SquishedSQLHeredocsby default
- Enable
- Adjust common Rubocop configuration (Aaron Hill, Aaron Kromer, JC Avena, Sam
Kim #32, #34)
- Enable
Style/ClassMethodsDefinitionsby default - Enable
Style/CombinableLoopsby default - Enable
Style/KeywordParametersOrderby default - Enable
Style/RedundantSelfAssignmentby default - Enable
Style/SoleNestedConditionalby default - Enable
Lint/DuplicateRequireby default - Enable
Lint/EmptyFileby default - Enable
Lint/TrailingCommaInAttributeDeclarationby default - Enable
Lint/UselessMethodDefinitionby default - Exclude the following testing methods from
Metrics/BlockLength - 'describe'
- 'shared_context'
- 'shared_examples'
- 'RSpec.describe'
- 'RSpec.shared_context'
- 'RSpec.shared_examples'
- Enable
Bug Fixes
None
0.9.0 (September 30, 2021)
Enhancements
- Upgrade to Rubocop 0.89.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker, JC Avena, Sam Kim #27)
- Upgrade to Rubocop Rails 2.6.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker, JC Avena, Sam Kim #27)
- Adjust common Rubocop configuration (Aaron Hill, Aaron Kromer, Ben Reynolds,
Chris Hoffman, James Nebeker, JC Avena, Sam Kim #27)
- Configure multiple metrics to use the
CountAsOneoption for array, hash and heredocs - Disable
Style/SlicingWithRangeas we do not care about the style
- Configure multiple metrics to use the
- Includes new
shared_example/shared_contextinclusion aliaseshas_behaviorandit_has_behaviorfor behavior driven development language (Aaron Kromer, Ben Reynolds #28)
Bug Fixes
None
Breaking Change
- Change the default behavior from
:warnto:raisefor RSpec expectations behavioron_potential_false_positives(Aaron Kromer, Ben Reynolds #28)
0.8.0 (August 26, 2021)
Enhancements
- Upgrade to Rubocop 0.82.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker, JC Avena #26)
- Upgrade to Rubocop Rails 2.5.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker, JC Avena #26)
- Adjust common Rubocop configuration (Aaron Hill, Aaron Kromer, Ben Reynolds,
Chris Hoffman, James Nebeker, JC Avena #26)
- Rename metrics/configuration parameters per version upgrade requirements
- Use the stricter
always_truecheck forStyle/FrozenStringLiteralComment - Opt-in to new cops/checks behaving per their default settings
- Adjust common Rubocop Rails configuration (Aaron Hill, Aaron Kromer, Ben
Reynolds, Chris Hoffman, James Nebeker, JC Avena #26)
- Disable
Rails/IndexByby default - Disable
Rails/IndexWithby default
- Disable
Bug Fixes
None
0.7.0 (July 23, 2021)
Enhancements
- Upgrade to Rubocop 0.73.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker #24)
- Upgrade to Rubocop Rails 2.2.x (Aaron Hill, Aaron Kromer, Ben Reynolds, Chris Hoffman, James Nebeker #24)
- Adjust common Rubocop configuration (Aaron Hill, Aaron Kromer, Ben Reynolds,
Chris Hoffman, James Nebeker #24)
- Target Ruby 2.7 by default
- Enable
Lint/HeredocMethodCallPositionby default - Use
StandardErrorfor the suggested parent classes of errors - Bump metric check maximums to provide a little more wiggle room
- Disable
Naming/RescuedExceptionsVariableNameby default
- Adjust common Rubocop Rails configuration (Aaron Hill, Aaron Kromer, Ben
Reynolds, Chris Hoffman, James Nebeker #24)
- Disable
Rails/IgnoredSkipActionFilterOptionby default
- Disable
Bug Fixes
None
0.6.0 (August 6, 2020)
Enhancements
- Exclude more bundler binstubs from Rubocop (Aaron Kromer, #18, #20)
- Exclude
chdirandCapybara.register_driverconfiguration blocks fromMetrics/BlockLengthchecks (Aaron Kromer, #18) - Exclude gem specs from block and line length metrics (Aaron Kromer, #20)
- Standardize on key style of
Layout/AlignHash(Aaron Kromer, #18) - Upgrade to Rubocop 0.62.x (Aaron Kromer, #21)
Bug Fixes
None
0.5.0 (September 26, 2018)
Enhancements
- Add common VCR configuration (Aaron Kromer, #16)
- Filters out
Authorizationheaders - Filters out the following sensitive/environment varying
ENVvalues, as well as their URL and form encoded variants: AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYGOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETRADIUS_OAUTH_PROVIDER_APP_IDRADIUS_OAUTH_PROVIDER_APP_SECRETRADIUS_OAUTH_PROVIDER_URL
- Filters out
- Add "temp file" helpers for working with file stubs (Aaron Kromer, #15)
- Upgrade to Rubocop 0.59.x (Aaron Kromer, #14)
- Adjust common Rubocop configuration (Aaron Kromer, #14)
Layout/EmptyLineAfterGuardClauseis enabled by default- Enable
Rails/SaveBangto highlight potential lurking issues - Expand
Rails/FindByandRails/FindEachto check all/appand/lib - Add more functional methods
default_scopefilter_sensitive_data
- Add
build!factory method to complimentbuildto help resolving Rubocop violations forRails/SaveBang(Aaron Kromer, #14) - Load model factory for specs tagged with 'type: :mailer' (Aaron Kromer, #11)
- Include the following negated RSpec matchers (Aaron Kromer, #12)
exclude/excludingnot_eqnot_changenot_raise_error/not_raise_exception
Bug Fixes
- Fix
NoMethodError: undefined method 'strip'when the fixture path is aPathnameobject (Aaron Kromer, #13)
0.4.0 (July 10, 2018)
Enhancements
- Upgrade to Rubocop 0.58.x (Aaron Kromer, #10)
- Add more custom extra details for customized cops (Aaron Kromer, #10)
- Adjust common Rubocop configuration
- Disable
Naming/BinaryOperatorParameterName(Aaron Kromer, #7) - Disable
Style/RedundantReturn(Aaron Kromer, #7) - Allow optional leading underscores for memoized instance variable names to support modules wanting to reduce conflicts / collisions. (Aaron Kromer, #10)
- Disable
- Adjust common Rubocop Rails configuration (Aaron Kromer, #7)
- Exclude Rails controllers from Rubocop's
Metrics/MethodLengthdue torespond_to/formatand permitted params methods - Disable
Rails/HasAndBelongsToMany - Exclude Rails app
config/routes.rbfromMetrics/BlockLength
- Exclude Rails controllers from Rubocop's
Bug Fixes
- Add more functional methods to Rubocop config (Aaron Kromer, #7)
createcreate!buildbuild!
- Support running system specs in isolation (Aaron Kromer, #9)
0.3.0 (June 15, 2018)
Breaking Change
- Lock Rubocop to a minor release version in gemspec (Aaron Kromer, #5)
Enhancements
- Adjust common Rubocop configuration (Aaron Kromer, #5)
- Customize
Style/AndOrto flag only conditionals allowingand/orfor control flow - Add
findto functional method blocks - Disable
Style/DoubleNegationas this is a common Ruby idiom - Disable
Style/StringLiteralsInInterpolationto stay consistent with our no preferences for single versus double quotes
- Customize
Bug Fixes
- Remove
Includefrom common Rubocop all cops configuration to fix issues with Rubocop 0.56.0+ not seeing all expected files. (Aaron Kromer, #5)
0.2.1 (May 17, 2018)
Bug Fixes
- Fix warning about overriding parameter (Aaron Kromer, #4)
0.2.0 (May 17, 2018)
Enhancements
- Adjust common Rubocop configuration (Aaron Kromer, #2):
- Ignore
Lint/AmbiguousBlockAssociationfor specs - Ignore long lines due to Rubocop directives
- Ignore long lines due to comments
- Prefer a line length of 80, but don't complain until 100
- Disable ASCII only comments
- Set the
MinSizeforStyle/SymbolArrayandStyle/WordArrayto three - Use squiggly
<<~heredoc indentation - Allow common
EOFas a heredoc delimiter - Indent multi-line operations
- Allow unspecified rescue as a catch-all
- Ignore
- Adjust common Rubocop Rails configuration (Aaron Kromer, #2):
- Ignore
Rails/ApplicationRecordfor benchmarks - Ignore more common gem binstubs
- Ignore
0.1.1 (March 16, 2018)
Bug Fixes
- Fix
NameError: undefined local variable or method configfor Rails RSpec configuration (Aaron Kromer, #1) - Fix model factory build issue in which registered template attributes, which use symbol keys, are not replaced by custom attributes using string keys (Aaron Kromer, #1)
- Exclude
spec/support/model_factories.rbfromMetrics/BlockLengthin common Rubocop config (Aaron Kromer, 714b9b3)
0.1.0 (March 14, 2018)
Initial release:
- Common Rubocop configuration
- Common Rails Rubocop configuration
- Basic model factory implementation
- Auto loads the model factory feature based on RSpec metadata
- Supports lazy loading project/app code using strings/symbols instead of class constants for faster registration
- Includes helpers for
buildandcreatein specs