Project

quotey

0.0
No commit activity in last 3 years
No release in over 3 years
Quotey - A gem for generating random quotes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
~> 2.11
 Project Readme

Quotey

A gem for generating random quotes

Installation

$ gem install quotey

Usage

Basic usage

my_quote_object = Quotey::Quoter.new
my_quote_object.get_quote
=> "\"In the depths of winter I finally learned there was in me an invincible summer.\" - Albert Camus"

Custom behavior

Quotey can receive an options hash:

  • :file
  • :no_repeat

Using Different file

my_quote_object = Quotey::Quoter.new(file: "/path/to/my/text/file.txt")

Lines are delimited per \n.

No repeating

Want to make sure you get a fresh quote everytime? Worry not!

my_quote_object = Quotey::Quoter.new(no_repeat: true)

Note that once Quotey finishes the list it re-reads the file that was given during the instantiation.

Future plans / TODO

  • Consider using Thor for the CLI interface
  • Consider switching the class interface to class methods/variables
  • CLI testing (using Aruba or RSpec)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request