code/superant.com.rwdtinkerbackwindow/installremotegem.rb in rwdgutenberg-0.03 vs code/superant.com.rwdtinkerbackwindow/installremotegem.rb in rwdgutenberg-0.04

- old
+ new

@@ -1,19 +1,20 @@ # download gem of rwdtinker applet - def superantcominstallremotegemapplet - require 'fileutils' - - tempnametext = "%s" % [@superantcominstallremoteappletinput] - temparray = tempnametext.split(/ /) - nametext = temparray[0] - begin # exception trapped block - - - commandline = $xpcommand + "gem install " + nametext - - @superantcominstallremotegemappletresult = `#{commandline}` - - rescue - @superantcominstallremotegemappletresult = "error during gem install!" - end # exception rescue - - end +def superantcominstallremotegemapplet + require 'fileutils' + + tempnametext = "%s" % [@superantcominstallremoteappletinput] + temparray = tempnametext.split(/ /) + nametext = temparray[0] + begin # exception trapped block + + + commandline = $xpcommand + "gem install " + nametext + + @superantcominstallremotegemappletresult = `#{commandline}` + + rescue + @superantcominstallremotegemappletresult = "error during gem install!" + end # exception rescue + +end +