Description
With this gem, you can easily generate strings supplying a very simple pattern. Even generate random words in English or Spanish.
Also, you can validate if a text fulfills a specific pattern or even generate a string following a pattern and returning the wrong length, value... for testing your applications. Perfect to be used in test data factories.
Also you can use regular expressions (Regexp) to generate strings: /[a-z0-9]{2,5}\w+/.gen
To do even more take a look at nice_hash gem
StringPattern alternatives and similar gems
Based on the "Fake Data" category.
Alternatively, view string_pattern alternatives based on common mentions on social networks and blogs.
-
faker
A library for generating fake data such as names, addresses, and phone numbers. -
factory_bot
A library for setting up Ruby objects as test data. -
Fabrication
This project has moved to GitLab! Please check there for the latest updates. -
FactoryTrace
Simple tool to maintain factories and traits from FactoryBot
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of StringPattern or a related project?