[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

David Ross

12/4/2004 3:44:00 PM

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...
*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


5 Answers

James Britt

12/4/2004 3:57:00 PM

0

>
> 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...

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

12/4/2004 4:01:00 PM

0

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...
>
>
> 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


Nicholas Van Weerdenburg

12/4/2004 4:15:00 PM

0

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


Sam Stephenson

12/4/2004 4:47:00 PM

0

On Sun, 5 Dec 2004 01:14:57 +0900, Nicholas Van Weerdenburg
<vanweerd@gmail.com> 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


Nicholas Van Weerdenburg

12/5/2004 3:49:00 AM

0

On Sun, 5 Dec 2004 01:47:29 +0900, Sam Stephenson <sstephenson@gmail.com> wrote:
> On Sun, 5 Dec 2004 01:14:57 +0900, Nicholas Van Weerdenburg
>
>
> <vanweerd@gmail.com> 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