This repository has been archived by the owner. It is now read-only.

costelog-crystal v1.0.0

Get random sentence from Costeño idioms for your log.

costelog-crystal

GitHub top language GitHub code size in bytes GitHub release MIT License

This is the Crystal version 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

  1. Fork it (https://github.com/krthr/costelog-crystal/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

Contributors

Repository

costelog-crystal

Owner
Statistic
  • 2
  • 0
  • 0
  • 0
  • 0
  • about 6 years ago
  • November 27, 2018
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 05:25:45 GMT

Languages