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
- Host: GitHub
- URL: https://github.com/highb/ruby-daygram
- Owner: highb
- License: apache-2.0
- Created: 2016-11-19T22:36:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:47:53.000Z (over 2 years ago)
- Last Synced: 2024-03-15T09:22:12.503Z (over 2 years ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Daygram
[](http://badge.fury.io/rb/daygram)
[](https://codeclimate.com/github/highb/ruby-daygram)
[](https://codeclimate.com/github/highb/ruby-daygram)
[](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)