[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Query if project uses svn or git on Rubyforge

Trans

11/5/2008 7:51:00 AM

I need to check to see if a rubyforge project is using git or svn,
given the name of the project. A simple hack appears to suffice:

require 'open-uri'

page = open("http://rubyforge.org/...{project_name}/").read
page =~ /(svn|git)/mi
type = $1

But that certainly isn't a robust solution. Is there a foolproof way?

Thanks,
7.