Skip to content

Releases: RadiusNetworks/radius-spec

0.5.0 (September 26, 2018)

06 Aug 20:04

Choose a tag to compare

Full Changelog

Enhancements

  • Add common VCR configuration (Aaron Kromer, #16)
    • Filters out Authorization headers
    • Filters out the following sensitive/environment varying ENV values, as
      well as their URL and form encoded variants:
      • AWS_ACCESS_KEY_ID
      • AWS_SECRET_ACCESS_KEY
      • GOOGLE_CLIENT_ID
      • GOOGLE_CLIENT_SECRET
      • RADIUS_OAUTH_PROVIDER_APP_ID
      • RADIUS_OAUTH_PROVIDER_APP_SECRET
      • RADIUS_OAUTH_PROVIDER_URL
  • 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/EmptyLineAfterGuardClause is enabled by default
    • Enable Rails/SaveBang to highlight potential lurking issues
    • Expand Rails/FindBy and Rails/FindEach to check all /app and /lib
    • Add more functional methods
      • default_scope
      • filter_sensitive_data
  • Add build! factory method to compliment build to help resolving Rubocop
    violations for Rails/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 / excluding
    • not_eq
    • not_change
    • not_raise_error / not_raise_exception

Bug Fixes

  • Fix NoMethodError: undefined method 'strip' when the fixture path is a
    Pathname object (Aaron Kromer, #13)

0.4.0 (July 10, 2018)

10 Jul 19:28

Choose a tag to compare

Full Changelog

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)
  • Adjust common Rubocop Rails configuration (Aaron Kromer, #7)
    • Exclude Rails controllers from Rubocop's Metrics/MethodLength due to
      respond_to / format and permitted params methods
    • Disable Rails/HasAndBelongsToMany
    • Exclude Rails app config/routes.rb from Metrics/BlockLength

Bug Fixes

  • Add more functional methods to Rubocop config (Aaron Kromer, #7)
    • create
    • create!
    • build
    • build!
  • Support running system specs in isolation (Aaron Kromer, #9)

0.3.0 (June 15, 2018)

15 Jun 14:37

Choose a tag to compare

Full Changelog

Breaking Change

  • Lock Rubocop to a minor release version in gemspec (Aaron Kromer, #5)

Enhancements

  • Adjust common Rubocop configuration (Aaron Kromer, #5)
    • Customize Style/AndOr to flag only conditionals allowing and / or for
      control flow
    • Add find to functional method blocks
    • Disable Style/DoubleNegation as this is a common Ruby idiom
    • Disable Style/StringLiteralsInInterpolation to stay consistent with our
      no preferences for single versus double quotes

Bug Fixes

  • Remove Include from 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)

17 May 14:19

Choose a tag to compare

Full Changelog

Bug Fixes

  • Fix warning about overriding parameter (Aaron Kromer, #4)

0.2.0 (May 17, 2018)

17 May 14:17

Choose a tag to compare

Full Changelog

Enhancements

  • Adjust common Rubocop configuration (Aaron Kromer, #2):
    • Ignore Lint/AmbiguousBlockAssociation for 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 MinSize for Style/SymbolArray and Style/WordArray to three
    • Use squiggly <<~ heredoc indentation
    • Allow common EOF as a heredoc delimiter
    • Indent multi-line operations
    • Allow unspecified rescue as a catch-all
  • Adjust common Rubocop Rails configuration (Aaron Kromer, #2):
    • Ignore Rails/ApplicationRecord for benchmarks
    • Ignore more common gem binstubs

0.1.1 (March 16, 2018)

16 Mar 16:07

Choose a tag to compare

Full Changelog

Bug Fixes

  • Fix NameError: undefined local variable or method config` for 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.rb from Metrics/BlockLength in
    common Rubocop config (Aaron Kromer, 714b9b3)

0.1.0

14 Mar 23:13

Choose a tag to compare

Full Changelog

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 build and create in specs