rubyslippers 1.01 → 1.02
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +6 -0
- data/code/01rwdcore/01rwdcore.rb +16 -16
- data/code/01rwdcore/jumplinkcommand.rb +30 -0
- data/code/01rwdcore/openhelpwindow.rb +26 -26
- data/code/01rwdcore/returntomain.rb +8 -8
- data/code/01rwdcore/rwdtinkerversion.rb +12 -13
- data/code/01rwdcore/rwdwindowreturn.rb +3 -5
- data/code/01rwdcore/test_cases.rb +79 -90
- data/code/01rwdcore/test_harness.rb +7 -10
- data/code/01rwdcore/uploadreturns.rb +60 -60
- data/code/superant.com.rubyslippers/jumplinkupdate.rb +23 -0
- data/code/superant.com.rubyslippers/listgemremote.rb +3 -6
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -21
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
- data/configuration/language.dist +1 -1
- data/configuration/rubyslippers.dist +2 -2
- data/configuration/rwdapplicationidentity.dist +2 -2
- data/configuration/rwdtinker.dist +3 -3
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/94rwddiagnostics.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m90selectiontab.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m95jumplinkcommands.rwd +15 -0
- data/gui/{frontwindow0/superant.com.rubyslippers/m99menuend.rwd → tinkerbackwindows/superant.com.rubyslippersbackwindow/m99selection.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
- data/init.rb +228 -228
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/rwd_files/HowTo_RubySlippers.txt +6 -0
- data/rwd_files/HowTo_Tinker.txt +6 -0
- data/rwd_files/remotegemlist.txt +58 -24
- data/rwdconfig.dist +1 -1
- data/tests/makedist.rb +36 -7
- data/tests/rubyslippers-1.01.gemspec +16 -0
- metadata +11 -19
- data/gui/frontwindow0/superant.com.rubyslippers/m01menubegin.rwd +0 -10
- data/gui/frontwindow0/superant.com.rubyslippers/m02menu.rwd +0 -60
- data/gui/frontwindow0/superant.com.rubyslippers/m03menu.rwd +0 -12
- data/gui/frontwindow0/superant.com.rubyslippers/m85menu.rwd +0 -21
- data/gui/frontwindow0/superant.com.rubyslippers/m88menu.rwd +0 -12
- data/gui/frontwindowselections/superant.com.rubyslippersselectiontab/rubyslippersselectiontab.rwd +0 -12
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m01menubegin.rwd +0 -10
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m02menu.rwd +0 -60
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m03menu.rwd +0 -12
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m85menu.rwd +0 -21
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m88menu.rwd +0 -12
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m99menuend.rwd +0 -3
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/v9returntab.rwd +0 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
@@ -1,24 +1,24 @@
|
|
1
1
|
# This tinker method is to retrieve the list of rwdzip applets available to install from the remote repository
|
2
|
-
|
3
2
|
def superantcomremotegemlist
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
gemcommandoption = "search --remote "
|
4
|
+
gemfilename = "rwdzip"
|
5
|
+
commandtext = "gem search --remote rwdzip"
|
6
|
+
commandtemp = $xpcommand + commandtext
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
tempremotegemappletsresult = `#{commandtemp} 2>&1`
|
10
|
+
@superantcomremotegemappletsfullresult = tempremotegemappletsresult
|
11
|
+
fileList = tempremotegemappletsresult.split(/\n/).delete_if { |x| ! (x =~ /\Arwdzip/) }
|
12
|
+
|
13
|
+
@superantcomremotegemappletsresult = fileList.rwd_method("superantcomremotegemappletdirsname")
|
14
|
+
rescue SystemCallError, StandardError
|
15
|
+
@superantcomremotegemappletsresult = "system call error: " + $!
|
16
|
+
end # exception rescue
|
18
17
|
end
|
19
|
-
|
18
|
+
|
20
19
|
def superantcomremotegemappletdirsname(inffile)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
20
|
+
applet = inffile
|
21
|
+
@superantcominstallremoteappletinput = applet
|
22
|
+
|
23
|
+
end
|
24
|
+
|
@@ -1,32 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
1
|
+
# method to remove a tinker applet
|
2
|
+
def removeapplet
|
3
|
+
require 'fileutils'
|
4
|
+
nametext = "%s" % [@a_removeapplet]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
fileName = "installed/" + nametext + ".inf"
|
8
|
+
count = 0
|
9
|
+
fd = File.open(fileName,"r")
|
10
|
+
|
11
|
+
|
12
|
+
fd.each { |oneline|
|
13
|
+
if count == 1
|
14
|
+
if File.exist?(oneline.chop)
|
15
|
+
FileUtils.rm_rf( oneline.chop)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
count = 1
|
20
|
+
}
|
21
|
+
fd.close
|
22
|
+
|
23
|
+
FileUtils.rm_rf( fileName)
|
24
|
+
|
25
|
+
|
26
|
+
@removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
|
27
|
+
|
28
|
+
rescue
|
29
|
+
@removeapplettext = "\n" + "error"
|
30
|
+
|
31
|
+
end # exception rescue
|
32
|
+
|
33
|
+
end
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
-
# http://www.
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the rwdtinker helpwindow
|
6
|
+
|
7
|
+
def runrwdtinkerbackwindow
|
8
|
+
@rwd_window = "tinkerbackwindow"
|
9
|
+
@rwd_tab = "rwdzipslister"
|
10
|
+
end
|
7
11
|
|
8
|
-
def runrwdtinkerbackwindow
|
9
|
-
@rwd_window = "tinkerbackwindow"
|
10
|
-
@rwd_tab = "rwdzipslister"
|
11
|
-
end
|
12
|
-
|
@@ -1,14 +1,13 @@
|
|
1
1
|
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
-
# http://www.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return the version constant defined in the config file
|
6
|
+
def runrwdtinkerwin2version
|
7
|
+
@rwd_window = "applicationversion"
|
8
|
+
@versionappnamedisplay = "RwdTinkerWin2"
|
9
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
10
|
+
@versionnumberdisplay = "Version " + RwdTinkerWin2Version
|
11
|
+
|
12
|
+
end
|
12
13
|
|
13
|
-
end
|
14
|
-
|
@@ -1,18 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
1
|
+
# this method saves the configuration record
|
2
|
+
def saveconfigurationrecord
|
3
|
+
require 'fileutils'
|
4
|
+
if @a_configurationfilename
|
5
|
+
newname = "%s" % [@a_configurationfilename] # grab the filename to create
|
6
|
+
newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
|
7
|
+
|
8
|
+
begin # exception trapped block
|
9
|
+
fileName = File.join( ConfigurationDir, newname )
|
10
|
+
fd = File.open(fileName,"w")
|
11
|
+
fd.print(newdata) # save the record info to the file
|
12
|
+
fd.close
|
13
|
+
@newconfigurationresult=newdata # show the record info in the browser
|
14
|
+
rescue SystemCallError, StandardError
|
15
|
+
$stderr.print "system call error: " + $!
|
16
|
+
end # exception rescue
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
@@ -1,21 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
begin # exception trapped block
|
7
|
-
fullname = nametext + ".zip"
|
8
|
-
fileName = File.join($zipslocation,fullname)
|
9
|
-
tempfilecontents = " "
|
10
|
-
zf = Zip::ZipFile.new(fileName)
|
11
|
-
zf.sort.each {
|
12
|
-
|entry|
|
13
|
-
tempfilecontents = tempfilecontents + entry.to_s + "\n"
|
14
|
-
}
|
15
|
-
@appletcontentstext = tempfilecontents
|
16
|
-
|
17
|
-
rescue
|
18
|
-
@installapplettext = "unzip error - error opening applet"
|
19
|
-
end # exception rescue
|
1
|
+
#view contents of a tinker applet
|
2
|
+
def viewappletcontents
|
3
|
+
require 'fileutils'
|
4
|
+
require 'extras/zip/zip'
|
5
|
+
nametext = "%s" % [@a_installapplet]
|
20
6
|
|
21
|
-
|
7
|
+
begin # exception trapped block
|
8
|
+
fullname = nametext + ".zip"
|
9
|
+
fileName = File.join($zipslocation,fullname)
|
10
|
+
tempfilecontents = " "
|
11
|
+
zf = Zip::ZipFile.new(fileName)
|
12
|
+
zf.sort.each {
|
13
|
+
|entry|
|
14
|
+
tempfilecontents = tempfilecontents + entry.to_s + "\n"
|
15
|
+
}
|
16
|
+
@appletcontentstext = tempfilecontents
|
17
|
+
|
18
|
+
rescue
|
19
|
+
@installapplettext = "unzip error - error opening applet"
|
20
|
+
end # exception rescue
|
21
|
+
|
22
|
+
end
|
@@ -1,21 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
#view gem info
|
2
|
+
def viewgemappletcontents
|
3
|
+
require 'fileutils'
|
4
|
+
require 'extras/zip/zip'
|
5
|
+
nametext = "%s" % [@a_installapplet]
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
fullname = nametext + ".zip"
|
9
|
+
|
10
|
+
tempfilecontents = " "
|
11
|
+
zf = Zip::ZipFile.new(fullname)
|
12
|
+
zf.sort.each {
|
13
|
+
|entry|
|
14
|
+
tempfilecontents = tempfilecontents + entry.to_s + "\n"
|
15
|
+
}
|
16
|
+
@appletcontentstext = tempfilecontents
|
17
|
+
|
18
|
+
rescue
|
19
|
+
@installapplettext = "unzip error - error opening applet"
|
20
|
+
end # exception rescue
|
21
|
+
|
22
|
+
end
|
23
|
+
|
20
24
|
|
21
|
-
end
|
data/configuration/language.dist
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.02
|
2
2
|
##NAME:$gemdirectory:0
|
3
3
|
#$gemdirectory = "c:\\ruby\\lib\\ruby\\gems\\1.8" # XP machine
|
4
4
|
$gemdirectory = "/usr/lib/ruby/gems/1.8" # Linux machine
|
@@ -12,4 +12,4 @@ $gemdirectory = "/usr/lib/ruby/gems/1.8" # Linux machine
|
|
12
12
|
$gemspec_directory = "/usr/src/rubygems"
|
13
13
|
##NAME:$gembuild_directory:0
|
14
14
|
$gembuild_directory = "/usr/src/rubygems"
|
15
|
-
RubySlippersVersion = "1.
|
15
|
+
RubySlippersVersion = "1.02"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
##VERSION:1.
|
2
|
-
$rwdapplicationidentity = "
|
1
|
+
##VERSION:1.62
|
2
|
+
$rwdapplicationidentity = "rwdtinker main application"
|
3
3
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.62
|
2
2
|
ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
|
3
3
|
CodeName = "rwdtinker"
|
4
4
|
CodeNameFile = CodeName + ".rb"
|
@@ -11,5 +11,5 @@ LangDir = "lang"
|
|
11
11
|
$prevouswindow ="main"
|
12
12
|
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
|
13
13
|
$port = 7705
|
14
|
-
|
15
|
-
RwdTinkerVersion = "1.
|
14
|
+
$rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain"]
|
15
|
+
RwdTinkerVersion = "1.62"
|
@@ -3,14 +3,9 @@ $rwdguivar=
|
|
3
3
|
<tab name=\"selectiontab\" caption=#{Message[:selection_panel]}>
|
4
4
|
|
5
5
|
<table>
|
6
|
-
<row> <p align=\"right\">Open a new
|
6
|
+
<row> <p align=\"right\">Open a new location </row>
|
7
7
|
|
8
8
|
</table>
|
9
|
-
|
10
|
-
|
11
|
-
<button caption=#{Message[:rwdtinker_help_window]} action=\"runhelpwindow\"/>
|
12
|
-
|
13
|
-
|
14
|
-
</horizontal>"
|
9
|
+
"
|
15
10
|
|
16
11
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<horizontal>
|
4
|
+
<button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
|
5
|
+
|
6
|
+
</horizontal>
|
7
|
+
<table>
|
8
|
+
<select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
|
9
|
+
|
10
|
+
</table>
|
11
|
+
|
12
|
+
<horizontal>
|
13
|
+
<button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
|
14
|
+
</horizontal>
|
15
|
+
"
|
@@ -1,18 +1,6 @@
|
|
1
1
|
$rwdguivar=
|
2
2
|
"
|
3
3
|
<tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
|
4
|
-
<horizontal>
|
5
|
-
<button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
|
6
|
-
|
7
|
-
|
8
|
-
</horizontal>
|
9
|
-
<p>%rubyversion%</p>
|
10
|
-
|
11
|
-
|
12
|
-
<table>
|
13
|
-
<row> <p> </row>
|
14
|
-
|
15
|
-
</table>
|
16
4
|
|
17
5
|
<horizontal>
|
18
6
|
<button caption=\"view platform\" action=\"runviewplatform\"/>
|
@@ -20,12 +8,6 @@ $rwdguivar=
|
|
20
8
|
</horizontal>
|
21
9
|
|
22
10
|
<p>%platformdisplay%</p>
|
23
|
-
<horizontal>
|
24
|
-
<button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
|
25
|
-
|
26
|
-
</horizontal>
|
27
|
-
|
28
|
-
<p>%rwdtinkerversionreturn%</p>
|
29
11
|
|
30
12
|
</tab>"
|
31
13
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<horizontal>
|
4
|
+
<button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
|
5
|
+
|
6
|
+
</horizontal>
|
7
|
+
<table>
|
8
|
+
<select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
|
9
|
+
|
10
|
+
</table>
|
11
|
+
|
12
|
+
<horizontal>
|
13
|
+
<button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
|
14
|
+
</horizontal>
|
15
|
+
"
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=selectiontab caption=\"Selection Tab\">
|
4
|
+
<horizontal>
|
5
|
+
<button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
|
6
|
+
|
7
|
+
</horizontal>
|
8
|
+
<table>
|
9
|
+
<select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
|
15
|
+
</horizontal>
|
16
|
+
</tab>
|
17
|
+
"
|