This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 02a8180031cd4207bdac710b506b4f904882d4e6
tree 5fc6aef5d4cc3741a874048feb03f3e881a0ae82
parent 6372c667987494e1f8c8bfec4e94b28fe0c9f72f
tree 5fc6aef5d4cc3741a874048feb03f3e881a0ae82
parent 6372c667987494e1f8c8bfec4e94b28fe0c9f72f
forgery /
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
generators/ | Thu Apr 03 18:19:30 -0700 2008 | |
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
spec/ | ||
| |
uninstall.rb |
README
Forgery ======= The Problem: Making meaningful development data for your application. The Solution: A fake data generator that does more than just lorem ipsum and random text (well, it does those too, but also does much more). Forgery generates fake data from dictionaries, formats, and recipes. The plugin includes a generator providing directories to make your own forgeries. Generator ========= ./script/generate forgery In a rails project this generator creates: RAILS_ROOT/lib/forgery RAILS_ROOT/lib/forgery/dictionaries RAILS_ROOT/lib/forgery/extensions RAILS_ROOT/lib/forgery/forgeries RAILS_ROOT/lib/forgery/formats You can then use these directories to write your own dictionaries, class extensions, forgeries, and formats. Forgery will look first here for dictionaries and formats, so you can override the ones used in the plugin. See the forgeries in the plugin for examples of how to write your own. See which dictionaries each forgery uses to override them with your own. Examples ======== Here I'll supply a few examples of how it works, in general. See each forgery for individual examples. BasicForgery.password # => "wYMYvq" BasicForgery.password :allow_special => true # => ";Qo^N[T" BasicForgery.hex_color # => "#f4d841" MonetaryForgery.money # => "8.21" MonetaryForgery.formatted_money # => "$3.25" MonetaryForgery.money :min => 100, :max => 1000 # => "848.97" Notes ===== This is a work in progress. If you find bugs or have forgeries to contribute, we'll gladly take them and give credit. Enjoy. Nate Sutton (nate@sevenwire.com)








