0.0
No commit activity in last 3 years
No release in over 3 years
Use this in your tests to come up with fake athletes, teams, sports and commentary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Lorem Athlete

Installation

gem install lorem_athlete

or if you are using rails 3 or higher, add to your gemfile:

gem 'lorem_athlete'

Usage

Generate a sport

LoremAthlete::sport

Generate an athlete's name, can specifiy league (NHL, NBA, MLB or NFL) or default will give you a athlete from a random league

LoremAthlete::athlete # defaults to random athlete from any league
LoremAthlete::athlete("NHL") # NHL team

Generate a team name

LoremAthlete::team

You can specify a league to get a pro team name for NHL, NBA, NFL and MLB

LoremAthlete::team("NFL") # NFL team

Or if you specify another sport you will get an Olympic team for that sport.

You can also generate sports words and sentences with:

LoremAthlete::word
LoremAthlete::sentence

Paragraphs will default to 3 sentences but this can be specified

LoremAthlete::paragraph # 3 sentence paragraph
LoremAthlete::paragraph(10) # 10 sentence paragraph