commit2rss.rb - running on hooking up CVS NT

G

Guest

------_=_NextPart_001_01C6E0CE.390FE8E5
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
=20
I'm trying to get Dave Thomas' commit2rss.rb ruby script running on =
windows XP using CVS NT v2.0.51d. The script is at =
http://pragmaticprogrammer.com/downloads/commit2rss/commit2rss.rb.txt
=20
I've removed unix references to etc and Etc.getpwuid parts. and my =
command in the CVS loginfo is as follows
=20
# Ruby script to generate an RSS feed for commits to Underwriting module
Underwriting/* D:\development\test-workspace\scripts\commit2rss.rb %{}
=20
I'm stumped as to why I'm getting the following error on commit. I've =
included the some verbose output from cvs.
=20
-> =
loginfo:parse_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,=
D:\development\test-workspace\scripts\commit2rss.rb %{} )
-> run_popen(D:\development\test-workspace\scripts\commit2rss.rb =
"Underwriting/JavaSource" )
D:/development/test-workspace/scripts/commit2rss.rb:44:in `gets': Bad =
file descriptor (Errno::EBADF)
from D:/development/test-workspace/scripts/commit2rss.rb:44
=20
Line 44 refers to this block of code
=20
while line =3D STDIN.gets
line.chomp!
if line =3D~ /^[A-Z].*:\s*$/
desc << "<p /><b>" << line << "</b>"
else
desc << line
end
desc << "<br />"
end
=20
I'd appreciate any help on this.
=20
Thanks,
Paul


This message is for the designated recipient only and may contain =
privileged, proprietary, or otherwise private information. If you have =
received it in error, please notify the sender immediately and delete =
the original. Any other use of the email by you is prohibited.

------_=_NextPart_001_01C6E0CE.390FE8E5--
 
G

Guest

I've removed that potential problem from the script, but to no avail. =
From reading through some of the news groups there seems to be some =
suggestion that Ruby needs to have a real console to read from STDIN. =
Whether this is specific to Ruby on Windows I do not know.
=20
Does anyone have knowledge of Ruby on Windows to answer this?
=20
Thanks,
Paul

________________________________

From: Paul Lutus [mailto:[email protected]]
Sent: Mon 25/09/2006 23:10
To: ruby-talk ML
Subject: Re: commit2rss.rb - running on hooking up CVS NT



(e-mail address removed) wrote:

/ ...

loginfo:parse_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,=
D
\development\test-workspace\scripts\commit2rss.rb

Hoo-boy. I think you need to decide which path delimiter to use, and =
stick
to your single choice. The above line is truly ecumenical, but I don't
think Ruby is. I don't have a Windows system to find out how Ruby reacts =
to
these freely mixed delimiters, but this line really stands out.

--
Paul Lutus
http://www.arachnoid.com





This message is for the designated recipient only and may contain =
privileged, proprietary, or otherwise private information. If you have =
received it in error, please notify the sender immediately and delete =
the original. Any other use of the email by you is prohibited.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top