public
Description: a ruby api for tasko @ taskodone.com
Homepage:
Clone URL: git://github.com/ardekantur/taskomaly.git
ardekantur (author)
Mon Aug 11 18:16:55 -0700 2008
commit  6fcdcd22dcd38c8c097cd641a689906a78ab27bf
tree    70500978e58faa8a5d558620bc051a45606ea93a
parent  6ab526f9fbd069b09d43d97ea042b48271c4d9c7
taskomaly / README.markdown
100644 56 lines (33 sloc) 1.317 kb

taskomaly

access your Tasko or TaskPaper papers. in ruby. started by ardekantur. released under gplv3. file bugs and feature requests.

you need to clean your room

make it a project

proj = Taskomaly::Project.new 'Room Cleaning'

add some tasks to it

proj.add 'put away clean laundry'
proj.add 'wash dirty dishes'

tag those suckas up

proj.add 'file taxes @april @15'
proj.tasks.last.tags            # [:april, :"15"]

proj.add 'organize shelf'
proj.tasks.last.tag :knickknacks, 1000, 'september'
proj.tasks.last.tags            # [:knickknacks, :"1000", :september]

working with tasko

t = Taskomaly::With :user => 9999, :key => 'd9cca721a735dac4efe709e0f3518373' 

or, create this file:

# ~/.tasks.yml
user: 9999
key: d9cca721a735dac4efe709e0f3518373

and do this:

t = Taskomaly::From '~/.tasks.yml'

getting your papers

t.get :papers # ['Paper One', 'Paper Two']
p = t.papers.first

puts p.name # 'Paper One'
puts p.body # duh

change + upload

p.body["@today"] = "@tomorrow"
p.save # true if groovy, false if failed

made a mistake? refresh from the server

p.refresh # true if groovy, false if failed