The via.placeholder.com service no longer resolves, so the URLs
generated by Faker::Placeholdit are broken. Per maintainer guidance in
the issue and the project's decision to move away from generators that
rely on external services (faker-ruby#2852), deprecate the generator instead of
pointing it at another third-party host, so it can be removed in a
future release.
Faker::Placeholdit.image keeps working and returns the same values; it
now emits a deprecation warning recommending Faker::LoremFlickr.image.
[Fix faker-ruby#3055]
Motivation / Background
Fixes #3055
The via.placeholder.com service no longer resolves (ERR_NAME_NOT_RESOLVED), so every URL generated by Faker::Placeholdit is broken. In the issue discussion, @stefannibrasil asked for this generator to be deprecated — consistent with the project's decision to move away from generators that rely on external services (#2852) — rather than repointing it at another third-party host.
This PR deprecates Faker::Placeholdit#image using Gem::Deprecate, following the process documented in CONTRIBUTING.md and the precedent from #2733 (free_email/safe_email). The generator keeps working and returns the same values, so this is fully backward compatible — it just warns and recommends Faker::LoremFlickr.image, the maintained replacement.
Additional information
Console output after the change:
Changes:
Test results: bundle exec rake → 2180 tests, 297308 assertions, 0 failures, 0 errors; RuboCop: 576 files inspected, no offenses detected.
Checklist
Before submitting the PR make sure the following are checked:
🤖 Generated with Claude Code