rwdruby 1.05

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. data/Readme.txt +462 -0
  2. data/bin/rwdruby +19 -0
  3. data/code/01rwdcore/01rwdcore.rb +29 -0
  4. data/code/01rwdcore/02helptexthashbegin.rb +4 -0
  5. data/code/01rwdcore/03helptexthash.rb +23 -0
  6. data/code/01rwdcore/04helptextend.rb +6 -0
  7. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  8. data/code/01rwdcore/openhelpwindow.rb +31 -0
  9. data/code/01rwdcore/returntomain.rb +10 -0
  10. data/code/01rwdcore/rundocuments.rb +10 -0
  11. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  12. data/code/01rwdcore/runhelpabout.rb +10 -0
  13. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  14. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  15. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  16. data/code/01rwdcore/selectiontab.rb +9 -0
  17. data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
  18. data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
  19. data/code/01rwdcore/test_cases.rb +109 -0
  20. data/code/01rwdcore/test_harness.rb +13 -0
  21. data/code/01rwdcore/uploadreturns.rb +62 -0
  22. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  23. data/code/superant.com.rwdshell/0runrefreshacpi.rb +7 -0
  24. data/code/superant.com.rwdshell/0uninstallapplet.rb +16 -0
  25. data/code/superant.com.rwdshell/changescriptname.rb +16 -0
  26. data/code/superant.com.rwdshell/clearrubyscreendisplay.rb +7 -0
  27. data/code/superant.com.rwdshell/clearscriptscreendisplay.rb +9 -0
  28. data/code/superant.com.rwdshell/deletescriptrecord.rb +20 -0
  29. data/code/superant.com.rwdshell/helptexthashshell.rb +31 -0
  30. data/code/superant.com.rwdshell/listrubyscripts.rb +13 -0
  31. data/code/superant.com.rwdshell/listscripts.rb +13 -0
  32. data/code/superant.com.rwdshell/loadconfigurationrecord.rb +26 -0
  33. data/code/superant.com.rwdshell/loadconfigurationvariables.rb +14 -0
  34. data/code/superant.com.rwdshell/loadrubyscriptrecord.rb +20 -0
  35. data/code/superant.com.rwdshell/loadscriptrecord.rb +20 -0
  36. data/code/superant.com.rwdshell/openhelpwindowshell.rb +33 -0
  37. data/code/superant.com.rwdshell/playrubyscript.rb +23 -0
  38. data/code/superant.com.rwdshell/playscript.rb +23 -0
  39. data/code/superant.com.rwdshell/refresh.rb +19 -0
  40. data/code/superant.com.rwdshell/refreshacpi.rb +16 -0
  41. data/code/superant.com.rwdshell/rubyeval.rb +28 -0
  42. data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +10 -0
  43. data/code/superant.com.rwdshell/runrwdshellwindow.rb +12 -0
  44. data/code/superant.com.rwdshell/rwdtinkerversion.rb +10 -0
  45. data/code/superant.com.rwdshell/savechangedscript.rb +19 -0
  46. data/code/superant.com.rwdshell/saveconfigurationrecord.rb +18 -0
  47. data/code/superant.com.rwdshell/saverubyrecord.rb +19 -0
  48. data/code/superant.com.rwdshell/shelleval.rb +20 -0
  49. data/code/superant.com.rwdshell/test_cases.rb +45 -0
  50. data/code/superant.com.rwdshell/viewrubyscript.rb +18 -0
  51. data/code/superant.com.rwdshell/viewscript.rb +18 -0
  52. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  53. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +61 -0
  54. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +240 -0
  55. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +34 -0
  56. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  57. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  58. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +53 -0
  59. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +12 -0
  60. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +27 -0
  61. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +22 -0
  62. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  63. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  64. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  65. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +38 -0
  66. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  67. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  68. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  69. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  70. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  71. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  72. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  73. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +22 -0
  74. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  75. data/code/zz0applicationend/zz0end.rb +4 -0
  76. data/configuration/language.dist +8 -0
  77. data/configuration/rwdapplicationidentity.dist +3 -0
  78. data/configuration/rwdtinker.dist +18 -0
  79. data/configuration/rwdwruby-1.05.dist +24 -0
  80. data/configuration/tinkerwin2variables.dist +17 -0
  81. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  82. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  83. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  84. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  85. data/gui/frontwindowselections/wwselectionend.rwd +3 -0
  86. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  87. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  88. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  89. data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
  90. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  91. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  92. data/gui/helpaboutzend/helpscreenend.rwd +3 -0
  93. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  94. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  95. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  96. data/gui/tinkerbackwindows/superant.com.ashellscripts/1appname.rwd +5 -0
  97. data/gui/tinkerbackwindows/superant.com.ashellscripts/1rwdrubyeval.rwd +14 -0
  98. data/gui/tinkerbackwindows/superant.com.ashellscripts/2listplayscripts.rwd +17 -0
  99. data/gui/tinkerbackwindows/superant.com.ashellscripts/2listscripts.rwd +25 -0
  100. data/gui/tinkerbackwindows/superant.com.ashellscripts/3editscripts.rwd +26 -0
  101. data/gui/tinkerbackwindows/superant.com.ashellscripts/4scriptutilities.rwd +24 -0
  102. data/gui/tinkerbackwindows/superant.com.ashellscripts/6rwdshelleval.rwd +15 -0
  103. data/gui/tinkerbackwindows/superant.com.ashellscripts/98jumplinkcommands.rwd +17 -0
  104. data/gui/tinkerbackwindows/superant.com.ashellscripts/zbackend.rwd +6 -0
  105. data/gui/tinkerbackwindows/superant.com.refreshacpi/1appname.rwd +4 -0
  106. data/gui/tinkerbackwindows/superant.com.refreshacpi/2rwdrefresh.rwd +14 -0
  107. data/gui/tinkerbackwindows/superant.com.refreshacpi/3rwdacpirefresh.rwd +14 -0
  108. data/gui/tinkerbackwindows/superant.com.refreshacpi/81jumplinkcommands.rwd +17 -0
  109. data/gui/tinkerbackwindows/superant.com.refreshacpi/z9end.rwd +6 -0
  110. data/gui/tinkerbackwindows/superant.com.refreshwindow/rwdrefresh.rwd +13 -0
  111. data/gui/tinkerbackwindows/superant.com.refreshwindow/rwdrefreshacpi.rwd +11 -0
  112. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +5 -0
  113. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/44listplayscripts.rwd +19 -0
  114. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/45listscripts.rwd +25 -0
  115. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +30 -0
  116. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +32 -0
  117. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/94rwddiagnostics.rwd +16 -0
  118. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/98jumplinkcommands.rwd +17 -0
  119. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/zbackend.rwd +6 -0
  120. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  121. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  122. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  123. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  124. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  125. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  126. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  127. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
  128. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  129. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
  130. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
  131. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  132. data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
  133. data/init.rb +277 -0
  134. data/installed/rwdrubydata1.inf +6 -0
  135. data/installed/rwdwruby-1.05.inf +13 -0
  136. data/installed/temp.rb +1 -0
  137. data/lang/en/rwdcore/languagefile.rb +58 -0
  138. data/lang/es/rwdcore/languagefile-es.rb +62 -0
  139. data/lang/fr/rwdcore/languagefile.rb +64 -0
  140. data/lang/jp/rwdcore/languagefile.rb +72 -0
  141. data/lang/nl/rwdcore/languagefile.rb +75 -0
  142. data/lib/rconftool.rb +380 -0
  143. data/lib/rwd/browser.rb +123 -0
  144. data/lib/rwd/ftools.rb +174 -0
  145. data/lib/rwd/mime.rb +328 -0
  146. data/lib/rwd/net.rb +866 -0
  147. data/lib/rwd/ruby.rb +889 -0
  148. data/lib/rwd/rwd.rb +1942 -0
  149. data/lib/rwd/sgml.rb +236 -0
  150. data/lib/rwd/thread.rb +63 -0
  151. data/lib/rwd/tree.rb +371 -0
  152. data/lib/rwd/xml.rb +101 -0
  153. data/lib/zip/ioextras.rb +114 -0
  154. data/lib/zip/stdrubyext.rb +111 -0
  155. data/lib/zip/tempfile_bugfixed.rb +195 -0
  156. data/lib/zip/zip.rb +1378 -0
  157. data/lib/zip/zipfilesystem.rb +558 -0
  158. data/lib/zip/ziprequire.rb +61 -0
  159. data/rwd_files/HowTo_Ruby.txt +311 -0
  160. data/rwd_files/HowTo_Tinker.txt +471 -0
  161. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  162. data/rwd_files/Readme.txt +57 -0
  163. data/rwd_files/RubyWebDialogs.html +6 -0
  164. data/rwd_files/favicon.ico +0 -0
  165. data/rwd_files/rdoc-style.css +175 -0
  166. data/rwd_files/rwdapplications.html +54 -0
  167. data/rwd_files/tinker.png +0 -0
  168. data/rwdconfig.dist +21 -0
  169. data/rwdruby.rb +1 -0
  170. data/tests/RubyGauge.rb +179 -0
  171. data/tests/checkdepends.sh +4 -0
  172. data/tests/cleancnf.sh +6 -0
  173. data/tests/makedist-rwdwruby.rb +56 -0
  174. data/tests/makedist.rb +66 -0
  175. data/tests/rdep.rb +354 -0
  176. data/tests/totranslate.lang +93 -0
  177. data/zips/rwdwaddresses-1.05.zip +0 -0
  178. data/zips/rwdwcalc-0.61.zip +0 -0
  179. data/zips/rwdwfoldeditor-0.02.zip +0 -0
  180. data/zips/rwdwgutenberg-0.09.zip +0 -0
  181. data/zips/rwdwruby-1.05.zip +0 -0
  182. data/zips/rwdwschedule-1.04.zip +0 -0
  183. data/zips/temp.rb +1 -0
  184. data/zips/wrubyslippers-1.06.zip +0 -0
  185. metadata +245 -0
