A Ruby gem for generating fake data with a simple syntax and customizable dictionaries for testing and development.
Forgery is a Ruby gem that generates realistic, customizable fake data for software testing and development. It solves the problem of creating meaningful test data by providing a wide array of pre-built generators for addresses, names, financial information, and other common data types. Its simple syntax and extensibility make it a go-to tool for populating databases and writing tests.
Ruby and Rails developers who need to generate test data for their applications, including those writing unit tests, integration tests, or seeding development databases.
Developers choose Forgery for its ease of use, comprehensive built-in data sets, and the ability to fully customize dictionaries. Its seamless Rails integration and memorable API make it a more developer-friendly alternative to writing manual data fixtures or using less flexible generators.
Easy and customizable generation of forged data.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers generators for addresses, names, financial details, and more, as evidenced by the extensive method tables covering categories like Address, Basic, Credit Card, and Lorem Ipsum.
Provides two clean calling conventions, such as `Forgery(:basic).password` or `Forgery::Basic.password`, making it easy to integrate into test suites and seed files without memorization.
Allows developers to extend or override built-in data dictionaries and formats, with Rails generators to set up custom directories for domain-specific data, as highlighted in the 'Customizable Dictionaries' section.
Includes generators for Rails 2.x and 3.x to quickly create custom forgery directories within a Rails application, facilitating rapid setup and adoption in Rails projects.
The README only specifies integration for Rails 2.x and 3.x, with no mention of newer versions like Rails 4, 5, or 6, potentially causing compatibility issues in modern Ruby on Rails applications.
Relies on pre-built dictionaries for data generation, which may not support complex, dynamic data patterns or algorithmic generation without significant custom work, limiting flexibility for unique use cases.
While some methods support options like min/max ranges, the parameterized generation is basic compared to more advanced libraries, lacking built-in support for nested or conditional data structures.