GithubHelp home page GithubHelp logo

hurtubise / faker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from faker-ruby/faker

0.0 1.0 0.0 472 KB

A library for generating fake data such as names, addresses, and phone numbers.

Home Page: http://faker.rubyforge.org

License: MIT License

faker's Introduction

Faker

This gem is a port of Perl's Data::Faker library that generates fake data.

It comes in very handy for taking screenshots (taking screenshots for my project, Catch the Best was the original impetus for the creation of this gem), having real-looking test data, and having your database populated with more than one or two records while you're doing development.

Installing

sudo gem install faker

Usage

Faker::Name.name      #=> "Christophe Bartell"

Faker::Internet.email #=> "[email protected]"

Customization

Since you may want to make addresses and other types of data look different depending on where in the world you are (US postal codes vs. UK postal codes, for example), Faker uses the I18n gem to store strings (like state names) and formats (US postal codes are NNNNN while UK postal codes are AAN NAA), allowing you to get different formats by switching locales. Just set Faker::Config.locale to the locale you want, and Faker will take care of the rest.

Contributing

If you'd like to contribute code or formats/data for another locale, fork the project at github, make your changes, then send a pull request.

note Run bundle install and rake test to confirm tests are passing.

Contact

Comments and feedback are welcome. Send an email to Benjamin Curtis via the google group.

License

This code is free to use under the terms of the MIT license.

faker's People

Contributors

adamstrickland avatar amatsuda avatar apantaliao avatar bazlo avatar benmoss avatar boblail avatar cgore avatar chriskottom avatar damienbrz avatar dasmoose avatar dmitrytsepelev avatar igbanam avatar jeanmartin avatar jorgegorka avatar kalbasit avatar kdmsnr avatar kytrinyx avatar leereilly avatar makaroni4 avatar manveru avatar maxmiliano avatar moretea avatar mumualex avatar peterwumc avatar stympy avatar supercleanse avatar suweller avatar tenderlove avatar thedeeno avatar toadjamb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.