Subscribe to RSS

Tasko/TaskPaper + Ruby = Awesome

This is the first release of an evolving library that interacts with the online todo-list thingie Tasko. If you’ve never heard of it, or its brother-in-spirit TaskPaper, you’re in for a treat.

Plain text files, converted to To Do lists with simple formatting rules. Lines that end with a colon are project names. Lines with a hyphen starting them are tasks. Use tags on lines to categorize them. @today, @home, whatever. Tag a line @done to cross it out. Simple!

Taskpaper Screen

So now we have Taskomaly, which works on your local machine, interacts with task lists, and can upload them to Tasko using its API. Tasko provides both an API key and a user ID when you register. You need both of these things. Register, then go to your settings page to retrieve them. I suggest placing them in a file in YAML format, like so:

  user: 9999
  key: d9cca721a735dac4efe709e0f3518373

Then, off to irb!

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

Now, get the information you want. Your papers! Make a change, then save them back to the website.

  t.request :papers # ['Paper One', 'Paper Two']
  p = t.papers.first
 
  puts p.name # 'Paper One'
  puts p.body # duh
 
  p.body["@today"] = "@tomorrow"
  p.save # true if groovy, false if failed

This is the first real project I’ve put a huge emphasis on TDD, guided along by the simple principles espoused by Adam Wiggins during his work with the rush shell.

So, yeah. That’s that. Work (and specs) are coming along soon to help you with individual projects inside task papers, searching and using tags, and all kinds of other fun stuff.

EDIT Jesus I forgot to put a link to the project. Here it is. On GitHub. Duh.

2 Comments

  1. Posted July 12, 2008 at 4:59 am | Permalink

    Very cool, this is pretty much exactly what I was looking for when it comes to task management. If I have some time over I’d be glad to help out some. I forked your project at:

    http://github.com/jnicklas/taskomaly/tree/master

    So if you watch my fork you’ll see any updates (if any) I make ;)

    /Jonas

  2. Posted July 14, 2008 at 6:42 am | Permalink

    Great to see TaskPaper libraries in other languages. If you haven’t seen it yet you should check out this project:

    http://hogbaysoftware.com/forums/taskpaper/topics/839_Success_syncing_TaskPaper_with_Tasko

    It’s also ruby, and also sends TaskPaper files to Taskodone.com. I would love to see a complete synching solution. Also taskodone.com is becoming taskpaper.com, please let me know (in the hog bay software forums) if you have ideas for improving taskodone.com and its api.

One Trackback

  1. By The Real Adam – Sync your TaskPapers on August 9, 2008 at 9:00 pm

    [...] that makes sense and doesn’t throw huge amounts of UI at me. Ergo, I’m pleased to see a Ruby library for syncing your TaskPaper documents to what will soon become the web version of [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*