RubyGems.org

safe_ruby

1.0.1

Evaluates ruby code by writing it to a tempfile and spawning a child process. Uses a whitelist of methods and constants to keep, for example one cannot run system commands in the environment created by this gem. The environment created by the untrusted code does not leak out into the parent process.

installgem install safe_ruby
Authors

Uku Taht

916 total downloads 327 for this version
Owners

051d7d3cccb9ec47de909157ce759f42

Licenses

MIT

Gemfile
gem 'safe_ruby', '~> 1.0.1'
Versions
  1. 1.0.1 December 4, 2013 (7 KB)
  2. 1.0.0 December 4, 2013 (7 KB)
  3. 0.0.1 December 4, 2013 (7 KB)
Runtime Dependencies
  1. childprocess >= 0.3.9
Development Dependencies
  1. rspec >= 2.14.1