Changeset 387
- Timestamp:
- 10/06/07 09:18:52 (6 years ago)
- Location:
- lang/ruby
- Files:
-
- 3 modified
-
module-pluggable/README (modified) (1 diff)
-
safeeval/README (modified) (2 diffs)
-
safeeval/lib/safe_eval.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/module-pluggable/README
r385 r387 38 38 39 39 Author:: cho45 <cho45@lowreal.net> 40 Copyright:: copyright (c) 2007 cho45 www.lowreal.net40 Copyright:: Copyright (c) 2007 cho45 www.lowreal.net 41 41 License:: Ruby's -
lang/ruby/safeeval/README
r284 r387 1 1 2 SafeEval 2 = SafeEval 3 3 4 by cho45 <cho45@lowreal.net> 4 5 5 == DESCRIPTION: 6 Eval codes in more safe enviroment. 6 == Description 7 7 8 == FEATURES/PROBLEMS: 8 Eval codes in more safe environment. 9 10 より安全な環境におけるEvalコード。 11 12 == Installation 13 14 === Archive Installation 15 16 rake install 17 18 === Gem Installation 19 20 gem install safeeval 21 22 === Subversion Repository 23 24 Hosted by CodeRepos[http://coderepos.org/share/browser/lang/ruby/safeeval] 25 26 svn co http://svn.coderepos.org/share/lang/ruby/safeeval/ 27 28 == Features/Problems 9 29 10 30 * This is experimental package, so this is not assured lib. 11 31 12 == SYNOPSYS: 32 * 実験パッケージであるので、これは確実なリブではありません。 33 34 35 == Synopsys 13 36 14 37 require 'safe_eval' … … 17 40 SafeEval.eval(not_trusted_code) 18 41 19 == LICENSE:42 == Copyright 20 43 21 Ruby's 22 44 Author:: cho45 <cho45@lowreal.net> 45 Copyright:: Copyright (c) 2007 cho45 www.lowreal.net 46 License:: Ruby's -
lang/ruby/safeeval/lib/safe_eval.rb
r384 r387 4 4 class SafeEval 5 5 6 # This is same as <code>new.safe_eval(code, tm)</code> 7 # 8 # これはnew.safe_evalと同じです。(コード、tm) 6 9 def self.eval(code, tm=1) 7 10 new.safe_eval(code, tm) 8 11 end 9 12 13 # Eval +code+ in closed environment within +tm+ sec. 14 # If over the +tm+ sec for running, raise TimeoutError. 15 # 16 # tm秒の中の閉じている環境におけるEvalコード 17 # 走るためのtm秒の間TimeoutErrorを上げてください。 10 18 def safe_eval(code, tm=1) 11 19 result = nil
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)