code/superant.com.rwdtinkerbackwindow/installgemapplet.rb in rwdtorrent-0.02 vs code/superant.com.rwdtinkerbackwindow/installgemapplet.rb in rwdtorrent-0.03
- old
+ new
@@ -1,20 +1,21 @@
# install rwdtinker applet from a long directory location
- def installgemapplet
- require 'fileutils'
- require 'extras/zip/zip'
- nametext = "%s" % [@a_installapplet]
-
- begin # exception trapped block
- fullname = nametext + ".zip"
-
- zf = Zip::ZipFile.new(fullname)
- zf.sort.each {
- |entry|
- zf.extract(entry.to_s, entry.to_s)
- }
- @installapplettext = Message[:applet_installed]
-
- rescue
- @installapplettext = "unzip error - applet may not be installed correctly"
- end # exception rescue
- end
+def installgemapplet
+ require 'fileutils'
+ require 'extras/zip/zip'
+ nametext = "%s" % [@a_installapplet]
+
+ begin # exception trapped block
+ fullname = nametext + ".zip"
+
+ zf = Zip::ZipFile.new(fullname)
+ zf.sort.each {
+ |entry|
+ zf.extract(entry.to_s, entry.to_s)
+ }
+ @installapplettext = Message[:applet_installed]
+
+ rescue
+ @installapplettext = "unzip error - applet may not be installed correctly"
+ end # exception rescue
+end
+