From: Clifford Heath Date: 2012-08-01T06:02:06+09:00 Subject: [ruby-core:46903] Re: (Half-baked DRAFT) new `require' framework On 01/08/2012, at 5:59 AM, Trans wrote: > On Tue, Jul 31, 2012 at 12:07 PM, Alex Young wrote: >> I would dearly love to see Proposal-1, with the added proviso that I'd >> also like to be able to *prevent* .rb- and .so-loading from the >> filesystem, so the mechanism which occurred to me was a modifiable array >> of loaders, queried in sequence. But that's getting ahead of things :-) > > Is is? Here is related work that does exactly that: > https://github.com/rubyworks/loadable My "polyglot" gem is already a very widely-used solution to this problem as well, with over 8 million downloads - the 11th most-downloaded gem. It's used by Treetop, which is pulled in by Cucumber and Rails' mailer. Far from being complicated and big, it's just 60 lines of Ruby. No C extension is needed. https://github.com/cjheath/polyglot http://rubygems.org/gems/polyglot Clifford Heath, Data Constellation, http://dataconstellation.com