highb / ruby-daygram

Convenience library for working with the daygram sqlite DB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daygram

Gem Version Code Climate GPA Code Climate Coverage Travis CI Status

Table of Contents

Features

Requirements

  1. Ruby 2.3.1

Setup

gem install daygram

Usage

To print all of the entries in the Daygram:

daygram read all

To print the latest entry:

daygram read latest

To print the last 3 entries:

daygram read last 3

To print the entry for a particular date:

daygram read day 2016-11-15

To print the entries as JSON, Ruby Hash, or a table:

daygram read last --format json
daygram read last --format hash
daygram read last --format table

Tests

To test, run:

bundle exec rake

Versioning

Read Semantic Versioning for details. Briefly, it means:

  • Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
  • Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
  • Major (X.y.z) - Incremented for any backwards incompatible public API changes.

Code of Conduct

Please note that this project is released with a CODE OF CONDUCT. By participating in this project you agree to abide by its terms.

Contributions

Read CONTRIBUTING for details.

License

Copyright (c) 2016 Brandon High. Read LICENSE for details.

History

Read CHANGES for details. Built with Gemsmith.

Credits

Developed by Brandon High

About

Convenience library for working with the daygram sqlite DB

License:Apache License 2.0


Languages

Language:Ruby 96.5%Language:Shell 3.5%