One solution could be to compare the downloaded file with an expected hash. That'd at least give you the opportunity to audit the code once. Something like...
require 'http://example.com/somelib.rb, '7361c1132d2ada0e987080100cfff5c1645c5e7d'
require 'http://example.com/somelib.rb, '7361c1132d2ada0e987080100cfff5c1645c5e7d'