@@ -0,0 +1,61 @@
1
+ require 'zip/zip'
2
+
3
+ class ZipList
4
+ def initialize(zipFileList)
5
+ @zipFileList = zipFileList
6
+ end
7
+
8
+ def get_input_stream(entry, &aProc)
9
+ @zipFileList.each {
10
+ |zfName|
11
+ Zip::ZipFile.open(zfName) {
12
+ |zf|
13
+ begin
14
+ return zf.get_input_stream(entry, &aProc)
15
+ rescue Errno::ENOENT
16
+ end
17
+ }
18
+ }
19
+ raise Errno::ENOENT,
20
+ "No matching entry found in zip files '#{@zipFileList.join(', ')}' "+
21
+ " for '#{entry}'"
22
+ end
23
+ end
24
+
25
+
26
+ module Kernel
27
+ alias :oldRequire :require
28
+
29
+ def require(moduleName)
30
+ zip_require(moduleName) || oldRequire(moduleName)
31
+ end
32
+
33
+ def zip_require(moduleName)
34
+ return false if already_loaded?(moduleName)
35
+ get_resource(ensure_rb_extension(moduleName)) {
36
+ |zis|
37
+ eval(zis.read); $" << moduleName
38
+ }
39
+ return true
40
+ rescue Errno::ENOENT => ex
41
+ return false
42
+ end
43
+
44
+ def get_resource(resourceName, &aProc)
45
+ zl = ZipList.new($:.grep(/\.zip$/))
46
+ zl.get_input_stream(resourceName, &aProc)
47
+ end
48
+
49
+ def already_loaded?(moduleName)
50
+ moduleRE = Regexp.new("^"+moduleName+"(\.rb|\.so|\.dll|\.o)?$")
51
+ $".detect { |e| e =~ moduleRE } != nil
52
+ end
53
+
54
+ def ensure_rb_extension(aString)
55
+ aString.sub(/(\.rb)?$/i, ".rb")
56
+ end
57
+ end
58
+
59
+ # Copyright (C) 2002 Thomas Sondergaard
60
+ # rubyzip is free software; you can redistribute it and/or
61
+ # modify it under the terms of the ruby license.
@@ -0,0 +1,311 @@
1
+ = RwdRubyProgram
2
+
3
+ How to Use the Shell and ruby scripts with the Program (rwdRuby)
4
+
5
+ == What is is
6
+
7
+ rwdshell is a web brower interface to operating system shell commands
8
+
9
+
10
+ download from http://rubyforge.org/frs/?group_id=444
11
+
12
+ run shell commands
13
+
14
+
15
+ The GUI interface used is RubyWebDialogs
16
+
17
+
18
+ Start the program by typing<br>
19
+ ruby init.rb
20
+
21
+ Then point your web browser to:
22
+ http://localhost:7705/
23
+
24
+ == using shell commands
25
+
26
+
27
+
28
+ Enter the shell command you want to run for in the browser form and press execute.
29
+ After a second the browser should fill with the results of the command.
30
+ try ls, df, cat "filename", and other shell commands
31
+ You should be able to run one command after another
32
+
33
+
34
+
35
+ rwdshell scriptrunner is a web brower interface to operating system shell commands
36
+
37
+
38
+ 1. run shell commands
39
+ 2. run Ruby commands in the browser
40
+ 3. use a calculator
41
+ 4. Open brower windows with html documents
42
+
43
+ The GUI interface used is RubyWebDialogs
44
+
45
+
46
+ Start the program by typing
47
+ ruby init.rb
48
+
49
+ Then point your web browser to:
50
+ http://localhost:7705/
51
+
52
+
53
+ == To use a shell command
54
+
55
+
56
+ Enter the shell command you want to run for in the browser form and press execute.
57
+ After a second the browser should fill with the results of the command.
58
+ try ls, df, cat "filename", and other shell commands
59
+ You should be able to run one command after another
60
+
61
+
62
+ There are two ways to add scripts to rwdshell directory.
63
+
64
+
65
+
66
+ == Creating a script
67
+
68
+
69
+ 1. Use the "Create New Script" tab
70
+ <blockquote>
71
+ The first field is the most important. It is the filename that
72
+ will be created.
73
+ myshellscript
74
+
75
+ The following line for entry is a shell command.
76
+
77
+ The last line is for comment to describe the script
78
+ When you are finished press the CreateFile button
79
+
80
+
81
+ 2. Manually add an entry for a script
82
+
83
+ You can use a text editor to create a record
84
+ put information on separate lines. You can have as many lines as you want
85
+ name the file with caps and no spaces and end with .sh
86
+ mynextscript.sh
87
+
88
+ Save your file to the scripts/ subdirectory
89
+
90
+
91
+ == Viewing a recorded script entry:
92
+
93
+
94
+ * Go to "List Scripts" tab
95
+
96
+
97
+ You can get a list of all scripts by clicking the listfiles button
98
+
99
+ To see the text of a script
100
+ Type in the name of the script you want.
101
+
102
+ type it without the sh ending
103
+ myscript
104
+
105
+ Then click the "ViewScript" button
106
+
107
+ If it finds the script it will open it. It displays the text the search box.
108
+
109
+
110
+ == Ruby Commands
111
+
112
+
113
+ At the Ruby tab here are some commands you might try
114
+
115
+ print "hello" + "\n"
116
+
117
+ bar=46; print "%s" % bar, "\n"
118
+
119
+ "abc".each_byte{|c| printf "<%c>", c}; print "\n"
120
+
121
+ "a\nb\nc\n".each_line{|l| print l}
122
+
123
+ for l in "a\nb\nc\n" ; print l ; end
124
+
125
+ print "%s" % "abcdef".length
126
+ wser window, or in another browser tab.
127
+
128
+ ==Refreshacpi
129
+
130
+ This applet will open a replacement window in this same browser screen
131
+ You should see that new window refresh every 5 seconds with the date and time
132
+ and acpi status if you have it
133
+ You can return to this screen by clicking on back arrows or the cancel button
134
+ The command to change to work on non Linux systems is in the refresh.rb file
135
+
136
+ == Progressbar demo
137
+
138
+ == Syslog tail
139
+
140
+
141
+ You will probably have to run ruby init.rb as root to read the syslog.log
142
+
143
+ == Apache Access and Error log tail
144
+
145
+
146
+ == Using over a Network
147
+
148
+ To serve the application over your local LAN,change the last line in the
149
+ init.rb file to something like:
150
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
151
+ Then you should be able to login at: http://yourhostname:8080
152
+
153
+ You have to authorize yourself. The .rwuids example is a string with
154
+ the name of the authorization file, relative to the home directory
155
+ of the user that started the service. This file has to be in the form of:
156
+
157
+ user1 = password
158
+ user2 = pass phrase
159
+
160
+ Thus the file .rwduids might contain:
161
+
162
+ erik = secret
163
+
164
+
165
+ == Requirements:
166
+ RubyWebDialogs - I am using 0.0.11 2004-3-9<br>
167
+ This package you downloaded rwddemo should have a runtime version of
168
+ the needed rubywebdialog files<br>
169
+
170
+ Ruby I am using version 1.8.2
171
+
172
+ I have tested this under Linux-Debian kernel 2.6.9
173
+
174
+ == Operation:
175
+ The code files reside in the code directory and are combined before
176
+ the main Class is loaded
177
+
178
+ The rwd files in gui are combined before the gui is activated
179
+
180
+ == Installing:
181
+
182
+ unzip the file
183
+ then cd to the directory
184
+ unzip rwdashell-x.y.zip
185
+
186
+
187
+ == Trouble shooting:
188
+
189
+ If the program is not working, try looking at the ev subdirectory. That is where
190
+ the runtime of rubywebdialogs are.
191
+
192
+ for long term installation, I would suggest putting most files in a lib directory
193
+ like /usr/lib/rwdshell
194
+ then make a writable directory the local directory for command files to be written
195
+ like ~/rwdshell
196
+
197
+
198
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
199
+
200
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
201
+
202
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
203
+
204
+
205
+ For more information see:
206
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
207
+
208
+ For more information about RubyWebDialogs see:<br>
209
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
210
+
211
+ Thanks, Steven Gibson
212
+
213
+ ==
214
+ Version 1.05
215
+ combine acpi into rwdshell and rename to ruby
216
+ make refresh tab with date/time like a stopwatch
217
+
218
+ Version 1.04
219
+ Bug fixes to get applet loading and unloading working better
220
+
221
+ Version 1.03
222
+ big refactoring to work with rwdtinker 1.70
223
+ now should load and unload live, without restarting rwdtinker
224
+ moved tab of ruby eval to first spot
225
+
226
+ Version 1.02
227
+ fix ruby eval screen
228
+
229
+ version 1.01
230
+ updated to rwdtinker 1.01
231
+ fixed menu selection bug
232
+
233
+ Version 1.00
234
+ corrected edit configuration screen
235
+ updated for rwdtinker 1.66
236
+ new helpabout
237
+ new documents list
238
+
239
+ Version 0.99
240
+ corrected Ruby script edit
241
+ added help to some shell tabs
242
+ updated for rwdtinker 1.62 - improve distro release script
243
+ changed selection screen to use new hash method
244
+ updated diagnostic tab
245
+
246
+ version 0.98
247
+ updated for rwdtinker version 1.61
248
+ add in test harness
249
+
250
+ version 0.97
251
+ correct bug in shell command eval
252
+ beginning to add context help
253
+ updated for rwdtinker version 1.58
254
+ added rconftool use to update configuration files
255
+ changed applets removal to not use external rm
256
+ removed version number from directory name
257
+
258
+ version 0.96
259
+ updated for rwdtinker 1.56
260
+ first debian version
261
+ correct execute shell script to work with changed scripts directory
262
+
263
+ version 0.95
264
+ added ruby script running
265
+ add back window for more control tabs
266
+ beginning of context sensitive help
267
+ wider text boxes for configuration information
268
+ updated for rwdtinker 1.51 - finds available port and remote control
269
+ updated for rwdtinker 1.52 - can install applets from Gems
270
+
271
+ version 0.94
272
+ updated for rwdtinker 1.44 - refactor gui directory structure
273
+
274
+ version 0.93
275
+ updated for rwdtinker 1.42 - semi-live updating
276
+
277
+ version 0.92
278
+ added script editing
279
+ script deletion
280
+ script renaming
281
+ added English module to RubyEval
282
+ added Env module to RubyEval
283
+ combined scriptrunner HowTo into shell HowTo
284
+ Changed order of tabs so script are first
285
+
286
+ version 0.91
287
+ updated for rwdtinker version 1.3
288
+
289
+ Version 0.9
290
+ updated for rwdtinker version 1.23
291
+
292
+ Version 0.7
293
+ includes script playing and Ruby eval window.
294
+
295
+ Version 0.6
296
+ added script runner
297
+ list scripts
298
+ create scripts
299
+ Replaced Readme.txt with HowTo.html
300
+
301
+ Version 0.3
302
+ Changed directory structure to work with rwdtinker 0.9 or greater.
303
+ Improved the filename selection
304
+ Changed the layout on the list screen
305
+
306
+
307
+
308
+
309
+
310
+
311
+
@@ -0,0 +1,471 @@
1
+ = RwdTinker framework for RubyWebDialogs
2
+
3
+ RwdTinker is a web brower interface to and system for developing programs
4
+
5
+ == Usage
6
+
7
+ How to Use the Tinker framework Program (rwdtinker)
8
+
9
+ 1. stand alone application
10
+ 2. framework for building applications
11
+ 3. Open brower windows with html documents
12
+
13
+ The GUI interface used is RubyWebDialogs
14
+
15
+
16
+ Start the program by typing
17
+ ruby init.rb
18
+
19
+ Then point your web browser to:
20
+ http://localhost:7705/
21
+
22
+ == Viewing installed Applets:
23
+
24
+ Go to "List Scripts" tab
25
+
26
+ You can get a list of all installed applets by clicking the listfiles button
27
+
28
+ To see the text of a install file
29
+ Type in the name of the file you want.
30
+
31
+ type it without the inf ending
32
+ rwdapplet-0.1
33
+
34
+ Then click the "View Installed File" button
35
+
36
+ If it finds the file it will open it. It displays the text the search box.
37
+
38
+ You can uninstall applets on this screen
39
+
40
+ == Installing Applets
41
+
42
+ click on the "Selection Panel"
43
+ click on Rwdtinker Back Window
44
+
45
+ You can download an applet created by someone else
46
+ put the file in the zips directory
47
+
48
+ click on the "list zips" tab
49
+ click on "list applets available for installing"
50
+
51
+ chose the applet you want
52
+ click on "install applet"
53
+ If all goes well the applet should be installed.
54
+ You will need to restart rwdtinker to see the new screens
55
+
56
+
57
+ == Changing configuration file
58
+
59
+ click on "Edit Configuration"
60
+ You can view the configuration file
61
+
62
+ You can edit the configuration
63
+
64
+ Remember to reload the configuration variables if you want your
65
+ changes used.
66
+
67
+ == Manually installing applets
68
+
69
+ * unzip an applet
70
+
71
+ unzip the applet into the program directoy
72
+ unzip randomapplet.zip
73
+
74
+ This should place the needed files in the correct directories
75
+
76
+
77
+ == Creating Applets
78
+
79
+ To add code, commands and gui tabs
80
+
81
+ Move program files into a directory under the code directory.
82
+ Move gui files into a directory under the gui directory.
83
+ The gui directory name you create is important, because the gui
84
+ rwd file is built in alpha order by directory name
85
+
86
+
87
+ There are two ways to add applets to the directories.
88
+
89
+ Creating code
90
+
91
+
92
+ * Manually write code and gui files
93
+
94
+ The files go into your code directory
95
+ the filenames for code do not matter
96
+
97
+ The gui files go into your gui directory
98
+ The gui files need to be in order by name and end with .rwd
99
+
100
+
101
+
102
+ If you need a config file that goes in the configuration directory
103
+
104
+ internationalization and localization are helped by replacing the
105
+ gui files in the subdirectories under gui
106
+
107
+
108
+ == Documents
109
+
110
+
111
+ when you click on a document name, the document should pop up in a
112
+ browser window, or in another browser tab.
113
+
114
+ To exit, press the x inside the browser window.
115
+
116
+ == To add context sensitive help
117
+
118
+ You need to add a hash file that just needs to contain
119
+ Helptext.update( :myapplet_generalhelp => " This is the general help
120
+ You can add help text hear")
121
+
122
+ And you need to add a help run script that will call runhelpwindow
123
+ This should have a method that includes:
124
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
125
+
126
+ if @rwd_tab == "gemservescan"
127
+ $help_topic = "gemdocs_help"
128
+ end
129
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
130
+ if @rwd_window != "rwdtinkerhelpwindow"
131
+ $previouswindow = @rwd_window
132
+ $previoustab = @rwd_tab
133
+ end
134
+ runhelpwindow
135
+ end
136
+
137
+ == Languages
138
+
139
+
140
+ You can add tranlations in the lang subdirectory
141
+ You change the $lang constant in Tinker config file in the configuration directory
142
+ You can see one translation on the install applet tab, after you have installed and applet
143
+
144
+ == Using over a Network
145
+
146
+ To serve the application over your local LAN,change the last line in the
147
+ init.rb file to something like:
148
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
149
+ Then you should be able to login at: http://yourhostname:8080
150
+
151
+ You have to authorize yourself. The .rwuids example is a string with
152
+ the name of the authorization file, relative to the home directory
153
+ of the user that started the service. This file has to be in the form of:
154
+
155
+ user1 = password
156
+ user2 = pass phrase
157
+
158
+ Thus the file .rwduids might contain:
159
+
160
+ erik = secret
161
+
162
+ == Requirements:
163
+ RubyWebDialogs - I am using 0.1.2
164
+ This package you downloaded should have a runtime version of
165
+ the needed rubywebdialog files
166
+
167
+ Ruby I am using version 1.8.2
168
+
169
+ I have tested this under Linux-Debian kernel 2.6.9
170
+
171
+ = Operation:
172
+ The code files reside in the code directory and are combined before
173
+ the main Class is loaded
174
+
175
+ The rwd files in gui are combined before the gui is activated
176
+
177
+ Translated text reside in the lang directory
178
+
179
+ == Installing:
180
+
181
+ untar the file
182
+ tar zxvf rwdtinker-x.y.tar.gz
183
+ then cd to the directory
184
+ cd rwdshell-x.y
185
+ then start the init.rb program file
186
+ ruby init.rb
187
+ Then point your browser at http://localhost:7705
188
+ or where it tells you.
189
+ Trouble shooting:
190
+
191
+ If the program is not working, try looking at the ev subdirectory. That is where
192
+ the runtime of rubywebdialogs are.
193
+
194
+ for long term installation, I would suggest putting most files in a lib directory
195
+ like /usr/lib/rwdshell
196
+ then make a writable directory the local directory for command files to be written
197
+ like ~/rwdshell
198
+
199
+
200
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
201
+
202
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
203
+
204
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
205
+
206
+ == Credits
207
+
208
+ Thanks go to:
209
+
210
+ * Matz, for creating Ruby in the first place.
211
+ * Erik, for creating RubyWebDialogs.
212
+ * Charlotte, my wife for coming up for the name Tinker.
213
+
214
+ == License
215
+
216
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
217
+ under the terms of the GPL licence:
218
+
219
+ == Contact
220
+ For more information see:
221
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
222
+
223
+
224
+ For more information about RubyWebDialogs see:
225
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
+
227
+ Thanks, Steven Gibson
228
+
229
+ == Changelog
230
+ Version 1.76
231
+ Move rwd code files into lib directory - bug - 21886
232
+ change tab name list applets - bug - 21864
233
+ change extra folder to be lib folder - bug 21887
234
+ remove duplicate intall applet code - bug 21885
235
+ On Menu tab/Selection Tab - add help button - bug 21884
236
+ clean up directory structure in gui directory - bug 21882
237
+
238
+ Version 1.75
239
+ change rwd.rb to use UTF-8 for web pages
240
+ add language load for applets
241
+
242
+ Version 1.74
243
+ remove remote control from help
244
+ more dependable gui loading for applets
245
+
246
+ Version 1.73
247
+ more debug info in initiateapplet
248
+ remove gutenberg lang translations
249
+ correct gui building error recovery
250
+
251
+ Version 1.72
252
+ additional cleanup for live applet add and removal
253
+ after applet removal focus returns to proper tab
254
+ error messages are reduced unless $DEBUG=true
255
+
256
+ Version 1.70
257
+ major update to applet loading routines
258
+ a properly prepared applet should be loadable and unloadable live with not restarting
259
+ localization is not yet updated in live applet loading
260
+ remove network line debugging output
261
+
262
+ Version 1.69
263
+ More work on translations - Spanish almost done
264
+ removed remote control
265
+
266
+ Version 1.68
267
+ updated to newest Ruby webdialogs
268
+
269
+ Version 1.67
270
+ Add html for help
271
+
272
+ Version 1.66
273
+ Fixed directory layout
274
+ increased size of config edit screen
275
+
276
+ Version 1.65
277
+ Changed documents listing screen - now using hash
278
+ Changed helpabout screen - now using hash
279
+ added more lines for config edit
280
+ added help about to back window
281
+
282
+ Version 1.64
283
+ fixed jump with no location
284
+
285
+ Version 1.63
286
+ changed handling of application name returned
287
+ added jump seletion options
288
+ added some unit tests
289
+
290
+ version 1.62
291
+ improve distro release script
292
+ code cleanup
293
+ removed redundent network code
294
+ change handling of window and tab jumps
295
+
296
+ version 1.61
297
+ add in test harness
298
+ rwdtinkerwin2 help about removed
299
+ load main config file in init.rb
300
+
301
+ version 1.60
302
+ add rwdapplication info to diagnostic
303
+ turn rescue on in diagnostic upload
304
+
305
+ version 1.59
306
+ removed rwdtinkerwin2 inf file
307
+ refactored diagnotic page - one button to see all information
308
+ added bug report upload to diagnostic page
309
+
310
+ version 1.58
311
+ check for zlib
312
+ check for files to delete
313
+
314
+ version 1.57
315
+ added rconftool use to update configuration files
316
+ changed applets remove to not used external rm
317
+
318
+ version 1.56
319
+ refactored gui files to load without intermediate files
320
+ refactored code files to load without intermediate files
321
+
322
+ version 1.55
323
+ refactored language files to load without intermediate files
324
+ refactored language files to load without intermediate files
325
+
326
+ version 1.54
327
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
328
+ corrected some program logic errors in remote control code including close socket
329
+
330
+ version 1.53
331
+ added search of Gems repository for rwdtinker gems
332
+ download and install of Gems
333
+
334
+ version 1.52
335
+ added function to install applets from gem directory
336
+
337
+ version 1.51
338
+ changed return to main
339
+ changed configuration of remote ports
340
+ updated context sensitive help
341
+
342
+ version 1.50
343
+ changed unzip applet to be internal code - no exec to unzip program
344
+ changed order of tabs on back window - list applets now first
345
+ added rwdwcalc applet in to zips directory
346
+ changed width of text fields with help from RubyWebDialogs author
347
+ changed listing of help options, vertical instead of horizontal
348
+
349
+ version 1.49
350
+ added demon function for remote queries
351
+ startup application on first available port
352
+
353
+ version 1.48
354
+ fix in context sensitive help so that applets can use it better
355
+
356
+ version 1.47
357
+ change to context sensitive help
358
+
359
+ version 1.46
360
+ more work on context help
361
+ window calls point to tab as well as windows
362
+ help added help buttons on Document, Selection, View Applet, tabs
363
+
364
+ version 1.45
365
+ first steps toward context sensitive help
366
+ added help button on main window/tab
367
+
368
+ version 1.44
369
+ updated directory structure - refactored gui files
370
+ Changed gui directory names - more like Java package titles
371
+
372
+ version 1.43
373
+ changed setup variables file for live changes
374
+ added editing and reloading of config file
375
+ added unzip filename to config file
376
+
377
+ version 1.42
378
+ update for live update system
379
+ update applets for live update
380
+ code file name cleanup
381
+
382
+ version 1.41
383
+ l10n work es,nl, jp
384
+ separated out languge.cnf
385
+ added zip applets refreshacpi, rwdcalc
386
+
387
+ version 1.40
388
+ removed extra lines from init.rb
389
+ fixed help second window
390
+ added some tranlations for Spanish
391
+ More work on l10n
392
+
393
+ version 1.3
394
+ refactored gui files to do easier i10n
395
+ removed lang directories under gui
396
+ added lang files under lang dir
397
+ removed redundant code files left from moving applet handling to back window
398
+ removed zipped applets not yet refactored
399
+
400
+ version 1.24
401
+ added internet usage instructions to HowTo_Tinker.txt
402
+ removed HowTo_Tinker.html
403
+ added panels for Helpabout
404
+ changed photo logo tab to only have embedded picture, no button
405
+
406
+ version 1.23
407
+ moving diagnostic tab and applet handling tabs to second window
408
+ added selection panel tab to choose secondary windows.
409
+
410
+ version 1.21
411
+ changing version on help screen to be button
412
+ added version window
413
+ added diagnostic tab
414
+
415
+ version 1.2
416
+ added gemspec for creating a rwdtinker.gem
417
+ added rdoc comments
418
+ changed order on remove applets tab
419
+
420
+ version 1.1
421
+ changed order of elements on install applet tab
422
+ Add more i81n ablility - added lang directorys for language hash files
423
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
424
+
425
+ version 1.0
426
+ Improved name selection in zips and applet screens
427
+ added rubyslippers applet and rwdrefreshacpi applets as zips
428
+
429
+ version 0.9
430
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
431
+ updated RubyWebDialogs for people who do not have it installed
432
+ added rwdschedule applet as zip file
433
+
434
+ version 0.8
435
+ changed location of code files
436
+ only directory of code files needs to be added to inf file
437
+ changed location of gui files
438
+ only directory of gui files needs to be added to inf file
439
+ Added constants in conf file for code location and gui location
440
+ removed all zips not yt updated to new directory layout
441
+ change loading of conf files to not need intermediate file
442
+ and favicon.ico
443
+
444
+ version 0.7
445
+ moved changelog to HowTo_Tinker.html
446
+ copied english gui text to the dirs I think we should translate to
447
+ update backup zip files to newest versions
448
+ upgraded the ev directory - for those who don't have RubyWebDialogs
449
+
450
+ version 0.6
451
+ updated version number
452
+ changed merge name to rwdtinker.rb
453
+
454
+ version 0.4
455
+ added zip listing and installing - Linux only
456
+
457
+ Version 0,3
458
+ changed name to Tinker
459
+
460
+ Version 0.2
461
+ added some i18n directories for the gui files
462
+
463
+ Version 0.1
464
+ first public version released
465
+ includes document screen
466
+ Open Photo screen
467
+ included configuration directory
468
+ zips directories
469
+ installed directory
470
+ installed applet lister
471
+