Registry / utility / rufus-eval

rufus-eval

JSON →
library0.1rbrubygemsunverified

A safer eval method for Ruby with limited execution context.

gem install rufus-eval
INSTALL
IMPORT
SIG · RUFUS-EVAL
R
rufus-eval
utilityrubyv0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Rufus
✓ require 'rufus/eval'

Evaluate a string as Ruby code in a sandboxed context.

require 'rufus/eval' result = Rufus.eval('2 + 2') puts result
Debug
Known issues
gotchaNot a fully secure sandbox; may still be vulnerable to certain attacks.
fix
Use a more robust sandboxing solution for untrusted code.
affects: >= 0.1.0
Upgrade
Version history
0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Bingbot
1
Resources
rufus-eval — gem install rufus-eval · libregistry