Ruby
Latest commit 8574926 Jun 15, 2012 @koos koos merged
Permalink
Failed to load latest commit information.
.bundle merged Jun 15, 2012
lib
spec supposedly fixing May 8, 2011
.document
.gitignore update hashie gem and ignore gemfile.lock Mar 21, 2011
.rspec setup for using the new cool way Oct 30, 2010
Gemfile
Gemfile.lock merged things Jun 15, 2012
README.md
Rakefile
freckly.gemspec update hashie gem and ignore gemfile.lock Mar 21, 2011

README.md

Freckly

Freckly is a ruby client for accessing the letsfreckle.com time tracking data. See http://letsfreckle.com for more information.

API information can be found at http://madrobby.github.com/freckle-apidocs/

NOTE: It is currently missing quite a few API calls

How To Install

gem install freckly

Example

require 'rubygems'
require 'freckly'

Freckly.token = "token_from_freckly"
Freckly.subdomain = "my_subdomain"

# Get all projects
projects = Freckly::Project.all

# Get all time entries for a project
projects.first.entries

# If you know the ID of a project
Freckly::Entry.all(:projects => 123)

# Want the entries of a list of projects
Freckly::Entry.all(:projects => %w{123 456 789})

# You can pass any of the options from http://github.com/madrobby/freckle-apidocs/blob/master/entries.mkdn
Freckly::Entry.all(:billable => true, :tags => "fun")

# Count
Freckly::Entry.count(:billable => true, :tags => "fun")

Note on Patches/Pull Requests

  • Fork the project.
  • Create a feature branch
  • Make your feature addition or bug fix.
  • Add tests.
  • Commit, do not mess with RakeFile, version, or history.
  • Send me a pull request.

Copyright

Copyright (c) 2010 Red Davis.

License

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.