rwdtinker 1.69 → 1.70
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +10 -0
- data/bin/rwdtinker +0 -0
- data/code/01rwdcore/01rwdcore.rb +0 -0
- data/code/01rwdcore/02helptexthashbegin.rb +0 -0
- data/code/01rwdcore/03helptexthash.rb +1 -9
- data/code/01rwdcore/04helptextend.rb +0 -0
- data/code/01rwdcore/jumplinkcommand.rb +1 -1
- data/code/01rwdcore/openhelpwindow.rb +0 -0
- data/code/01rwdcore/returntomain.rb +0 -0
- data/code/01rwdcore/rundocuments.rb +0 -0
- data/code/01rwdcore/runeditconfiguration.rb +0 -0
- data/code/01rwdcore/runhelpabout.rb +0 -0
- data/code/01rwdcore/runopentinkerdocument.rb +0 -0
- data/code/01rwdcore/rwdtinkerversion.rb +0 -0
- data/code/01rwdcore/rwdwindowreturn.rb +0 -0
- data/code/01rwdcore/selectiontab.rb +0 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +0 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +0 -0
- data/code/01rwdcore/test_cases.rb +0 -0
- data/code/01rwdcore/test_harness.rb +0 -0
- data/code/01rwdcore/uploadreturns.rb +0 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +200 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +7 -1
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +15 -4
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -0
- data/code/zz0applicationend/zz0end.rb +0 -0
- data/configuration/language.dist +1 -1
- data/configuration/rwdapplicationidentity.dist +0 -0
- data/configuration/rwdtinker.dist +3 -4
- data/configuration/tinkerwin2variables.dist +0 -0
- data/ev/browser.rb +0 -0
- data/ev/ftools.rb +0 -0
- data/ev/mime.rb +0 -0
- data/ev/net.rb +2 -2
- data/ev/ruby.rb +0 -0
- data/ev/rwd.rb +26 -10
- data/ev/sgml.rb +0 -0
- data/ev/thread.rb +0 -0
- data/ev/tree.rb +0 -0
- data/ev/xml.rb +0 -0
- data/extras/rconftool.rb +0 -0
- data/extras/zip/ioextras.rb +0 -0
- data/extras/zip/stdrubyext.rb +0 -0
- data/extras/zip/tempfile_bugfixed.rb +0 -0
- data/extras/zip/zip.rb +0 -0
- data/extras/zip/zipfilesystem.rb +0 -0
- data/extras/zip/ziprequire.rb +0 -0
- data/gui/00coreguibegin/applicationguitop.rwd +0 -0
- data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +0 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +0 -0
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +0 -0
- data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +0 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +0 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
- data/init.rb +5 -5
- data/lang/es/rwdcore/languagefile-es.rb +0 -0
- data/lang/jp/rwdcore/languagefile.rb +0 -0
- data/lang/nl/rwdcore/languagefile.rb +0 -0
- data/lib/temp.rb +0 -0
- data/rwd_files/HowTo_Tinker.txt +0 -0
- data/rwd_files/HowTo_TinkerWin2.txt +0 -0
- data/rwd_files/Readme.txt +0 -0
- data/rwd_files/RubyWebDialogs.html +0 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +0 -0
- data/rwd_files/rwdapplications.html +0 -0
- data/rwd_files/tinker.png +0 -0
- data/rwdconfig.dist +4 -2
- data/tests/checkdepends.sh +0 -0
- data/tests/cleancnf.sh +0 -0
- data/tests/makedist.rb +0 -0
- data/tests/rdep.rb +0 -0
- data/tests/totranslate.lang +0 -0
- metadata +4 -2
data/Readme.txt
CHANGED
@@ -234,6 +234,16 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
234
234
|
Thanks, Steven Gibson
|
235
235
|
|
236
236
|
== Changelog
|
237
|
+
Version 1.70
|
238
|
+
major update to applet loading routines
|
239
|
+
a properly prepared applet should be loadable and unloadable live with not restarting
|
240
|
+
localization is not yet updated in live applet loading
|
241
|
+
remove network line debugging output
|
242
|
+
|
243
|
+
Version 1.69
|
244
|
+
More work on translations - Spanish almost done
|
245
|
+
removed remote control
|
246
|
+
|
237
247
|
Version 1.68
|
238
248
|
updated to newest Ruby webdialogs
|
239
249
|
|
data/bin/rwdtinker
CHANGED
File without changes
|
data/code/01rwdcore/01rwdcore.rb
CHANGED
File without changes
|
File without changes
|
@@ -18,14 +18,6 @@ Then you should be able to login at: http://yourhostname:8080",
|
|
18
18
|
<p>
|
19
19
|
|
20
20
|
when you click on a document name, the document should pop up in a <br>
|
21
|
-
browser window, or in another browser tab.</b>
|
22
|
-
:remote_control => "<b>Remote control gives you a way to determine what applications are running on which ports
|
23
|
-
<p>
|
24
|
-
The name of the application is set in the config file<br>
|
25
|
-
You need to click the show remote command choices first - this will show the port and query choices<br>
|
26
|
-
Then you can click in 'Run Command' to see if other applications are running.<br>
|
27
|
-
<p>
|
28
|
-
The remote ports daemon will not be running unless you start it.
|
29
|
-
</b>
|
21
|
+
browser window, or in another browser tab.</b>
|
30
22
|
"
|
31
23
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,200 @@
|
|
1
|
+
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#*
|
6
|
+
#* This library is free software; you can redistribute it and/or
|
7
|
+
#* modify it under the terms of the GNU General Public
|
8
|
+
#* License as published by the Free Software Foundation; either
|
9
|
+
#* .
|
10
|
+
#*
|
11
|
+
#* These files are distributed in the hope that they will be useful,
|
12
|
+
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
#* General Public License for more details.
|
15
|
+
#*
|
16
|
+
#* You should have received a copy of the GNU General Public
|
17
|
+
#* License along with these files; if not, write to the Free Software
|
18
|
+
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#*
|
20
|
+
#* For further information please contact the author by e-mail
|
21
|
+
#* at "smalllinux@gmail.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
# integrate the new configuration files
|
27
|
+
def initiateapplet(nametextlocal)
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
Dir.chdir($progdir ) #changes the current working directory
|
32
|
+
|
33
|
+
@confignew = "configuration/" + "#{nametextlocal}.cnf"
|
34
|
+
@configdist = "configuration/" + "#{nametextlocal}.dist"
|
35
|
+
Rconftool::install(@configdist,@confignew)
|
36
|
+
|
37
|
+
configfileload = File.open(@confignew){|f| f.read}
|
38
|
+
|
39
|
+
eval configfileload #load config file
|
40
|
+
|
41
|
+
setuphelpaboutoptions # update the help about list
|
42
|
+
setuptinkerdocuments # update the document pull down list
|
43
|
+
runhelpwindow # update the help menu
|
44
|
+
showjumplinkoptions # update the application link menu
|
45
|
+
runrwdtinkerbackwindow # back to applet window
|
46
|
+
|
47
|
+
# build the actual GUI from the gui parts
|
48
|
+
$tempdoc = " "
|
49
|
+
#get a list of the files and subdirectories on the starting directory only
|
50
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
51
|
+
#loop through the list, ignore the files and add all new directories found
|
52
|
+
a.each do |x|
|
53
|
+
#if a directory...
|
54
|
+
if(test(?d,x))
|
55
|
+
#use this new dir find to add to the original list of directories
|
56
|
+
@@root = x + "/**"
|
57
|
+
#adds the new ones to the array
|
58
|
+
b = Dir[@@root].entries.sort
|
59
|
+
b.each do |x|
|
60
|
+
if(test(?d,x))
|
61
|
+
a.push(x) #appends to the end of the array...
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
a.each do |x|
|
67
|
+
#if it is a file...
|
68
|
+
if(!test(?d,x))
|
69
|
+
a.delete(x)
|
70
|
+
|
71
|
+
else #it is a directory...
|
72
|
+
loadguifile(x + "/**")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
$rwd_gui_tinker = $tempdoc
|
77
|
+
|
78
|
+
# now load in the code files
|
79
|
+
|
80
|
+
$tempdoc = ""
|
81
|
+
tempcodeinstallline = ""
|
82
|
+
|
83
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
84
|
+
|
85
|
+
tmpfilearray = File.readlines(@fileName)
|
86
|
+
|
87
|
+
tmpfilearray.each do |line|
|
88
|
+
|
89
|
+
tempcodeinstallline = line.chomp
|
90
|
+
if tempcodeinstallline.include?('code/')
|
91
|
+
findfiles(tempcodeinstallline + "/**")
|
92
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
97
|
+
tempresult = @fileName
|
98
|
+
|
99
|
+
return " applet loading successful " + tempresult
|
100
|
+
|
101
|
+
rescue
|
102
|
+
|
103
|
+
return " applet file error"
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
=begin
|
110
|
+
|
111
|
+
|
112
|
+
Dir.chdir($progdir) # change back to top program directory
|
113
|
+
|
114
|
+
# build the English Language hash file from the parts
|
115
|
+
languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
116
|
+
langmessage = {' + "\n"
|
117
|
+
startlangdir = File.join(LangDir,"en")
|
118
|
+
#get a list of the files and subdirectories on the starting directory only
|
119
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
120
|
+
#loop through the list, ignore the files and add all new directories found
|
121
|
+
alanghash.each do |x|
|
122
|
+
#if a directory...
|
123
|
+
if(test(?d,x))
|
124
|
+
# add to the original list of directories
|
125
|
+
@@tmproot = x + "/**"
|
126
|
+
#adds the new ones to the array
|
127
|
+
blanghash = Dir[@@tmproot].entries.sort
|
128
|
+
blanghash.each do |x|
|
129
|
+
if(test(?d,x))
|
130
|
+
alanghash.push(x) #appends to the end of the array...
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
alanghash.each do |x|
|
136
|
+
#if it is a file...
|
137
|
+
if(!test(?d,x))
|
138
|
+
alanghash.delete(x)
|
139
|
+
else #it is a directory...
|
140
|
+
findfiles(x + "/**")
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
|
145
|
+
#writes the contents of doc into the languagehashvariable
|
146
|
+
languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
|
147
|
+
|
148
|
+
# END of en Lang building
|
149
|
+
$tempdoc = " "
|
150
|
+
Dir.chdir($progdir) # change back to top program directory
|
151
|
+
|
152
|
+
# build the local Language hash file from the parts
|
153
|
+
startlangdir = File.join(LangDir,$lang)
|
154
|
+
#get a list of the files and subdirectories on the starting directory only
|
155
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
156
|
+
#loop through the list, ignore the files and add all new directories found
|
157
|
+
alanghash.each do |x|
|
158
|
+
#if a directory...
|
159
|
+
if(test(?d,x))
|
160
|
+
# add to the original list of directories
|
161
|
+
@@tmproot = x + "/**"
|
162
|
+
#adds the new ones to the array
|
163
|
+
blanghash = Dir[@@tmproot].entries.sort
|
164
|
+
blanghash.each do |x|
|
165
|
+
if(test(?d,x))
|
166
|
+
alanghash.push(x) #appends to the end of the array...
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
alanghash.each do |x|
|
172
|
+
#if it is a file...
|
173
|
+
if(!test(?d,x))
|
174
|
+
alanghash.delete(x)
|
175
|
+
else #it is a directory...
|
176
|
+
findfiles(x + "/**")
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
|
181
|
+
#writes the contents of doc into the variable
|
182
|
+
languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
183
|
+
|
184
|
+
|
185
|
+
$tempdoc = " "
|
186
|
+
|
187
|
+
Dir.chdir($progdir) # change back to top program directory
|
188
|
+
|
189
|
+
temp = eval( languagehashvariable )
|
190
|
+
|
191
|
+
$tempdoc = " "
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
=end
|
199
|
+
|
200
|
+
|
@@ -12,10 +12,12 @@ def installapplet
|
|
12
12
|
|
13
13
|
zf = Zip::ZipFile.new(fileName)
|
14
14
|
zf.sort.each {
|
15
|
+
|
15
16
|
|entry|
|
16
17
|
zf.extract(entry.to_s, entry.to_s)
|
17
18
|
}
|
18
|
-
@
|
19
|
+
@returninitateresults = initiateapplet(nametext)
|
20
|
+
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
19
21
|
|
20
22
|
rescue
|
21
23
|
@installapplettext = "unzip error - applet may not be installed correctly"
|
@@ -12,10 +12,16 @@ def installgemapplet
|
|
12
12
|
|entry|
|
13
13
|
zf.extract(entry.to_s, entry.to_s)
|
14
14
|
}
|
15
|
-
@
|
15
|
+
@nametextbase = File.basename(nametext)
|
16
|
+
@returninitateresults = initiateapplet(@nametextbase)
|
17
|
+
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
18
|
+
|
19
|
+
|
20
|
+
RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
|
16
21
|
|
17
22
|
rescue
|
18
23
|
@installapplettext = "unzip error - applet may not be installed correctly"
|
24
|
+
|
19
25
|
end # exception rescue
|
20
26
|
end
|
21
27
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,8 +3,17 @@ def removeapplet
|
|
3
3
|
require 'fileutils'
|
4
4
|
nametext = "%s" % [@a_removeapplet]
|
5
5
|
|
6
|
+
fileName = "installed/" + nametext + ".inf"
|
7
|
+
@appletremoveresult = removeappletvariables(nametext)
|
8
|
+
|
9
|
+
setuphelpaboutoptions # update the help about list
|
10
|
+
setuptinkerdocuments # update the document pull down list
|
11
|
+
runhelpwindow # update the help menu
|
12
|
+
showjumplinkoptions # update the application link menu
|
13
|
+
runrwdtinkerbackwindow # back to applet window
|
14
|
+
|
6
15
|
begin # exception trapped block
|
7
|
-
|
16
|
+
|
8
17
|
count = 0
|
9
18
|
fd = File.open(fileName,"r")
|
10
19
|
|
@@ -19,11 +28,13 @@ def removeapplet
|
|
19
28
|
count = 1
|
20
29
|
}
|
21
30
|
fd.close
|
31
|
+
|
32
|
+
|
22
33
|
|
23
34
|
FileUtils.rm_rf( fileName)
|
24
|
-
|
25
|
-
|
26
|
-
@removeapplettext = "applet files removed!
|
35
|
+
|
36
|
+
|
37
|
+
@removeapplettext = "applet files removed!" + " " + @appletremoveresult
|
27
38
|
|
28
39
|
rescue
|
29
40
|
@removeapplettext = "\n" + "error"
|
@@ -0,0 +1,52 @@
|
|
1
|
+
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#*
|
6
|
+
#* This library is free software; you can redistribute it and/or
|
7
|
+
#* modify it under the terms of the GNU General Public
|
8
|
+
#* License as published by the Free Software Foundation; either
|
9
|
+
#* .
|
10
|
+
#*
|
11
|
+
#* These files are distributed in the hope that they will be useful,
|
12
|
+
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
#* General Public License for more details.
|
15
|
+
#*
|
16
|
+
#* You should have received a copy of the GNU General Public
|
17
|
+
#* License along with these files; if not, write to the Free Software
|
18
|
+
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#*
|
20
|
+
#* For further information please contact the author by e-mail
|
21
|
+
#* at "steven@superant.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
def removeappletvariables(tempremovename)
|
25
|
+
|
26
|
+
begin # exception trapped block
|
27
|
+
|
28
|
+
$stderr.puts "in removeappletvariables"
|
29
|
+
|
30
|
+
# removefileinf = File.open(tempremove){|f| f.read}
|
31
|
+
|
32
|
+
removearray = [1 , 2]
|
33
|
+
temp = tempremovename.gsub("-","_")
|
34
|
+
removemethod = temp.gsub(".","_")
|
35
|
+
|
36
|
+
|
37
|
+
send "#{removemethod}"
|
38
|
+
|
39
|
+
tmpremoveapplet = " successfull applet variable removal "
|
40
|
+
|
41
|
+
rescue
|
42
|
+
tmpremoveapplet = " file error - removeappletvariables"
|
43
|
+
|
44
|
+
end # exception rescue
|
45
|
+
|
46
|
+
return tmpremoveapplet
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/configuration/language.dist
CHANGED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.70
|
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"
|
@@ -14,6 +14,5 @@ LangDir = "lang"
|
|
14
14
|
$rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
|
15
15
|
Browser_Exe = 'mozilla '
|
16
16
|
$tinkerdocumentsarray +=["HowTo_Tinker.txt","rwdapplications.html","RubyWebDialogs.html"]
|
17
|
-
RwdTinkerVersion = "1.
|
18
|
-
|
19
|
-
|
17
|
+
RwdTinkerVersion = "1.70"
|
18
|
+
|
File without changes
|
data/ev/browser.rb
CHANGED
File without changes
|
data/ev/ftools.rb
CHANGED
File without changes
|
data/ev/mime.rb
CHANGED
File without changes
|
data/ev/net.rb
CHANGED
@@ -784,8 +784,8 @@ class HTTPServer
|
|
784
784
|
end
|
785
785
|
|
786
786
|
if (not remote) or (remote and (auth.nil? or auth.empty? or authenticate(auth, realm, req, resp)))
|
787
|
-
|
788
|
-
|
787
|
+
# $stderr.puts "#{count2} #{Time.new.strftime("%Y-%m-%d %H:%M:%S")} #{ip} #{req.user} #{req.request.to_s.strip}"
|
788
|
+
1 == 1
|
789
789
|
begin
|
790
790
|
yield(req, resp)
|
791
791
|
rescue Exception => e
|
data/ev/ruby.rb
CHANGED
File without changes
|
data/ev/rwd.rb
CHANGED
@@ -635,7 +635,7 @@ class RWDWindow
|
|
635
635
|
|
636
636
|
def initialize(rwd, window=nil)
|
637
637
|
rwd = rwd.join("\n") if rwd.kind_of?(Array)
|
638
|
-
|
638
|
+
|
639
639
|
if @@windows[rwd].nil?
|
640
640
|
@@windows[rwd] = {}
|
641
641
|
@@helpwindows[rwd] = {}
|
@@ -666,6 +666,8 @@ class RWDWindow
|
|
666
666
|
|
667
667
|
vars = vars.deep_dup
|
668
668
|
|
669
|
+
begin # error wrap
|
670
|
+
|
669
671
|
vars.each do |key, value|
|
670
672
|
if not key.empty?
|
671
673
|
if value.respond_to? "to_s"
|
@@ -721,6 +723,10 @@ class RWDWindow
|
|
721
723
|
|
722
724
|
html
|
723
725
|
end
|
726
|
+
|
727
|
+
rescue
|
728
|
+
$stderr.puts "error in RWDWindow - render method"
|
729
|
+
end
|
724
730
|
end
|
725
731
|
|
726
732
|
class RWDMessage < RWDWindow
|
@@ -763,8 +769,10 @@ class RWDDone < RWDWindow
|
|
763
769
|
end
|
764
770
|
|
765
771
|
class RWDialog
|
772
|
+
|
766
773
|
def initialize(xml)
|
767
|
-
@rwd_xml =
|
774
|
+
@rwd_xml = $rwd_gui_tinker
|
775
|
+
# change from default ev - was xml
|
768
776
|
@rwd_exitbrowser = false
|
769
777
|
@rwd_history = []
|
770
778
|
@rwd_ignore_vars = []
|
@@ -818,6 +826,7 @@ class RWDialog
|
|
818
826
|
help = false
|
819
827
|
back = false
|
820
828
|
tab = ""
|
829
|
+
@rwd_progress_thread = nil
|
821
830
|
@rwd_msgtype = nil if @rwd_progress_thread.nil?
|
822
831
|
@rwd_download = nil
|
823
832
|
@rwd_download_file = nil
|
@@ -833,7 +842,7 @@ class RWDialog
|
|
833
842
|
# Copy the vars from the window to vars. vars wil later on be copied to instance variables.
|
834
843
|
|
835
844
|
post.sort.each do |key, value|
|
836
|
-
puts
|
845
|
+
$stderr.puts "Post: #{key} -> #{value.from_html.inspect}" if $rwd_debug
|
837
846
|
|
838
847
|
vars[key] = value.from_html
|
839
848
|
end
|
@@ -910,7 +919,7 @@ class RWDialog
|
|
910
919
|
|
911
920
|
if (not back) or @rwd_call_after_back.include?(@rwd_action)
|
912
921
|
unless @rwd_action =~ /^rwd_/
|
913
|
-
puts
|
922
|
+
puts "Method: #{@rwd_action}(#{@rwd_args.join(", ")})" if $rwd_debug
|
914
923
|
if methods.include?(@rwd_action)
|
915
924
|
method(@rwd_action).call(*@rwd_args)
|
916
925
|
else
|
@@ -948,7 +957,7 @@ class RWDialog
|
|
948
957
|
# just ignore.
|
949
958
|
|
950
959
|
vars.sort.each do |key, value|
|
951
|
-
puts
|
960
|
+
puts "Pre: #{key} -> #{value.inspect}" if $rwd_debug
|
952
961
|
end
|
953
962
|
|
954
963
|
|
@@ -971,11 +980,18 @@ class RWDialog
|
|
971
980
|
res << RWDError.new(@rwd_msg).render(pda) if @rwd_msgtype == "error"
|
972
981
|
res << @rwd_msg if @rwd_msgtype == "text"
|
973
982
|
else
|
974
|
-
|
975
|
-
puts
|
976
|
-
|
977
|
-
|
978
|
-
|
983
|
+
puts "Window: #{@rwd_window}" if $rwd_debug
|
984
|
+
puts "Tab: #{@rwd_tab}" if $rwd_debug
|
985
|
+
|
986
|
+
begin # error block
|
987
|
+
if @rwd_window.empty?
|
988
|
+
@rwd_window = "main"
|
989
|
+
end
|
990
|
+
res << RWDWindow.new($rwd_gui_tinker, @rwd_window).render(pda, @rwd_refresh_action, vars, @rwd_switches, help, @rwd_tab)
|
991
|
+
rescue
|
992
|
+
$stderr.puts "error in render"
|
993
|
+
end
|
994
|
+
end
|
979
995
|
end
|
980
996
|
end
|
981
997
|
end
|
data/ev/sgml.rb
CHANGED
File without changes
|
data/ev/thread.rb
CHANGED
File without changes
|
data/ev/tree.rb
CHANGED
File without changes
|
data/ev/xml.rb
CHANGED
File without changes
|
data/extras/rconftool.rb
CHANGED
File without changes
|
data/extras/zip/ioextras.rb
CHANGED
File without changes
|
data/extras/zip/stdrubyext.rb
CHANGED
File without changes
|
File without changes
|
data/extras/zip/zip.rb
CHANGED
File without changes
|
data/extras/zip/zipfilesystem.rb
CHANGED
File without changes
|
data/extras/zip/ziprequire.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/init.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
19
|
#*
|
20
20
|
#* For further information please contact the author by e-mail
|
21
|
-
#* at "
|
21
|
+
#* at "smalllinux@gmail.com".
|
22
22
|
#***********************************************************************/
|
23
23
|
|
24
24
|
require "ev/rwd"
|
@@ -234,8 +234,8 @@ Rconftool::install(configdist,confignew) #integrates new file with old
|
|
234
234
|
end
|
235
235
|
|
236
236
|
# gui variable is done
|
237
|
-
guiRWD =
|
238
|
-
|
237
|
+
guiRWD = ""
|
238
|
+
$rwd_gui_tinker = $tempdoc
|
239
239
|
require 'socket' # Network stuff
|
240
240
|
host = "127.0.0.1"
|
241
241
|
port = $port
|
@@ -273,5 +273,5 @@ Rconftool::install(configdist,confignew) #integrates new file with old
|
|
273
273
|
|
274
274
|
end
|
275
275
|
|
276
|
-
|
277
|
-
RwdTinker.new(
|
276
|
+
|
277
|
+
RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program
|
File without changes
|
File without changes
|
File without changes
|
data/lib/temp.rb
CHANGED
File without changes
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
File without changes
|
File without changes
|
data/rwd_files/Readme.txt
CHANGED
File without changes
|
File without changes
|
data/rwd_files/favicon.ico
CHANGED
File without changes
|
data/rwd_files/rdoc-style.css
CHANGED
File without changes
|
File without changes
|
data/rwd_files/tinker.png
CHANGED
File without changes
|
data/rwdconfig.dist
CHANGED
@@ -14,6 +14,8 @@ $testharness=true
|
|
14
14
|
$tinkerhelpaboutarray = ["Tinker"]
|
15
15
|
##NAME:$tinkerdocumentsarray:0
|
16
16
|
$tinkerdocumentsarray = ["Readme.txt"]
|
17
|
-
|
18
|
-
|
17
|
+
##NAME:$tinkeruninstallarray:0
|
18
|
+
$tinkeruninstallarray = ["Tinker"]
|
19
|
+
##NAME:JumpLink:0
|
20
|
+
JumpLink = Hash.new { |hh, kk| hh[kk] = "ERROR: link not found: #{kk.inspect}."; hh[kk] }
|
19
21
|
|
data/tests/checkdepends.sh
CHANGED
File without changes
|
data/tests/cleancnf.sh
CHANGED
File without changes
|
data/tests/makedist.rb
CHANGED
File without changes
|
data/tests/rdep.rb
CHANGED
File without changes
|
data/tests/totranslate.lang
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rwdtinker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "1.
|
4
|
+
version: "1.70"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Gibson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-31 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -41,6 +41,8 @@ files:
|
|
41
41
|
- code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb
|
42
42
|
- code/superant.com.rwdtinkerbackwindow/listzips.rb
|
43
43
|
- code/superant.com.rwdtinkerbackwindow/network.rb
|
44
|
+
- code/superant.com.rwdtinkerbackwindow/initiateapplets.rb
|
45
|
+
- code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb
|
44
46
|
- code/superant.com.rwdtinkerbackwindow/removeapplet.rb
|
45
47
|
- code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb
|
46
48
|
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|