Sitelet https://github.com/ffaker/ffaker/pull/572
Skip to content

Add retry_until helper to filter generated values by condition - #572

Open
marocchino with Copilot wants to merge 4 commits into
mainfrom
copilot/add-retry-helper-method
Open

marocchino with Copilot wants to merge 4 commits into
mainfrom
copilot/add-retry-helper-method

Conversation

Copilot AI commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor
  • Rename only → retry_until, OnlyUtils → RetryUtils, limit as keyword arg
  • Reduce retry_until default limit: from 10_000 to 100 in module_utils.rb and tests

Copilot AI and others added 2 commits April 24, 2026 03:38
Comment thread README.md Outdated

Example:
```ruby
FFaker::Name.only { |str| str.size > 2 }.first_name # returns a first name longer than 2 characters

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would appreciate it if you could suggest a better method name.

Copilot AI requested a review from marocchino April 24, 2026 03:57
@marocchino marocchino changed the title Add only helper to filter generated values by condition Add retry_until helper to filter generated values by condition Apr 24, 2026
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.

2 participants