Add 'validated' as a synonym for 'validates' and bump version to 2.3.2#16
Merged
dogweather merged 1 commit intomasterfrom Jun 11, 2025
Merged
Add 'validated' as a synonym for 'validates' and bump version to 2.3.2#16dogweather merged 1 commit intomasterfrom
dogweather merged 1 commit intomasterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
Adds support for using validated as an alias for validates throughout the library and updates the version and changelog.
- Introduce a
validatedalias 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
validatedis available at the class scope.
def self.validated(*args, **kwargs, &block)
.rspec:1
- [nitpick] It looks like the
--format documentationline was retained and--colorwas removed. Verify that this change is intentional, as removing color output may impact readability during local development.
---format documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13