RubyGems Navigation menu

eval_in 0.1.1

Safely evaluates code (Ruby and others) by sending it through eval.in

Languages and Versions

C             | GCC 4.4.3, GCC 4.9.1
C++           | C++11 (GCC 4.9.1), GCC 4.4.3, GCC 4.9.1
CoffeeScript  | CoffeeScript 1.7.1 (Node 0.10.29)
Fortran       | F95 (GCC 4.4.3)
Haskell       | Hugs98 September 2006
Io            | Io 20131204
JavaScript    | Node 0.10.29
Lua           | Lua 5.1.5, Lua 5.2.3
OCaml         | OCaml 4.01.0
PHP           | PHP 5.5.14
Pascal        | Free Pascal 2.6.4
Perl          | Perl 5.20.0
Python        | CPython 2.7.8, CPython 3.4.1
Ruby          | MRI 1.0, MRI 1.8.7, MRI 1.9.3, MRI 2.0.0, MRI 2.1
Slash         | Slash HEAD
x86 Assembly  | NASM 2.07

Example:

It’s this simple:

result = EvalIn.call 'puts "hello, world"', language: "ruby/mri-2.1"
result.output # "hello, world

Gemfile:
=

安装:
=

版本列表:

  1. 0.2.0 October 21, 2014 (17.5 KB)
  2. 0.1.6 September 06, 2014 (12.5 KB)
  3. 0.1.5 September 01, 2014 (11.5 KB)
  4. 0.1.4 August 31, 2014 (12.0 KB)
  5. 0.1.3 August 27, 2014 (11.0 KB)
  6. 0.1.1 August 24, 2014 (11.0 KB)
显示所有版本 (共 8 个)

Development 依赖 (2):

rspec ~> 3.0
webmock ~> 1.18

业主:

作者:

  • Josh Cheek

SHA 256 校验和:

=

下载总量 22,206

这个版本 2,654

版本发布:

许可:

WTFPL

需要的 Ruby 版本: >= 0

链接: