public
Description: Keep track of your time on FreshBooks
Homepage: http://b.logi.cx/2008/1/31/laying-down-fresh-tracks
Clone URL: git://github.com/flogic/freshtrack.git
ymendel (author)
Sun Aug 02 14:18:38 -0700 2009
commit  b89d0c7548f5b03f887e4c69da993d711cb47e3e
tree    9504c8a86e80e8601df13bed28828d6fdf9dd38d
parent  d73a9458215056cecf77d9096cff1db27bf41203
name age message
file .gitignore Wed Feb 27 10:49:49 -0800 2008 .gitignore time for pkg [ymendel]
file History.txt Sun Aug 02 14:19:13 -0700 2009 Setting version (0.4.2), updating History. [ymendel]
file License.txt Tue Jan 29 18:14:30 -0800 2008 Filling in my name a few times, setting up rspe... [ymendel]
file Manifest.txt Sun Aug 02 13:55:06 -0700 2009 Associating invoice to payments. Ensuring invo... [ymendel]
file README.txt Thu Oct 09 16:33:59 -0700 2008 Adding collector requirements to readme. [ymendel]
file Rakefile Tue Jan 29 18:03:44 -0800 2008 Initial newgem framework. [ymendel]
directory bin/ Sun Aug 02 14:16:09 -0700 2009 Adding amount/owed to aging report. [ymendel]
directory config/ Thu Oct 09 16:27:26 -0700 2008 Updating the hoe config to specify extra depend... [ymendel]
directory lib/ Sun Aug 02 14:19:13 -0700 2009 Setting version (0.4.2), updating History. [ymendel]
directory log/ Tue Jan 29 18:03:44 -0800 2008 Initial newgem framework. [ymendel]
directory script/ Tue Jan 29 18:03:44 -0800 2008 Initial newgem framework. [ymendel]
file setup.rb Tue Jan 29 18:03:44 -0800 2008 Initial newgem framework. [ymendel]
directory spec/ Sun Aug 02 14:16:09 -0700 2009 Adding amount/owed to aging report. [ymendel]
directory tasks/ Tue Jan 29 18:03:44 -0800 2008 Initial newgem framework. [ymendel]
README.txt
= freshtrack

== DESCRIPTION:

Freshtrack is used to automatically create time entries in FreshBooks from your own tracked time.

== FEATURES/PROBLEMS:

* Simple and easy to use

* Modular time-collector system

== SYNOPSIS:

  $ freshtrack proj
  
  or
  
  $ freshtrack proj --before 2008-08-16
  
  or! (if you really want)
  
  require 'freshtrack'
  
  Freshtrack.init
  Freshtrack.track('proj', :before => Time.parse('2008-08-16'))

== REQUIREMENTS:

* a time collector (see below)
* freshbooks (gem)
* A FreshBooks account
* a configuration file located at ~/.freshtrack.yml and looking like

  --- 
  collector: one_inch_punch
  company: Company Name
  token: API Token
  project_task_mapping:
    project_name:
      :project: FreshBooks Project Name
      :task: FreshBooks Task Name

(The 'Company Name' is the XXX in 'XXX.freshbooks.com'. The 'project_name' is the XXX in 'punch list XXX'.)

The 'collector' is what freshtrack will use to gather the time data that will end up as FreshBooks time entries.
Freshtrack ships with two collectors: 'punch' and 'one_inch_punch'. These are both gems that can be installed (by `gem 
install [collector name]`) and used without much effort. If these time-tracking tools aren't to your liking, you are 
free to write your own collector. Further documentation on that is forthcoming, but for now just take a look at the two 
collectors that already exist.

Collector requirements:

* It needs to be a class in the FreshTrack::TimeCollector namespace
* The file needs to exist in the freshtrack/time_collectors directory
* The class name should match the file name like Punch -> punch.rb or OneInchPunch -> one_inch_punch.rb
* It needs an initializer that takes an options argument (which will be a hash possibly having :before and :after keys 
with Date values)
* It needs a get_time_data instance method which takes a project name argument
* The get_time_data method needs to return an array of hashes like { 'date' => date_object, 'hours' => 
number_of_hours_as_float, 'notes' => notes_string }

== INSTALL:

* gem install freshtrack

== THANKS:

  * Kevin Barnes and Rick Bradley, for giving me a reason to track time and invoice people for it
  * The FreshBooks team, for making invoicing easy