Sha256: 6747e02eaac5916a3945c0c03ab7f656a5b23a024ebff7e2a845616860da3e27
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
# TogglCache Fetches reports data from Toggl API and caches them in a PostgreSQL database. This allows you to build applications performing complex operations on a large number of Toggl content without the Toggl API latency. You may also use it to backup your precious data! [](https://travis-ci.org/rchampourlier/toggl_cache) [](https://codeclimate.com/repos/58d7ff3b88ccb7027b000baa/feed) [](https://codeclimate.com/repos/58d7ff3b88ccb7027b000baa/coverage) ## Installation Add this line to your application's Gemfile: ```ruby gem 'toggl_cache' ``` And then execute: $ bundle Or install it yourself as: $ gem install toggl_cache ## Usage Inside of `bin/console`: ```ruby logger = Logger.new(STDOUT) logger.level = Logger::DEBUG client = TogglCache::Client.new( api_token: 'SOME-API-TOKEN', user_agent: 'MyCustomTogglCache', logger: logger ) TogglCache.sync_reports(client, 'TOGGL-WORKSPACE-ID') ``` ## The CLI ``` ruby lib/toggl_cli.rb [batch|help] ``` ## Contributing 1. Fork it ( https://github.com/rchampourlier/toggl_cache/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 Check the [code of conduct](CODE_OF_CONDUCT.md).
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
toggl_cache-0.2.1 | README.md |
toggl_cache-0.2.0 | README.md |