Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adjective_animal

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adjective_animal

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

AdjectiveAnimal

Creates an adjective and an animal. Things like "Hulking Hornet", "Ambivalent Duck" and "Overjoyed Beaver". That's all it does.

Installation

Add this line to your application's Gemfile:

gem 'adjective_animal'

And then execute:

$ bundle

Or install it yourself as:

$ gem install adjective_animal

Usage

There are four fun and exciting ways to use adjective_animal:

  • Create a random adjective animal.
aa = AdjectiveAnimal.new
aa.adjective = "Overjoyed"
aa.animal = "Beaver"
  • Create an adjective animal with the same starting letter
aa = AdjectiveAnimal.new(:k)
aa.adjective = "Knowledgeable"
aa.animal = "Kangaroo"
  • Create an array of 26 adjective animals that start with the letters A-Z
aa = AdjectiveAnimal.all
# [#<AdjectiveAnimal::AdjAni:0x0000010378fe48 @adjective="Accessible", @animal="Alpaca", @starts_with="a">,
#<AdjectiveAnimal::AdjAni:0x0000010377ec88 @adjective="Better", @animal="Baboon", @starts_with="b">,
#<AdjectiveAnimal::AdjAni:0x000001036949a8 @adjective="Cloudy", @animal="Camel", @starts_with="c">,
#<AdjectiveAnimal::AdjAni:0x00000103686dd0 @adjective="Didactic", @animal="Deer", @starts_with="d">
...] to Z
  • Fork the gem and add your own stupid stuff to it. This is a really good way to procrastinate when you are supposed to be working on seed data.

##Helpers

aa = AdjectiveAnimal.new
# yield both adjective and animal together as a string
aa.to_s  =  "Tawdry Cod"
# if typing 'adjective' is too much work, you can type 'adj'
aa.adj = "Tawdry"
# and 'ani'
aa.ani = "Cod"
# but wait, theres more! You can also do 'first_name' and 'last_name'
aa.first_name = "Tawdry"
aa.last_name = "Cod"
# you can also pass a string or symbol, upper or lower case as an argument to new()
aa = AdjectiveAnimal.new(:K)
aa = AdjectiveAnimal.new('k')

Uses

I can imagine three possible uses for this gem.

  • Liven up your seed or factory data! User.first_name = 'Test' and User.last_name = 'User' is boring. A user named "Lowly Herring" is good times.
  • Create names for medieval or fantasy Inns! "The Broken Beetle" is a great place to find adventure. I think it would also work for taverns, bordellos and alehouses.
  • Start conversations with people more attractive than you. They would go something like:

You: "Hi, have you heard of the gem adjective_animal?"

Them: "Who are you? Please get away from me."

Note: I have only tested one of the above uses, so YMMV.

FAQ

  • Q: What about the gem faker, isn't that a better gem?
  • A: Yes it is, in pretty much every way imagineable. You should probably use it.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/adjective_animal/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

FAQs

Package last updated on 28 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc