https://github.com/ffaker/ffaker
Faker refactored.
https://github.com/ffaker/ffaker
Keywords from Contributors
activerecord activejob mvc rubygem sidekiq rspec sinatra crash-reporting jobs background-jobs
Last synced: about 13 hours ago
JSON representation
Repository metadata
Faker refactored.
- Host: GitHub
- URL: https://github.com/ffaker/ffaker
- Owner: ffaker
- License: mit
- Created: 2010-01-15T06:26:22.000Z (almost 16 years ago)
- Default Branch: main
- Last Pushed: 2025-11-27T04:08:55.000Z (13 days ago)
- Last Synced: 2025-11-28T06:45:01.133Z (12 days ago)
- Language: Ruby
- Homepage: https://github.com/ffaker/ffaker
- Size: 5.08 MB
- Stars: 1,565
- Watchers: 30
- Forks: 557
- Open Issues: 15
- Releases: 19
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
README.md
ffaker
Usage
require 'ffaker'
FFaker::Name.name #=> "Christophe Bartell"
FFaker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info"
ffaker vs faker
The faker and ffaker APIs are mostly the same, although the API on ffaker keeps
diverging with its users additions. In general, the only difference is that you
need to:
gem install ffaker
and then
require 'ffaker'
Rails
- If using rails then add the gem to your development and test environments:
group :development, :test do
gem 'ffaker'
end
- and then run
bundle installin your terminal/BASH/command line.
Why ffaker?
ffaker is a fork of faker, and was initially written in an effort to speed up
a slow spec suite. Since those days faker has also been rewritten and the
"speed" factor is probably irrelevant now. Bear in mind, if your spec suite
is slow, chances are the generation of random data will probably not account
for much of the run time.
Nowadays the code bases have diverged enough to make the two projects truly
different: since ffaker creation, a lot of new API methods have been added
through the generous contributions of people all over the world.
Hopefully some day faker and ffaker will join forces!
Contributors
A lot of people have contributed to ffaker. Check this list.
If you want to add new modules or localization data, use one of the
directories for data files
(or create a new one!).
const_missing is
overridden
for Faker modules, so if you try to use a constant that is not defined
in the module, the
override
will look for a data file matching the name of the constant. E.G.: the
first time someone accesses FFaker::Name::FIRST_NAMES, a const of that
name will be set with data from ffaker/data/name/first_names.
Using the same random seed as your tests
To get repeatable results in Minitest or Rspec, follow these instructions.
Unique values
You can ensure unique values are generated using the unique method. ffaker will retry the generation
until an unique value if found.
Example:
FFaker::Name.unique.name # ensures an unique value is returned for FFaker::Name
If an unique value cannot be generated within a maximum limit of retries for a generator
a FFaker::UniqueUtils::RetryLimitExceeded error will be raised.
You can prevent exceeding the limit by clearing the record of used values (e.g. between tests):
FFaker::Name.unique.clear # clears the used values for FFaker::Name
FFaker::UniqueUtils.clear # clears the used values for all generators
TODO
- Even though the API is pretty simple, better rdoc documentation would not hurt.
- Put all modules under their respective languages (E.G. EducationUS instead of just Education)
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- To run all the tests:
rake test - To run a single test:
rake test TEST=test/test_lorem_br.rb
- To run all the tests:
- Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) - Send me a pull request. Bonus points for topic branches.
Release
- Bump version in
lib/version.rb. - Update
Changelog.md. - Tag with
v<major>.<minor>.<patch>. - Push it.
Copyright
Copyright (c) 2013 Emmanuel Oga. See LICENSE for details.
Copyright (c) 2007 Benjamin Curtis
Owner metadata
- Name: ffaker
- Login: ffaker
- Email:
- Kind: organization
- Description:
- Website: https://rubygems.org/gems/ffaker
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/13128015?v=4
- Repositories: 1
- Last ynced at: 2024-03-25T22:55:51.288Z
- Profile URL: https://github.com/ffaker
GitHub Events
Total
- Create event: 2
- Release event: 4
- Issues event: 1
- Watch event: 14
- Delete event: 1
- Issue comment event: 3
- Push event: 20
- Pull request review event: 13
- Pull request review comment event: 8
- Pull request event: 11
- Fork event: 6
Last Year
- Release event: 4
- Watch event: 12
- Delete event: 1
- Issue comment event: 3
- Push event: 20
- Pull request review event: 13
- Pull request review comment event: 8
- Pull request event: 11
- Fork event: 6
- Create event: 2
Committers metadata
Last synced: 4 days ago
Total Commits: 885
Total Committers: 228
Avg Commits per committer: 3.882
Development Distribution Score (DDS): 0.817
Commits in past year: 28
Committers in past year: 8
Avg Commits per committer in past year: 3.5
Development Distribution Score (DDS) in past year: 0.25
| Name | Commits | |
|---|---|---|
| marocchino | m****o | 162 |
| Emmanuel Oga | E****a@g****m | 96 |
| Hannes Maack | h****k@r****t | 41 |
| Voloshyn Vsevolod | s****n@g****m | 40 |
| Matthew Nielsen | x****r@p****g | 36 |
| Kristján Pétursson | k****n@g****m | 23 |
| Pathe SENE | p****e@g****m | 20 |
| Rico Sta. Cruz | hi@r****m | 16 |
| Tijn Schuurmans | t****n@t****l | 14 |
| Walerian Sobczak | w****k@g****m | 11 |
| Alexander Popov | a****r@g****m | 10 |
| Pablo Ruiz | p****z@m****x | 9 |
| Vsevolod Romashov | 7@7****u | 9 |
| swcool | a****8@y****m | 8 |
| davidnoelte | d****e@d****l | 8 |
| Emmanuel Oga | c****t@e****m | 8 |
| Kristian Mandrup | k****p@g****m | 7 |
| Igor Marques | i****a@g****m | 7 |
| Derek Ethier | d****r@g****m | 6 |
| Jakub Misina | j****a@g****m | 6 |
| Todd Sedano | t****o@g****m | 6 |
| makabde | h****o@m****e | 6 |
| Tee Parham | t****e@n****m | 5 |
| Luke Inglis | l****s@A****l | 5 |
| Eric Santos | W****i | 4 |
| Steve Clarke | d****h@n****m | 4 |
| hoblin | e****n@g****m | 4 |
| Antonios Falegkos | f****1@g****m | 4 |
| Jason Dugdale | j****e@g****m | 4 |
| Gustavo Souza | g****j@h****m | 4 |
| and 198 more... | ||
Committer domains:
- mitre.org: 2
- gusto.com: 2
- auctionedge.com: 1
- port80labs.com: 1
- njclarke.com: 1
- bellyphant.com: 1
- eet.nu: 1
- petenelson.com: 1
- fullbridge.com: 1
- agencyfusion.com: 1
- sprucecreeksoftware.com: 1
- armanjon.com: 1
- yomukaku.net: 1
- pasj.cta.br: 1
- locomote.com.au: 1
- ibjapan.jp: 1
- stackpilot.com: 1
- gameon.co.jp: 1
- travelaccommodation.eu: 1
- haahtinen.name: 1
- microspino.com: 1
- me.com: 1
- urbanvention.com: 1
- google.com: 1
- ninjanizr.com: 1
- neighborland.com: 1
- makabde.me: 1
- emmanueloga.com: 1
- 7vn.ru: 1
- maquech.com.mx: 1
- tijnschuurmans.nl: 1
- ricostacruz.com: 1
- pyxidis.org: 1
- rocknruby.it: 1
- kiskolabs.com: 1
- fastmail.fm: 1
- gmx.de: 1
- valid.be: 1
- rwell.org: 1
- yahoo.com.br: 1
- rafter.com: 1
- andylibby.org: 1
- fastmail.com: 1
- nasa.gov: 1
- lowe.nu: 1
- blocknot.es: 1
- bitwrangler.com: 1
- jroes.net: 1
- jan.vlnas.cz: 1
- o2.pl: 1
- mans.de: 1
- springhealth.com: 1
- locomote.com: 1
- tatey.com: 1
- layer22.com: 1
- gotime.com: 1
- kimoby.com: 1
- firedev.com: 1
- buk.co: 1
- moritzlawitschka.de: 1
- edge14.com: 1
- flickevents.com: 1
- mrthe.name: 1
- finarfin.net: 1
- incaztech.com: 1
- suse.de: 1
- unifesp.br: 1
- gitter.im: 1
Issue and Pull Request metadata
Last synced: 11 days ago
Total issues: 32
Total pull requests: 105
Average time to close issues: about 1 year
Average time to close pull requests: about 2 months
Total issue authors: 28
Total pull request authors: 51
Average comments per issue: 2.56
Average comments per pull request: 1.08
Merged pull request: 89
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 11
Past year average time to close issues: N/A
Past year average time to close pull requests: about 1 month
Past year issue authors: 2
Past year pull request authors: 7
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.27
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- yudanhezhongweijie (2)
- rstacruz (2)
- professor (2)
- marocchino (2)
- paulomcnally (1)
- hurtstotouchfire (1)
- gusailov (1)
- graudeejs (1)
- hmaack (1)
- nicolas-brousse (1)
- tansaku (1)
- vizjerai (1)
- rabinshr (1)
- zedtux (1)
- marko-avlijas (1)
Top Pull Request Authors
- Volosh1n (21)
- marocchino (9)
- professor (8)
- AlexWayfer (4)
- hulous (3)
- nedzib (2)
- nigelgomesot (2)
- stilist (2)
- kianmeng (2)
- SteveRedka (2)
- hmaack (2)
- abnersajr (2)
- cookiepingyen (2)
- boimw (2)
- petergoldstein (2)
Top Issue Labels
Top Pull Request Labels
- hacktoberfest-accepted (3)
- enhancement (1)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 137,166,800 total
- Total docker downloads: 911,643,232
- Total dependent packages: 528 (may contain duplicates)
- Total dependent repositories: 14,600 (may contain duplicates)
- Total versions: 201
- Total maintainers: 5
gem.coop: ffaker
Ffaker generates dummy data.
- Homepage: https://github.com/ffaker/ffaker
- Documentation: http://www.rubydoc.info/gems/ffaker/
- Licenses: MIT
- Latest release: 2.25.0 (published 3 months ago)
- Last Synced: 2025-12-09T04:02:18.797Z (1 day ago)
- Versions: 69
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 68,584,742 Total
- Docker Downloads: 455,821,616
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.162%
- Docker downloads count: 0.241%
- Downloads: 0.406%
- Maintainers (5)
rubygems.org: ffaker
Ffaker generates dummy data.
- Homepage: https://github.com/ffaker/ffaker
- Documentation: http://www.rubydoc.info/gems/ffaker/
- Licenses: MIT
- Latest release: 2.25.0 (published 3 months ago)
- Last Synced: 2025-12-09T00:03:02.205Z (1 day ago)
- Versions: 69
- Dependent Packages: 528
- Dependent Repositories: 14,600
- Downloads: 68,582,058 Total
- Docker Downloads: 455,821,616
-
Rankings:
- Dependent packages count: 0.086%
- Dependent repos count: 0.289%
- Docker downloads count: 0.33%
- Downloads: 0.424%
- Average: 0.598%
- Forks count: 1.162%
- Stargazers count: 1.298%
- Maintainers (5)
proxy.golang.org: github.com/ffaker/ffaker
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ffaker/ffaker#section-documentation
- Licenses: mit
- Latest release: v2.24.0+incompatible (published 10 months ago)
- Last Synced: 2025-12-07T21:04:02.643Z (3 days ago)
- Versions: 63
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 1.207%
- Stargazers count: 1.712%
- Average: 5.824%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- rake ~> 13.0 development
- rubocop >= 0 development
- test-unit >= 0 development
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- stefanzweifel/git-auto-commit-action v4 composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 33.565462855116905