Alexander Cohen wrote:
> I am adding ruby to be used as a scripting language in WebKit/WebCore.
> It's really working great but it's not feasable for anything else than
> playing around if i can't sandbox multiple contexts. I could build the
> ruby VM directly into the core and hack it for multiple contexts but i
> was hoping i would not need to do that. Are there any other options
> out there?

Google for "ruby sandbox" and you should find the sandbox gem - e.g. 
second hit I get is 
http://flouri.sh/2009/4/4/how-to-set-up-the-ruby-sandbox

It's a C extension but requires only one small patch to the ruby 
interpreter.

IIRC it was one of _why's projects - to skip a long (and possibly 
unfinished) story, he destroyed his own code repositories. However there 
appear to be various forks available on github.

# gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org/
http://gems.github.com/

# gem search --remote sandbox

*** REMOTE GEMS ***

bdimcheff-sandbox (0.1.1)
file_sandbox (0.5)
nkryptic-sandbox (0.2.4)

Regards,

Brian.
-- 
Posted via http://www.ruby-forum.com/.