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:
parent
446eef82cf
commit
762ed0d68c
3 changed files with 12 additions and 5 deletions
|
@ -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>
|
||||
|
||||
* lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed
|
||||
|
|
|
@ -1577,8 +1577,8 @@ class MultiTkIp
|
|||
|
||||
eval_proc_core(true,
|
||||
proc{|safe|
|
||||
$SAFE=safe if $SAFE < safe
|
||||
Kernel.eval(cmd, *eval_args)
|
||||
Kernel.eval("$SAFE=#{safe} if $SAFE < #{safe};" << cmd,
|
||||
*eval_args)
|
||||
})
|
||||
end
|
||||
alias eval_str eval_string
|
||||
|
@ -1591,8 +1591,8 @@ class MultiTkIp
|
|||
Thread.new{
|
||||
eval_proc_core(true,
|
||||
proc{|safe|
|
||||
$SAFE=safe if $SAFE < safe
|
||||
Kernel.eval(cmd, *eval_args)
|
||||
Kernel.eval("$SAFE=#{safe} if $SAFE < #{safe};" << cmd,
|
||||
*eval_args)
|
||||
})
|
||||
}
|
||||
end
|
||||
|
|
|
@ -4437,7 +4437,7 @@ end
|
|||
#Tk.freeze
|
||||
|
||||
module Tk
|
||||
RELEASE_DATE = '2005-09-16'.freeze
|
||||
RELEASE_DATE = '2005-09-17'.freeze
|
||||
|
||||
autoload :AUTO_PATH, 'tk/variable'
|
||||
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
||||
|
|
Loading…
Reference in a new issue