code/superant.com.rwdtinkerbackwindow/installgemapplet.rb in rwddialogmap-0.01 vs code/superant.com.rwdtinkerbackwindow/installgemapplet.rb in rwddialogmap-0.02
- old
+ new
@@ -11,19 +11,21 @@
zf.sort.each {
|entry|
zf.extract(entry.to_s, entry.to_s)
}
- rescue
+ rescue
- if $DEBUG
- $stderr.puts "unzip error - applet may not be installed correctly"
- end
- @installapplettext = " .. "
+ $rwdtinkerlog.error "installgemapplet: unzip error - applet may not be installed correctly"
- end # exception rescue
+ @installapplettext = " .. "
- @nametextbase = File.basename(nametext)
+ end # exception rescue
+
+ @rwd_ignore_vars << @nametextbase << @returninitiateresults << @installapplettext
+ tmpnametext = File.basename(nametext)
+ tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!
+ @nametextbase = tmpnametext.chop!
@returninitateresults = initiateapplet(@nametextbase)
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")