Hey

For anyone on OSX who has a few minutes to spare you might "Dia" a fun
project to play around with.

It can run a Ruby block or an OSX Application under a sandbox with five
different profiles that affect the restrictions of the sandbox.

Here is a quick example:


require 'rubygems'
require 'dia'
require 'open-uri'

Dia::SandBox.new(Dia::Profiles::NO_INTERNET).run_with_block do
  open(URI.parse('http://www.google.com')).read # Exception raised.
end

If anyone is curious, it use's the features exposed in the C header file
"sandbox.h" on OSX to create a sandbox ..

I released 1.1 today .

http://gemcutter.org/gems/dia
http://github.com/robgleeson/dia


</spam>

Cheers,
Rob
-- 
Posted via http://www.ruby-forum.com/.