Politokens
Generate Heroku-like memorable random names to use in your apps or anywhere else, but with a geopolitical twist. Fork of Haikunator
Installation
Add this line to your application's Gemfile:
gem 'politokens'
And then execute:
$ bundle
Or install it yourself as:
$ gem install politokens
Usage
Politokens is pretty simple. There is nothing to configure and it only has a single method, .politoke
:
Politokens.politoke # => "courteous-honduras-4520"
# Token range
Politokens.politoke(100) # => "warmhearted-slovenia-93"
# Don't include the token
Politokens.politoke(0) # => "forceful-denmark"
# Use a different delimiter
Politokens.politoke(9999, '.') # => "courageous.laos.7447"
# No token, no delimiter
Politokens.politoke(0, ' ') # => "thoughtful ghana"
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features