rubyslippers 1.07 → 1.08
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +20 -7
- data/code/01rwdcore/02helptexthashbegin.rb +10 -0
- data/code/01rwdcore/03helptexthash.rb +18 -20
- data/code/01rwdcore/runopentinkerdocument.rb +1 -1
- data/code/superant.com.rubyslippers/0uninstallapplet.rb +1 -1
- data/code/superant.com.rubyslippers/gemserve.rb +0 -0
- data/code/superant.com.rubyslippers/gemwhich.rb +1 -1
- data/code/superant.com.rubyslippers/loadconfigurationrecord.rb +8 -24
- data/code/superant.com.rubyslippers/loadconfigurationvariables.rb +8 -8
- data/code/superant.com.rubyslippers/saveconfigurationrecord.rb +2 -2
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +62 -132
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/rwdtinker.dist +5 -8
- data/configuration/tinkerwin2variables.dist +13 -7
- data/configuration/{wrubyslippers-1.07.dist → wrubyslippers.dist} +10 -10
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/91viewconfiguration.rwd +27 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +59 -163
- data/installed/{wrubyslippers-1.07.inf → wrubyslippers.inf} +7 -7
- data/lang/en/rubyslippers/en.po +21 -0
- data/lang/en/rwdcore/en.po +166 -0
- data/lang/es/rubyslippers/es.po +21 -0
- data/lang/es/rwdcore/es.po +172 -0
- data/lang/fr/rubyslippers/fr.po +21 -0
- data/lang/fr/rwdcore/fr.po +166 -0
- data/lang/hi/rwdcore/hi.po +170 -0
- data/lang/ja/rubyslippers/ja.po +21 -0
- data/lang/ja/rwdcore/ja.po +168 -0
- data/lang/nl/rubyslippers/nl.po +21 -0
- data/lang/nl/rwdcore/nl.po +166 -0
- data/lib/rconftool.rb +13 -6
- data/lib/rwd/net.rb +15 -4
- data/lib/rwd/ruby.rb +1 -1
- data/lib/rwd/rwd.rb +103 -620
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdcodedir.rb +56 -0
- data/lib/rwdtinker/rwdguidir.rb +57 -0
- data/lib/rwdtinker/rwdlangdir.rb +60 -0
- data/lib/rwdtinker/rwdtinkertools.rb +25 -0
- data/rwd_files/HowTo_RubySlippers.txt +14 -0
- data/rwd_files/HowTo_Tinker.txt +37 -7
- data/rwd_files/Tinkerhelptexthash.txt +81 -0
- data/rwd_files/log/rwdtinker.log +2 -0
- data/rwdconfig.dist +14 -13
- data/{rubyslippers.rb → rwdtinker.rb} +0 -0
- data/tests/makedist-tinkerbellw.rb +58 -0
- data/tests/makedist-wrubyslippers.rb +8 -5
- data/tests/makedist.rb +2 -2
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
- data/zips/rwdwhypernote-0.15.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/rwdwmpd-0.07.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/tinkerbellw-0.03.zip +0 -0
- data/zips/wrubyslippers-1.08.zip +0 -0
- metadata +37 -26
- data/code/01rwdcore/04helptextend.rb +0 -6
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
- data/configuration/language.dist +0 -8
- data/configuration/rwdapplicationidentity.dist +0 -3
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/92viewconfiguration.rwd +0 -45
- data/lang/en/rubyslippers/languagefile.rb +0 -10
- data/lang/en/rwdcore/languagefile.rb +0 -58
- data/lang/es/rubyslippers/languagefile.rb +0 -7
- data/lang/es/rwdcore/languagefile-es.rb +0 -62
- data/lang/fr/rubyslippers/languagefile.rb +0 -6
- data/lang/fr/rwdcore/languagefile.rb +0 -64
- data/lang/jp/rubyslippers/languagefile.rb +0 -6
- data/lang/jp/rwdcore/languagefile.rb +0 -72
- data/lang/nl/rubyslippers/languagefile.rb +0 -6
- data/lang/nl/rwdcore/languagefile.rb +0 -75
- data/zips/rwdwaddresses-1.05.zip +0 -0
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwgutenberg-0.09.zip +0 -0
- data/zips/rwdwschedule-1.04.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
data/Readme.txt
CHANGED
@@ -19,13 +19,6 @@ ruby init.rb
|
|
19
19
|
Then point your web browser to:
|
20
20
|
http://localhost:7705/
|
21
21
|
|
22
|
-
Change language at:
|
23
|
-
|
24
|
-
configuration/language.dist
|
25
|
-
|
26
|
-
Change to Windows XP directory structure at:
|
27
|
-
configuration/tinkerwin2variables.dist
|
28
|
-
|
29
22
|
== Viewing installed Applets:
|
30
23
|
|
31
24
|
Go to "List Scripts" tab
|
@@ -234,6 +227,26 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
234
227
|
Thanks, Steven Gibson
|
235
228
|
|
236
229
|
== Changelog
|
230
|
+
Version 1.77
|
231
|
+
Fixed zips location to be relative or absolute
|
232
|
+
Made themes loadable
|
233
|
+
|
234
|
+
Version 1.76
|
235
|
+
Move rwd code files into lib directory - bug - 21886
|
236
|
+
change tab name list applets - bug - 21864
|
237
|
+
change extra folder to be lib folder - bug 21887
|
238
|
+
remove duplicate intall applet code - bug 21885
|
239
|
+
On Menu tab/Selection Tab - add help button - bug 21884
|
240
|
+
clean up directory structure in gui directory - bug 21882
|
241
|
+
|
242
|
+
Version 1.75
|
243
|
+
change rwd.rb to use UTF-8 for web pages
|
244
|
+
add language load for applets
|
245
|
+
|
246
|
+
Version 1.74
|
247
|
+
remove remote control from help
|
248
|
+
more dependable gui loading for applets
|
249
|
+
|
237
250
|
Version 1.73
|
238
251
|
more debug info in initiateapplet
|
239
252
|
remove gutenberg lang translations
|
@@ -2,3 +2,13 @@
|
|
2
2
|
|
3
3
|
Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
4
4
|
helpmessage = {
|
5
|
+
:general_help => "You can work with Applets: go to 'Selection tab', <br>
|
6
|
+
On that back screen you will find:<br>
|
7
|
+
List Applets: you can see and delete installed applets<br>
|
8
|
+
List Zips: you can see lists of applets that you can install<br>
|
9
|
+
Edit Configuration: You can view the rwdtinker configuration and change it<br>
|
10
|
+
Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
|
11
|
+
"
|
12
|
+
|
13
|
+
}
|
14
|
+
helpmessage.each { |kk, vv| Helptext[kk] = vv }
|
@@ -1,23 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# this code loads the help text
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
3
|
+
|
4
|
+
tmphelpfilename = "Tinkerhelptexthash.txt"
|
5
|
+
tmphelpdir = "rwd_files"
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
|
10
|
+
fileName = File.join(tmphelpdir ,tmphelpfilename )
|
11
|
+
|
12
|
+
|
13
|
+
fd = File.open(fileName,"r")
|
14
|
+
tmphelptext = fd.read
|
15
|
+
fd.close
|
16
|
+
eval tmphelptext
|
17
|
+
rescue SystemCallError, StandardError
|
18
|
+
$rwdtinkerlog.error "Tinkerbell help file load: system call error: "
|
19
|
+
end # exception rescue
|
15
20
|
|
16
|
-
|
17
|
-
:documents_rwdtinker => "<b>Documents:
|
18
|
-
<p>
|
19
21
|
|
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
|
-
"
|
23
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# open document for rwdtinker application
|
2
2
|
def runopentinkerdocument
|
3
3
|
|
4
|
-
tinkerdocumenturl = "http://localhost
|
4
|
+
tinkerdocumenturl = "http://localhost:#{$port}/" + @a_tinkerdocumentinput
|
5
5
|
Thread.new( tinkerdocumenturl){ |t| `#{Browser_Exe} #{tinkerdocumenturl}` }
|
6
6
|
end
|
7
7
|
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#gemwhich command
|
2
2
|
def rungemwhichcommand
|
3
3
|
|
4
|
-
commandtext = "
|
4
|
+
commandtext = "gem which " + @a_gemwhichcommandinput.to_s + " " + @a_gemcommandoptioninput.to_s
|
5
5
|
commandtemp = $xpcommand + commandtext
|
6
6
|
begin # exception trapped block
|
7
7
|
|
@@ -3,37 +3,21 @@
|
|
3
3
|
|
4
4
|
require 'fileutils'
|
5
5
|
|
6
|
-
@a_rsconfigurationfilename = "wrubyslippers
|
6
|
+
@a_rsconfigurationfilename = "wrubyslippers.cnf"
|
7
7
|
|
8
8
|
|
9
9
|
begin # exception trapped block
|
10
10
|
|
11
|
-
|
12
|
-
fileName = File.join(ConfigurationDir,
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, @a_rsconfigurationfilename )
|
13
13
|
|
14
14
|
|
15
15
|
fd = File.open(fileName,"r")
|
16
|
-
@
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
@a_rsconfigline6 = fd.readline.chomp
|
22
|
-
@a_rsconfigline7 =fd.readline.chomp
|
23
|
-
@a_rsconfigline8 = fd.readline.chomp
|
24
|
-
@a_rsconfigline9 = fd.readline.chomp
|
25
|
-
@a_rsconfigline10 = fd.readline.chomp
|
26
|
-
@a_rsconfigline11 = fd.readline.chomp
|
27
|
-
@a_rsconfigline12 = fd.readline.chomp
|
28
|
-
@a_rsconfigline13 = fd.readline.chomp
|
29
|
-
@a_rsconfigline14 = fd.readline.chomp
|
30
|
-
@a_rsconfigline15 = fd.readline.chomp
|
31
|
-
@a_rsconfigline16 = fd.readline.chomp
|
32
|
-
while ! fd.eof?
|
33
|
-
@extrarsconfigdatadisplay = fd.readline
|
34
|
-
end
|
35
|
-
fd.close
|
36
|
-
rescue SystemCallError, StandardError
|
16
|
+
@a_rsconfigdata = fd.read
|
17
|
+
|
18
|
+
fd.close
|
19
|
+
|
20
|
+
rescue SystemCallError, StandardError
|
37
21
|
$stderr.print "system call error: " + $!
|
38
22
|
end # exception rescue
|
39
23
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# this method loads the on screen variables into the running class
|
2
2
|
def loadrubyslippersconfigurationvariables
|
3
3
|
|
4
|
-
configfiletoload = File.join(ConfigurationDir,"
|
4
|
+
configfiletoload = File.join(ConfigurationDir,"wrubyslippers.cnf")
|
5
5
|
begin
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
rescue
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
load configfiletoload
|
7
|
+
|
8
|
+
$rwdtinkerlog.info "loadrubyslippersconfigurationvariables: Config Variables loaded"
|
9
|
+
rescue
|
10
|
+
|
11
|
+
$rwdtinkerlog.error "loadrubyslippersconfigurationvariables: loading error"
|
12
|
+
end
|
13
13
|
end
|
@@ -2,8 +2,8 @@
|
|
2
2
|
def saverubyslippersconfiguration
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
|
-
newname = "
|
6
|
-
newdata
|
5
|
+
newname = "wrubyslippers.cnf" # grab the filename to create
|
6
|
+
newdata = @a_rsconfigdata
|
7
7
|
|
8
8
|
begin # exception trapped block
|
9
9
|
fileName = File.join( ConfigurationDir, newname )
|
@@ -28,10 +28,7 @@ def initiateapplet(nametextlocal)
|
|
28
28
|
|
29
29
|
debuginitiate = 0
|
30
30
|
|
31
|
-
|
32
|
-
$stderr.puts "starting config load with: #{nametextlocal}"
|
33
|
-
end
|
34
|
-
|
31
|
+
$rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
|
35
32
|
|
36
33
|
Dir.chdir($progdir ) #changes the current working directory
|
37
34
|
|
@@ -45,13 +42,10 @@ begin
|
|
45
42
|
|
46
43
|
eval configfileload #load config file
|
47
44
|
|
48
|
-
|
49
|
-
|
50
45
|
rescue
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
end
|
46
|
+
|
47
|
+
$rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
|
48
|
+
|
55
49
|
debuginitiate += 1
|
56
50
|
end
|
57
51
|
$tempdoc = " "
|
@@ -59,80 +53,24 @@ $tempdoc = " "
|
|
59
53
|
Dir.chdir($progdir) # change back to top program directory
|
60
54
|
|
61
55
|
# build the English Language hash file from the parts
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
66
|
-
#loop through the list, ignore the files and add all new directories found
|
67
|
-
alanghash.each do |x|
|
68
|
-
#if a directory...
|
69
|
-
if(test(?d,x))
|
70
|
-
# add to the original list of directories
|
71
|
-
@@tmproot = x + "/**"
|
72
|
-
#adds the new ones to the array
|
73
|
-
blanghash = Dir[@@tmproot].entries.sort
|
74
|
-
blanghash.each do |x|
|
75
|
-
if(test(?d,x))
|
76
|
-
alanghash.push(x) #appends to the end of the array...
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
alanghash.each do |x|
|
82
|
-
#if it is a file...
|
83
|
-
if(!test(?d,x))
|
84
|
-
alanghash.delete(x)
|
85
|
-
else #it is a directory...
|
86
|
-
findfiles(x + "/**")
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
56
|
+
require 'lib/rwdtinker/rwdlangdir'
|
57
|
+
|
58
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
|
90
59
|
|
91
60
|
#writes the contents of doc into the languagehashvariable
|
92
|
-
|
93
61
|
|
94
|
-
languagehashvariable =
|
62
|
+
languagehashvariable = tempdoc
|
95
63
|
|
96
64
|
# END of en Lang building
|
97
65
|
$tempdoc = " "
|
98
66
|
Dir.chdir($progdir) # change back to top program directory
|
99
67
|
|
100
68
|
# build the local Language hash file from the parts
|
101
|
-
|
102
|
-
#get a list of the files and subdirectories on the starting directory only
|
103
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
104
|
-
#loop through the list, ignore the files and add all new directories found
|
105
|
-
alanghash.each do |x|
|
106
|
-
#if a directory...
|
107
|
-
if(test(?d,x))
|
108
|
-
# add to the original list of directories
|
109
|
-
@@tmproot = x + "/**"
|
110
|
-
#adds the new ones to the array
|
111
|
-
blanghash = Dir[@@tmproot].entries.sort
|
112
|
-
blanghash.each do |x|
|
113
|
-
if(test(?d,x))
|
114
|
-
alanghash.push(x) #appends to the end of the array...
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
alanghash.each do |x|
|
120
|
-
#if it is a file...
|
121
|
-
if(!test(?d,x))
|
122
|
-
alanghash.delete(x)
|
123
|
-
else #it is a directory...
|
124
|
-
findfiles(x + "/**")
|
125
|
-
end
|
126
|
-
end
|
69
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
|
127
70
|
|
71
|
+
#writes the contents of doc into the variable
|
128
72
|
|
129
|
-
|
130
|
-
|
131
|
-
languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
$tempdoc = " "
|
73
|
+
languagehashvariable = languagehashvariable + tempdoc
|
136
74
|
|
137
75
|
Dir.chdir($progdir) # change back to top program directory
|
138
76
|
|
@@ -143,87 +81,63 @@ $tempdoc = " "
|
|
143
81
|
begin # error trap
|
144
82
|
|
145
83
|
# build the actual GUI from the gui parts
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
#use this new dir find to add to the original list of directories
|
154
|
-
@@root = x + "/**"
|
155
|
-
#adds the new ones to the array
|
156
|
-
b = Dir[@@root].entries.sort
|
157
|
-
b.each do |x|
|
158
|
-
if(test(?d,x))
|
159
|
-
a.push(x) #appends to the end of the array...
|
160
|
-
end
|
161
|
-
end
|
162
|
-
end
|
163
|
-
end
|
164
|
-
a.each do |x|
|
165
|
-
#if it is a file...
|
166
|
-
if(!test(?d,x))
|
167
|
-
a.delete(x)
|
168
|
-
|
169
|
-
else #it is a directory...
|
170
|
-
loadguifile(x + "/**")
|
171
|
-
|
172
|
-
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
$rwd_gui_tinker = $tempdoc
|
177
|
-
|
84
|
+
tempdoc = " "
|
85
|
+
|
86
|
+
require 'lib/rwdtinker/rwdguidir'
|
87
|
+
|
88
|
+
tempdoc = RwdtinkerTools.findguifiles(GuiDir)
|
89
|
+
|
90
|
+
$rwd_gui_tinker = tempdoc
|
178
91
|
|
179
92
|
rescue
|
180
93
|
$rwd_gui_tinker = tempguistorage # restore old gui
|
181
|
-
|
182
|
-
|
183
|
-
end
|
94
|
+
|
95
|
+
$rwdtinkerlog.error "error in initiateapplets - gui building"
|
184
96
|
|
185
97
|
debuginitiate += 1
|
186
98
|
end
|
187
99
|
|
188
100
|
begin # error trap
|
189
|
-
# now load in the code files
|
101
|
+
# now load in the code files
|
190
102
|
|
191
|
-
$tempdoc = ""
|
192
|
-
tempcodeinstallline = ""
|
103
|
+
$tempdoc = ""
|
104
|
+
tempcodeinstallline = ""
|
193
105
|
|
194
|
-
|
106
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
107
|
+
|
108
|
+
$rwdtinkerlog.debug "initateapplets: loading file: #{@fileName}"
|
195
109
|
|
196
|
-
|
110
|
+
tmpfilearray = File.readlines(@fileName)
|
197
111
|
|
198
|
-
|
112
|
+
tmpfilearray.each do |line|
|
199
113
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
end
|
114
|
+
tempcodeinstallline = line.chomp
|
115
|
+
if tempcodeinstallline.include?('code/')
|
116
|
+
findfiles(tempcodeinstallline + "/**")
|
117
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
118
|
+
end
|
119
|
+
end
|
206
120
|
|
207
121
|
|
208
122
|
rescue
|
209
|
-
|
210
|
-
|
211
|
-
|
123
|
+
|
124
|
+
$rwdtinkerlog.error "error in initiateapplets - code building"
|
125
|
+
|
212
126
|
debuginitiate += 1
|
213
127
|
|
214
128
|
|
215
129
|
end
|
216
130
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
131
|
+
setuphelpaboutoptions # update the help about list
|
132
|
+
setuptinkerdocuments # update the document pull down list
|
133
|
+
runhelpwindow # update the help menu
|
134
|
+
showjumplinkoptions # update the application link menu
|
135
|
+
runrwdtinkerbackwindow # back to applet window
|
136
|
+
|
137
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
138
|
+
tempresult = @fileName
|
225
139
|
|
226
|
-
return " applet loading successful " + tempresult
|
140
|
+
return " applet loading successful " + tempresult
|
227
141
|
|
228
142
|
|
229
143
|
|
@@ -236,5 +150,21 @@ return " applet loading successful " + tempresult
|
|
236
150
|
end
|
237
151
|
|
238
152
|
|
153
|
+
def findfiles(d)
|
154
|
+
a = Array.new(Dir[d].entries.sort)
|
155
|
+
#loop through and get the files names
|
156
|
+
a.each do |x|
|
157
|
+
#adjust the filters to the files you want to see...
|
158
|
+
if(!test(?d,x))
|
159
|
+
# only rwd files
|
160
|
+
if x =~ /rb|rwd|txt/
|
161
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
162
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
163
|
+
fileA.close
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
239
169
|
|
240
170
|
|