Skip to content

Conversation

@afuno
Copy link
Member

@afuno afuno commented Dec 29, 2025

No description provided.

- Enhanced inclusion submatchers and dynamic options to support `Range` values natively.
- Improved handling of mixed inclusion formats (`Array`, `Range`) for better compatibility.
- Refactored normalization and comparison logic for inclusion values.
- Added methods to safely generate values outside inclusion constraints.
- Updated RBS signatures to reflect changes in inclusion handling.
- Refactored conditional logic in `#valid?` method to streamline optional with default case handling.
- Simplified `#normalize_inclusion_values` method by merging `Range` and `Array` checks for improved readability.
- Minor consistency update in `description` method to standardize string formatting.
- Refactored conditional logic in inclusion validation methods for clarity, particularly handling of optional default cases.
- Replaced `compare_inclusion_values` with more descriptive `inclusion_values_match?` for better expressiveness.
- Updated RBS signatures and related submatchers to align with new method naming.
- Reformatted lambda expressions with multiline syntax for improved code style consistency.
- Introduced `Example13` to `Example19` under `Usual::DynamicOptions::Inclusion` demonstrating various inclusion use cases (ranges, unlimited, and custom messages).
- Added `Example7` under `Wrong::DynamicOptions::Inclusion` to showcase invalid inclusion behavior.
- Provide comprehensive RSpec tests for all new examples, ensuring validation and boundary checks.
- Maintained existing code patterns and best practices for consistency.
- Deleted `Example7` class and its associated RSpec tests under `Wrong::DynamicOptions::Inclusion`.
- Code and tests for `Example7` showcased invalid inclusion behavior, which is no longer required.
- Streamlined the codebase by removing unnecessary examples and tests.
@afuno afuno added this to the v.2.17.0 milestone Dec 29, 2025
@afuno afuno self-assigned this Dec 29, 2025
@afuno afuno added the feature label Dec 29, 2025
…dation

- Replaced `case` statement in `element_matches?` with a streamlined ternary operation for improved readability.
- Added a `nil` check in `range_covers?` to prevent errors and ensure robust validation.
- Maintained method behavior and compatibility with existing codebase patterns.
@afuno afuno marked this pull request as ready for review December 29, 2025 20:24
@afuno afuno merged commit 525f991 into main Dec 29, 2025
37 checks passed
@afuno afuno deleted the feature/SRV-364/inclusion_range branch December 29, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants