No commit activity in last 3 years
No release in over 3 years
Configurable length and type for all the trollings!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

ruby_trollem_ipsum

A simple, configurable API client for trollemipsum.appspot.com.

Usage

First, require the library:

require 'ruby_trollem_ipsum'

One-liner:

TrollemIpsum.lorem    # => "Flash sucks, during delay in getting Ice Cream Sandwich what gorgeous."

Filter options per client:

troll = TrollemIpsum.new(["confident"], ["siegler"])
troll.lorem  # => "It’s not good for Google I believe fingergate finally pure bullshit..."

Filter options per call:

troll = TrollemIpsum.new
troll.lorem("gruber")  # => "Steve Jobs in my opinion baseball."

Installation

Rubygems:

gem install ruby_trollem_ipsum

Bundler:

gem 'ruby_trollem_ipsum'

Options

The TrollemIpsum constructor takes 2 optional parameters - an array of allowable lengths and one of types. See the TrollemIpsum API for a list of allowed values.

If you pass these options, future calls to lorem will use them to scope the random selection of types and lengths.

Each call to lorem may also pass a length and a type which will override the scoping set on initialization.

Error messages

Reason: All the reasons

Message:

trololololololololol

Credits

Thanks to @davidmoss and @patrickhmason for creating TrollemIpsum!

Follow me

Follow @dzello on twitter for MORE updates and LESS trolling.