An open API service indexing awesome lists of open source software.

https://github.com/highb/ruby-daygram

Convenience library for working with the daygram sqlite DB
https://github.com/highb/ruby-daygram

Last synced: over 1 year ago
JSON representation

Convenience library for working with the daygram sqlite DB

Awesome Lists containing this project

README

          

# Daygram

[![Gem Version](https://badge.fury.io/rb/daygram.svg)](http://badge.fury.io/rb/daygram)
[![Code Climate GPA](https://codeclimate.com/github/highb/ruby-daygram.svg)](https://codeclimate.com/github/highb/ruby-daygram)
[![Code Climate Coverage](https://codeclimate.com/github/highb/ruby-daygram/coverage.svg)](https://codeclimate.com/github/highb/ruby-daygram)
[![Travis CI Status](https://secure.travis-ci.org/highb/ruby-daygram.svg)](https://travis-ci.org/highb/ruby-daygram)

# Table of Contents

- [Features](#features)
- [Requirements](#requirements)
- [Setup](#setup)
- [Usage](#usage)
- [Tests](#tests)
- [Versioning](#versioning)
- [Code of Conduct](#code-of-conduct)
- [Contributions](#contributions)
- [License](#license)
- [History](#history)
- [Credits](#credits)

# Features

# Requirements

0. [Ruby 2.3.1](https://www.ruby-lang.org)

# 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](http://semver.org) 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](CODE_OF_CONDUCT.md). By
participating in this project you agree to abide by its terms.

# Contributions

Read [CONTRIBUTING](CONTRIBUTING.md) for details.

# License

Copyright (c) 2016 [Brandon High](https://brandon-high.com).
Read [LICENSE](LICENSE.md) for details.

# History

Read [CHANGES](CHANGES.md) for details.
Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).

# Credits

Developed by [Brandon High](https://brandon-high.com)