令人难忘的名字生成器宝石红宝石 [英] memorable name generator gem for ruby
问题描述
在我开始推出自己的字典并开始提取字典之前,是否有人知道使用rubygem生成适合应用程序密钥的令人难忘的名称。我需要一些可读的内容,以便我可以为用户提供唯一的电子邮件地址来提交内容。我喜欢Heroku以它的应用程序命名为例。
floating-sky-58
simple-fog-45
您可以使用randexp gem。它使用操作系统中的字典(仅适用于UNIX)
带有 randexp gem 你可以这样做:
/ [:word:] - [:word:] - \\ \\ d + /。gen
并且有类似heroku的命名。
如果您的服务器没有dict库安装,您可以尝试 faker 或 Lorem b
但真正受到限制。
Before I go roll my own and start pulling out the dictionary, does anyone know a rubygem to generate memorable names suitable for app keys. I need something pronounceable so that I can give users unique email addresses to submit content to. I like Heroku's naming for it's apps as an example.
floating-sky-58
simple-fog-45
You can use randexp gem. It's use the dictionnary from your OS ( UNIX only )
with randexp gem you can do something like :
/[:word:]-[:word:]-\d+/.gen
and have like heroku naming.
If your server has no dict library install you can try faker or Lorem
but really much limitated.
这篇关于令人难忘的名字生成器宝石红宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!