code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb in rwdschedule-0.98 vs code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb in rwdschedule-0.99
- old
+ new
@@ -1,21 +1,24 @@
- def viewgemappletcontents
- require 'fileutils'
- require 'extras/zip/zip'
- nametext = "%s" % [@a_installapplet]
-
- begin # exception trapped block
- fullname = nametext + ".zip"
-
- tempfilecontents = " "
- zf = Zip::ZipFile.new(fullname)
- zf.sort.each {
- |entry|
- tempfilecontents = tempfilecontents + entry.to_s + "\n"
- }
- @appletcontentstext = tempfilecontents
-
- rescue
- @installapplettext = "unzip error - error opening applet"
- end # exception rescue
+#view gem info
+def viewgemappletcontents
+ require 'fileutils'
+ require 'extras/zip/zip'
+ nametext = "%s" % [@a_installapplet]
- end
+ begin # exception trapped block
+ fullname = nametext + ".zip"
+
+ tempfilecontents = " "
+ zf = Zip::ZipFile.new(fullname)
+ zf.sort.each {
+ |entry|
+ tempfilecontents = tempfilecontents + entry.to_s + "\n"
+ }
+ @appletcontentstext = tempfilecontents
+
+ rescue
+ @installapplettext = "unzip error - error opening applet"
+ end # exception rescue
+
+end
+
+