Skip to content

Add 'validated' as a synonym for 'validates' and bump version to 2.3.2#16

Merged
dogweather merged 1 commit intomasterfrom
feature/validated-synonym
Jun 11, 2025
Merged

Add 'validated' as a synonym for 'validates' and bump version to 2.3.2#16
dogweather merged 1 commit intomasterfrom
feature/validated-synonym

Conversation

@dogweather
Copy link
Member

Fixes #13

@dogweather dogweather requested a review from Copilot June 11, 2025 22:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds support for using validated as an alias for validates throughout the library and updates the version and changelog.

  • Introduce a validated alias in both the core API and the simplified API
  • Add a spec to verify the new alias behaves like validates
  • Bump version to 2.3.2 and update HISTORY

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
spec/validated_object_spec.rb Add test verifying validated alias for validates
lib/validated_object/version.rb Bump version constant from 2.3.1 to 2.3.2
lib/validated_object/simplified_api.rb Define validated alias in the simplified API module
lib/validated_object.rb Define ValidatedObject.validated alias in the core API
HISTORY.md Add changelog entry for version 2.3.2
.rspec Update test runner configuration
Comments suppressed due to low confidence (3)

lib/validated_object/simplified_api.rb:16

  • [nitpick] Since this introduces a new public-facing method, add a YARD doc or inline comment describing its purpose and usage pattern for consistency with the rest of the API docs.
# Allow 'validated' as a synonym for 'validates'.

lib/validated_object.rb:160

  • [nitpick] Likewise, document this class-level alias in the public API comment block so consumers know validated is available at the class scope.
def self.validated(*args, **kwargs, &block)

.rspec:1

  • [nitpick] It looks like the --format documentation line was retained and --color was removed. Verify that this change is intentional, as removing color output may impact readability during local development.
---format documentation

@dogweather dogweather merged commit d2302e0 into master Jun 11, 2025
4 checks passed
@dogweather dogweather deleted the feature/validated-synonym branch June 11, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs misname validated_attr as validates_attr.

2 participants