Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
'rufus-rtm', yet another ruby gem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Mettraux  
View profile  
 More options Feb 14 2008, 5:42 am
From: "John Mettraux" <jmettr...@gmail.com>
Date: Thu, 14 Feb 2008 19:42:45 +0900
Local: Thurs, Feb 14 2008 5:42 am
Subject: 'rufus-rtm', yet another ruby gem
Hi,

I've just released 'rufus-rtm', a Ruby gem for "Remember The Milk".
The license is MIT.

It's at version 0.1 and is pretty limited for now, but you can already
list, add and complete tasks.

The details are at : http://rufus.rubyforge.org/rufus-rtm

A bit of info :

== getting it

    sudo gem install -y rufus-rtm

== usage

    require 'rubygems'
    require 'rufus/rtm'

    #
    # listing tasks

    tasks = Task.find
        # finding all the tasks

    tasks = Task.find :filter => "status:incomplete"
        # finding all the incomplete tasks

    tasks.each do |task|

        puts "task id #{task.task_id}"
        puts "   #{task.name} (#{task.tags.join(",")})"
        puts
    end

    #
    # adding a task

    task = Task.add! "study this rufus-rtm gem"
        # gets added to the 'Inbox' by default

    puts "task id is #{task.task_id}"

    #
    # enumerating lists

    lists = List.find

    w = lists.find { |l| l.name == 'Work' }

    puts "my Work list id is #{w.list_id}"

    #
    # adding a task to a list

    task = Task.add! "work, more work", w.list_id

    #
    # completing a task

    task.complete!

    #
    # deleting a task

    task.delete!

Best regards,

--
John Mettraux -///- http://jmettraux.openwfe.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »