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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Query if project uses svn or git on Rubyforge
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password