Gems for Tick and Harvest APIs
April 15th, 2008
Simply Invoices now supports fetching your time data from Tick and Harvest. As previously mentioned I made a gem for Tick and now I’ve also made one for Harvest.
Installation
gem install tickspot-ruby
gem install harvest-ruby
The gems do not cover either of the APIs 100%. I implemented what I needed. If you need more, hack away!
Sources at github: Tick Ruby Gem and Harvest Ruby Gem.
Tickspot API Ruby Wrapper
April 12th, 2008
I’m investigating adding support for creating invoices from time logged in Tickspot to Simply Invoices. The first step of that is to write a ruby wrapper for their API. I’ve created a github project for that and am making it publicly available. You can find it at http://github.com/bricooke/tickspot-ruby. Hopefully someone finds it useful. Or even better, makes it more useful :)
To make it more accessible, it should probably be a gem :/ Baby steps.
Update 4/14/2008: It’s now a published gem. gem install tickspot-ruby
Rake task to remove all deleted files from git
April 9th, 2008
After shuffling some code around I found myself with a lot of files to remove from git. Instead of doing it by hand or trying to ensure a subdirectory is gone and use -r, I wrote this rake task:
desc "Remove removed files"
task :remove do
system("for i in $(git status | grep deleted | awk ‘{print $3}’); do git rm $i; done")
end
end
If you use sake, this task is available on pastie @ sake -T http://pastie.caboo.se/177861.txt