costelog-crystal
This is the Crystal verion of gmoralesc's costelog
Installation
- Add the dependency to your
shard.yml
:
dependencies:
costelog-crystal:
github: krthr/costelog-crystal
- Run
shards install
Usage
require "costelog-crystal"
# Get just one phrase
puts Costelog.random_phrase # => "Puya el burro"
puts Costelog.random_phrase "Wilson" # => "Va pa' esa Wilson"
# Get all the phrases
puts Costelog.all # => ["Que vaina e buena", "Ya te dije cuadro", "Va pa' esa cuadro", "cuadro Que vaina linda", ...]
puts Costelog.all "Wilson" # => ["Que vaina e buena", "Ya te dije Wilson", "Va pa' esa Wilson", "Wilson Que vaina linda", ...]
The name param is optional. If you dont pass any name, the library will select a random valid name.
TODO
TODO Write specs
Contributing
- Fork it (https://github.com/krthr/costelog-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- The original library was created by Gustavo Morales
- krthr - creator and maintainer