forked from ukutaht/safe_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
safe_ruby.gemspec
28 lines (23 loc) · 1.19 KB
/
safe_ruby.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'safe_ruby/version'
Gem::Specification.new do |s|
s.name = 'safe_ruby'
s.version = SafeRuby::VERSION
s.date = '2013-12-04'
s.authors = ["Uku Taht"]
s.email = 'uku.taht@gmail.com'
s.summary = "Run untrusted ruby code in a safe environment"
s.description = "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."
s.homepage = 'http://rubygems.org/gems/safe_ruby'
s.license = 'MIT'
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]
s.add_runtime_dependency 'childprocess', '>= 0.3.9'
s.add_development_dependency 'pry'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
end