Project

petname

0.0
No commit activity in last 3 years
No release in over 3 years
Generates random words consisting of a random combination of an adverb, adjective, and proper name. Ported from https://github.com/dustinkirkland/petname
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
~> 10.0
>= 0
 Project Readme

PetName

Build Status Gem Version

Installation

Add this line to your application's Gemfile:

gem 'petname'

And then execute:

$ bundle

Or install it yourself as:

$ gem install petname

Usage

require 'petname'

pn = PetName::Generator.new

# returns random name consisted of two words and separated with '-'
pn.generate # => e.g. "intercentral-parthenia"

# and you can specify separator and number of words
pn.generate separator: "!!!" # => e.g. "simulacral!!!sherika"
pn.generate words: 5 # => e.g. "theistically-subsuperficially-synaptically-metapneustic-nedra"
pn.generate separator: "**", words: 3 # => e.g. "ridiculously**nontypographical**jacque"

Contributing

  1. Fork it ( https://github.com/polamjag/petname/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Acknowledgment

This gem is a Ruby port of dustinkirkland/petname.