1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string

should call Kernel.eval on caller's safe-level instead of slave's
  safe-level (Of course, the given script should be evaluated on
  slave's safe-level).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2005-09-17 01:44:28 +00:00
parent 446eef82cf
commit 762ed0d68c
3 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,10 @@
Sat Sep 17 10:42:13 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
should call Kernel.eval on caller's safe-level instead of slave's
safe-level (Of course, the given script should be evaluated on
slave's safe-level).
Sat Sep 17 08:35:39 2005 Kouhei Sutou <kou@cozmixng.org> Sat Sep 17 08:35:39 2005 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed

View file

@ -1577,8 +1577,8 @@ class MultiTkIp
eval_proc_core(true, eval_proc_core(true,
proc{|safe| proc{|safe|
$SAFE=safe if $SAFE < safe Kernel.eval("$SAFE=#{safe} if $SAFE < #{safe};" << cmd,
Kernel.eval(cmd, *eval_args) *eval_args)
}) })
end end
alias eval_str eval_string alias eval_str eval_string
@ -1591,8 +1591,8 @@ class MultiTkIp
Thread.new{ Thread.new{
eval_proc_core(true, eval_proc_core(true,
proc{|safe| proc{|safe|
$SAFE=safe if $SAFE < safe Kernel.eval("$SAFE=#{safe} if $SAFE < #{safe};" << cmd,
Kernel.eval(cmd, *eval_args) *eval_args)
}) })
} }
end end

View file

@ -4437,7 +4437,7 @@ end
#Tk.freeze #Tk.freeze
module Tk module Tk
RELEASE_DATE = '2005-09-16'.freeze RELEASE_DATE = '2005-09-17'.freeze
autoload :AUTO_PATH, 'tk/variable' autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable'