Wakatime Ruby
An Unofficial Wakatime Ruby API Client
Installation
Add this line to your application's Gemfile:
gem 'wakatime'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wakatime
Usage
@session = Wakatime::Session.new({
api_key: ENV['wakatime_api_key']
})
@client = Wakatime::Client.new(@session)
Summary
@client.summaries
Durations
@client.durations
Heartbearts
@client.hearbeats
Current User
@client.current_user
Plugin Data
@client.plugins
Testing
- Ensure your API Key is in a yaml file in spec/support/account.yml
Contributing
- Fork it ( https://github.com/burningpony/wakatime/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Credits
Massive Credit to [Ruby Box][https://github.com/attachmentsme/ruby-box] as being a template API client.