[ANN] Ruby CVS IRC bot, and Ruby CVS RSS feed

Discussion in 'Ruby' started by David Ross, Dec 4, 2004.

  1. David Ross

    David Ross Guest

    Hello fellow rubists,

    Thanks to our
    wonderful Shugo, there is now RSS feed and a commit bot for
    the cvs. Each time there is a cvs commit, the scripts send information to
    the correct server for processing. The IRC bot messages the channel each
    commit
    for the Ruby CVS. Which is interesting, and hopefully messages can be
    even more
    improved with color tags in the XML which is sent.

    The RSS Feed:
    http://cia.navi.cx/stats/project/ruby/.rss
    *created as an side-effect of settng up the CIA bot*

    The IRC bot:
    The bot can be found in #ruby-talk on Freenode
    irc://irc.freenode.net/ruby-talk

    dross
     
    David Ross, Dec 4, 2004
    #1
    1. Advertising

  2. David Ross

    James Britt Guest

    >
    > Thanks to our wonderful Shugo, there is now RSS feed and a commit
    > bot for
    > the cvs. Each time there is a cvs commit, the scripts send information to
    > the correct server for processing. The IRC bot messages the channel each
    > commit
    > for the Ruby CVS. Which is interesting, and hopefully messages can be
    > even more
    > improved with color tags in the XML which is sent.
    >
    > The RSS Feed:
    > http://cia.navi.cx/stats/project/ruby/.rss


    Very nice. One gripe:

    Content-Type: text/html


    is not the correct content type for an RSS feed. text/xml would be better.

    Thanks,

    James
     
    James Britt, Dec 4, 2004
    #2
    1. Advertising

  3. David Ross

    James Britt Guest

    James Britt wrote:

    >>
    >> Thanks to our wonderful Shugo, there is now RSS feed and a
    >> commit bot for
    >> the cvs. Each time there is a cvs commit, the scripts send information to
    >> the correct server for processing. The IRC bot messages the channel
    >> each commit
    >> for the Ruby CVS. Which is interesting, and hopefully messages can be
    >> even more
    >> improved with color tags in the XML which is sent.
    >>
    >> The RSS Feed:
    >> http://cia.navi.cx/stats/project/ruby/.rss

    >
    >
    > Very nice. One gripe:
    >
    > Content-Type: text/html
    >
    >
    > is not the correct content type for an RSS feed. text/xml would be better.



    Ah, and now it comes as

    Content-Type: text/xml


    That was fast.

    Thanks.


    James
     
    James Britt, Dec 4, 2004
    #3
  4. Is there a way to get the name of symbol passed to method?

    Is there a way to get the name of the symbol passed to a method?

    e.g.

    def geterdone(array)
    # funkify array- but I want to know name of original symbol, not
    array, and prefix each element with it
    newarray=array.select(...){...}
    end

    oldarray=[val1, val2, ...]
    newarray=geterdone(oldarray)
    # newarray is now ["oldarray:val1", "oldarray:val2", ...]

    Thanks,
    Nick
     
    Nicholas Van Weerdenburg, Dec 4, 2004
    #4
  5. Re: Is there a way to get the name of symbol passed to method?

    On Sun, 5 Dec 2004 01:14:57 +0900, Nicholas Van Weerdenburg
    <> wrote:
    > Is there a way to get the name of the symbol passed to a method?
    >
    > e.g.
    >
    > def geterdone(array)
    > # funkify array- but I want to know name of original symbol, not
    > array, and prefix each element with it
    > newarray=array.select(...){...}
    > end
    >
    > oldarray=[val1, val2, ...]
    > newarray=geterdone(oldarray)
    > # newarray is now ["oldarray:val1", "oldarray:val2", ...]
    >


    Not without one of the parse-tree hook extensions, I would think. And
    even then, what would you expect to happen here?
    | newarray = geterdone([val1, val2, ...])

    > Thanks,
    > Nick


    Sam
     
    Sam Stephenson, Dec 4, 2004
    #5
  6. Re: Is there a way to get the name of symbol passed to method?

    On Sun, 5 Dec 2004 01:47:29 +0900, Sam Stephenson <> wrote:
    > On Sun, 5 Dec 2004 01:14:57 +0900, Nicholas Van Weerdenburg
    >
    >
    > <> wrote:
    > > Is there a way to get the name of the symbol passed to a method?
    > >
    > > e.g.
    > >
    > > def geterdone(array)
    > > # funkify array- but I want to know name of original symbol, not
    > > array, and prefix each element with it
    > > newarray=array.select(...){...}
    > > end
    > >
    > > oldarray=[val1, val2, ...]
    > > newarray=geterdone(oldarray)
    > > # newarray is now ["oldarray:val1", "oldarray:val2", ...]
    > >

    >
    > Not without one of the parse-tree hook extensions, I would think. And
    > even then, what would you expect to happen here?
    > | newarray = geterdone([val1, val2, ...])
    >


    nil maybe.

    Thanks,
    Nick
     
    Nicholas Van Weerdenburg, Dec 5, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. yawgmoth7

    IRC Bot trouble..

    yawgmoth7, Feb 24, 2006, in forum: Python
    Replies:
    0
    Views:
    339
    yawgmoth7
    Feb 24, 2006
  2. bthate
    Replies:
    0
    Views:
    337
    bthate
    Jan 30, 2007
  3. ddtm

    Python IRC bot using Twisted

    ddtm, Jul 3, 2007, in forum: Python
    Replies:
    4
    Views:
    953
  4. Jean-Paul Calderone

    Re: Python IRC bot using Twisted

    Jean-Paul Calderone, Jul 11, 2007, in forum: Python
    Replies:
    0
    Views:
    405
    Jean-Paul Calderone
    Jul 11, 2007
  5. Tim Morgan
    Replies:
    0
    Views:
    117
    Tim Morgan
    Sep 13, 2007
Loading...

Share This Page