------ art_239_16002252.1130916354068 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline actually, we need to write a ruby-based version control system. that would be l33t ... just like urirequire ;) j. On 11/1/05, Kev Jackson <kevin.jackson / it.fts-vn.com> wrote: > > Daniel Sheppard wrote: > > >> if expected_digest > >> raise "Wrong Hash - Expected '#{expected_digest}', recieved > >> > >> > >'#{digest}'" > > > >what sort of drugs am I on? Seemingly not the good ones. > > > >if expected_digest > > raise "Wrong Hash - Expected '#{expected_digest}', received > >'#{digest}'" unless digest == expected_digest > > > > > >I actually think this has the potential of being a damn useful library. > >Once you put in the hashing, I don't see why this is any more dangerous > >than a gem. The only problem is that you'd need to modify your code to > >upgrade to a newer version of a library, but there's not too much wrong > >with that. If you're hashing the code, it's not allowed to be modified, > >so you can keep a local cache of files and only download once. > > > >Or, if you're just doing it with somewhere you can trust, you can just > >use it within your own scripts and let them download the latest version > >from a constantly-changing source. > > > > > If you could adapt it so that it'll accept svn:// (or https I suppose), > then you could even use it to keep libraries updated from a svn repo - > which would be rather nice > > -- "http://ruby-lang.org -- do you ruby?" Jeff Wood ------ art_239_16002252.1130916354068--