File.exist? svn2rss.rb

Hello,

We’re migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

I found this November '05 post by Jamis,

http://comox.textdrive.com/pipermail/budgetwise/2005-November/000117.html

but I can’t seem to find any code. (I can’t understand
the Python version in SVN’s contrib/commit-hooks directory.)

Anyone?

Thanks,

Hi,

In [email protected]
“File.exist? svn2rss.rb” on Thu, 16 Feb 2006 19:38:34 +0900,
Bil K. [email protected] wrote:

We’re migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

tools/hook-scripts/commit-email.rb is what you looking
for. This script not just sending an e-mail but also
producing a RSS feed.

commit-email.rb
“$REPOS” “$REV” [email protected]
-r http://YOUR.HOST/REPOSITORY/TOP/URI
–rss-path /PATH/TO/RSS.rdf
–rss-uri http://YOUR.HOST/URI/OF/RSS.rdf
… and other options …

Thanks,

Kouhei S. wrote:

Hi,

Hello.

Bil K. [email protected] wrote:

We’re migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

tools/hook-scripts/commit-email.rb is what you looking
for. This script not just sending an e-mail but also
producing a RSS feed.

I’ll have another look at it, but I think it may be
too general purpose for me.

I am looking for a single-purpose, 20-liner (maybe by using
Weirich’s Builder?) that I’ll be able to understand within
a couple minutes 3 years from now… :slight_smile:

Regards,

Bil K. wrote:

I am looking for a single-purpose, 20-liner (maybe by using
Weirich’s Builder?) that I’ll be able to understand within
a couple minutes 3 years from now… :slight_smile:

Here you go. This is exactly what you’re looking for. Hope you are
well. Say hi to your mom for me!

_why

Hi,

In [email protected]
“Re: File.exist? svn2rss.rb” on Fri, 17 Feb 2006 06:23:39 +0900,
Bil K. [email protected] wrote:

I am looking for a single-purpose, 20-liner (maybe by using
Weirich’s Builder?) that I’ll be able to understand within
a couple minutes 3 years from now… :slight_smile:

Here is another one. It uses RSS::Maker.
But… this has 190 lines…

Usage:
% svn2rss.rb REPOS_PATH REVISION
–name YOUR_REPOSITORY_NAME_OPTIONAL
–repository-uri http://YOUR.REPOSITORY/URI
–rss-path /OUTPUTTED/RSS/PATH.rdf
–rss-uri http://OUTPUTTED/RSS/URI.rdf

Thanks,