From: Trans Date: 2006-08-06T18:35:06+09:00 Subject: Re: remote require Mat Schaffer wrote: > On Aug 3, 2006, at 1:05 PM, transfire@gmail.com wrote: > > > I know there are other solutions to this out there. Just wanted to > > share my work/play at it. I was trying to make it reletvely secure > > without being too much a pain to use. This is was I arrived at. > > > > Usage looks like this: > > > > remote_source 'fruitapp', > > 'http://roll.rubyforge.org/source/fruitapp/lib/fruitapp/1.0.0/' > > remote_dependency '9de3cd6daece5f07aa3ddb0319a21415', 'tryme.rb' > > > > require 'fruitapp/tryme.rb' > > > > The MD5 checksum of course is there to help ensure you get what you > > expect. Of course that's the most time consuming part becasue you have > > to keep those upto date with new versions. > > > > Anyway, just thought I'd share it just in case it interested anyone. > > Here's the code: > > [snip: source sode] > > I think this would make a really nice gem. I love the idea! Maybe a > future revision could take a regular md5sum output file? I'll work on that. Also, someone else wrote me and suggested sha256 instead of md5 for greater security -- good idea. I'm not sure how to generate the equivalent sha256 output file on my ubuntu box though, all I see is sha1sum. T. > -Mat