rwdshell 0.9 → 0.92

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. data/code/dd0shelleval/changescriptname.rb +16 -0
  2. data/code/dd0shelleval/clearscriptscreendisplay.rb +9 -0
  3. data/code/dd0shelleval/deletescriptrecord.rb +20 -0
  4. data/code/{ek0shellscripts/em0listscripts.rb → dd0shelleval/listscripts.rb} +3 -2
  5. data/code/dd0shelleval/loadscriptrecord.rb +20 -0
  6. data/code/{ek0shellscripts/ek0playscript.rb → dd0shelleval/playscript.rb} +0 -0
  7. data/code/{cb7rubyeval/cb7rubyeval.rb → dd0shelleval/rubyeval.rb} +4 -2
  8. data/code/dd0shelleval/runrwdshellwindow.rb +9 -0
  9. data/code/dd0shelleval/rwdshellversion.rb +14 -0
  10. data/code/{ek0shellscripts/en0createnewscript.rb → dd0shelleval/savechangedscript.rb} +7 -6
  11. data/code/dd0shelleval/{dd0shelleval.rb → shelleval.rb} +0 -0
  12. data/code/{ek0shellscripts/em1viewscript.rb → dd0shelleval/viewscript.rb} +2 -2
  13. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
  14. data/configuration/aa0rwdframework.cnf +5 -3
  15. data/configuration/ab1tinkerwin2.cnf +1 -0
  16. data/configuration/ek0playscripts.cnf +1 -0
  17. data/ev/net.rb +1 -1
  18. data/gui/aa2core/aa0rwdtop.rwd +4 -0
  19. data/gui/ek0shellscripts/1listplayscripts.rwd +17 -0
  20. data/gui/ek0shellscripts/2listscripts.rwd +25 -0
  21. data/gui/ek0shellscripts/3editscripts.rwd +25 -0
  22. data/gui/ek0shellscripts/4scriptutilities.rwd +24 -0
  23. data/gui/ek0shellscripts/6rwdshelleval.rwd +16 -0
  24. data/gui/ek0shellscripts/cb7rwdrubyeval.rwd +13 -0
  25. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
  26. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
  27. data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
  28. data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
  29. data/gui/{en/ub7rubyeval → ub7rubyeval}/rubyeval.rwd +4 -3
  30. data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
  31. data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
  32. data/gui/vv1docshellxp/vvdocshellxp.rwd +5 -0
  33. data/gui/ww0documentsend/ww0documentend.rwd +7 -0
  34. data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
  35. data/gui/{nl/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
  36. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
  37. data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
  38. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
  39. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
  40. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
  41. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
  42. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
  43. data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
  44. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
  45. data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
  46. data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
  47. data/gui/yg5rwdhelpabout/5version.rwd +10 -0
  48. data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
  49. data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
  50. data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
  51. data/gui/yl4rwdshellhelpabout/1appname.rwd +4 -0
  52. data/gui/yl4rwdshellhelpabout/3copyright.rwd +3 -0
  53. data/gui/yl4rwdshellhelpabout/5version.rwd +9 -0
  54. data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
  55. data/gui/za1applicationend/yy9rwdend.rwd +4 -0
  56. data/init.rb +74 -5
  57. data/installed/rwdshell-0.92.inf +14 -0
  58. data/installed/rwdtinkerwin2-0.5.inf +4 -12
  59. data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
  60. data/lang/en/rwdcore/languagefile.rb +3 -2
  61. data/lang/es/rwdcore/languagefile.rb +1 -2
  62. data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
  63. data/lang/nl/rwdcore/languagefile.rb +1 -1
  64. data/lang/templangfile.rb +7 -0
  65. data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
  66. data/lang/wlocallangstart.rb +5 -0
  67. data/lang/xlocallangfile.rb +7 -0
  68. data/lang/zlocallangend.rb +2 -0
  69. data/rwd_files/HowTo_Shell.txt +136 -0
  70. data/rwd_files/HowTo_Tinker.txt +32 -0
  71. data/scripts/echo2.sh +2 -0
  72. data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
  73. data/zips/rwdwshell-0.91.zip +0 -0
  74. data/zips/wrubyslippers-0.93.zip +0 -0
  75. metadata +64 -142
  76. data/code/al5languagefiles/templangfile.rb +0 -6
  77. data/code/gh9calendar/gh9calendar.rb +0 -16
  78. data/code/ii3calculator/ca2multiply.rb +0 -5
  79. data/code/ii3calculator/ca4add.rb +0 -5
  80. data/code/lm1installapplets/ll5listzips.rb +0 -14
  81. data/code/lm1installapplets/lm1installapplet.rb +0 -20
  82. data/code/ssdiagnostictab/diagnostictab.rb +0 -20
  83. data/configuration/gh1rwdcalendar.cnf +0 -26
  84. data/extras/cal.rb +0 -166
  85. data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
  86. data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  87. data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  88. data/gui/en/ek0shellscripts/ek0playscript.rwd +0 -15
  89. data/gui/en/ek0shellscripts/el0listscripts.rwd +0 -25
  90. data/gui/en/ek0shellscripts/en0createscripts.rwd +0 -24
  91. data/gui/en/hl9calendar/hl9calendar.rwd +0 -18
  92. data/gui/en/ii3calculator/ca0rwdcalc.rwd +0 -17
  93. data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  94. data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  95. data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
  96. data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  97. data/gui/en/uk5scriptrunnerdocuments/documents.rwd +0 -3
  98. data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  99. data/gui/en/vv1docshellxp/vvdocshellxp.rwd +0 -4
  100. data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
  101. data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  102. data/gui/en/xa1versionwindow/1appname.rwd +0 -17
  103. data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  104. data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  105. data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  106. data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  107. data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  108. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  109. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  110. data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  111. data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  112. data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
  113. data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
  114. data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
  115. data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
  116. data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  117. data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
  118. data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
  119. data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
  120. data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  121. data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  122. data/gui/es/ek0shellscripts/ek0playscript.rwd +0 -15
  123. data/gui/es/ek0shellscripts/el0listscripts.rwd +0 -25
  124. data/gui/es/ek0shellscripts/en0createscripts.rwd +0 -24
  125. data/gui/es/hl9calendar/hl9calendar.rwd +0 -18
  126. data/gui/es/ii3calculator/ca0rwdcalc.rwd +0 -17
  127. data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  128. data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  129. data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
  130. data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  131. data/gui/es/ub7rubyeval/rubyeval.rwd +0 -3
  132. data/gui/es/uk5scriptrunnerdocuments/documents.rwd +0 -3
  133. data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
  134. data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  135. data/gui/es/vv1docshellxp/vvdocshellxp.rwd +0 -4
  136. data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
  137. data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  138. data/gui/es/xa1versionwindow/1appname.rwd +0 -17
  139. data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  140. data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  141. data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  142. data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  143. data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  144. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  145. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  146. data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  147. data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  148. data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
  149. data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
  150. data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
  151. data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
  152. data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  153. data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
  154. data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
  155. data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
  156. data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  157. data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  158. data/gui/nl/ek0shellscripts/ek0playscript.rwd +0 -15
  159. data/gui/nl/ek0shellscripts/el0listscripts.rwd +0 -25
  160. data/gui/nl/ek0shellscripts/en0createscripts.rwd +0 -24
  161. data/gui/nl/hl9calendar/hl9calendar.rwd +0 -18
  162. data/gui/nl/ii3calculator/ca0rwdcalc.rwd +0 -17
  163. data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  164. data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  165. data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
  166. data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  167. data/gui/nl/ub7rubyeval/rubyeval.rwd +0 -3
  168. data/gui/nl/uk5scriptrunnerdocuments/documents.rwd +0 -3
  169. data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
  170. data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +0 -4
  171. data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
  172. data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  173. data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  174. data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  175. data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  176. data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  177. data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  178. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  179. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  180. data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  181. data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  182. data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
  183. data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
  184. data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
  185. data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
  186. data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  187. data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
  188. data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
  189. data/installed/rwdcalendar-0.4.inf +0 -6
  190. data/installed/rwdrubyeval-0.3.inf +0 -5
  191. data/installed/rwdscriptrunner-0.3.inf +0 -9
  192. data/installed/rwdshellxp-0.4.inf +0 -5
  193. data/rwd_files/HowTo_Scriptrunner.txt +0 -171
  194. data/rwd_files/HowTo_Tinker.html +0 -370
  195. data/tests/rwdtinkertestEN.rb +0 -87
  196. data/tests/temptest.out +0 -18
  197. data/zips/rwdaviewphoto-0.3.zip +0 -0
  198. data/zips/rwdrefreshacpi-0.1.zip +0 -0
  199. data/zips/rwdscriptrunner-0.3.zip +0 -0
  200. data/zips/rwdwtinkerwin2-0.5.zip +0 -0
@@ -1,171 +0,0 @@
1
- = HowTo use the Shell Scriptrunner Program
2
-
3
-
4
- rwdshell scriptrunner is a web brower interface to operating system shell commands
5
-
6
-
7
- 1. run shell commands
8
- 2. run Ruby commands in the browser
9
- 3. use a calculator
10
- 4. Open brower windows with html documents
11
-
12
- The GUI interface used is RubyWebDialogs
13
-
14
-
15
- Start the program by typing
16
- ruby init.rb
17
-
18
- Then point your web browser to:
19
- http://localhost:7705/
20
-
21
-
22
- == To use a shell command
23
-
24
-
25
- Enter the shell command you want to run for in the browser form and press execute.
26
- After a second the browser should fill with the results of the command.
27
- try ls, df, cat "filename", and other shell commands
28
- You should be able to run one command after another
29
-
30
-
31
- There are two ways to add scripts to rwdshell directory.
32
-
33
-
34
-
35
- == Creating a script
36
-
37
-
38
- 1. Use the "Create New Script" tab
39
- <blockquote>
40
- The first field is the most important. It is the filename that
41
- will be created.
42
- myshellscript
43
-
44
- The following line for entry is a shell command.
45
-
46
- The last line is for comment to describe the script
47
- When you are finished press the CreateFile button
48
-
49
-
50
- 2. Manually add an entry for a script
51
-
52
- You can use a text editor to create a record
53
- put information on separate lines. You can have as many lines as you want
54
- name the file with caps and no spaces and end with .sh
55
- mynextscript.sh
56
-
57
- Save your file to the scripts/ subdirectory
58
-
59
-
60
- == Viewing a recorded script entry:
61
-
62
-
63
- * Go to "List Scripts" tab
64
-
65
-
66
- You can get a list of all scripts by clicking the listfiles button
67
-
68
- To see the text of a script
69
- Type in the name of the script you want.
70
-
71
- type it without the sh ending
72
- myscript
73
-
74
- Then click the "ViewScript" button
75
-
76
- If it finds the script it will open it. It displays the text the search box.
77
-
78
-
79
- == Ruby Commands
80
-
81
-
82
- At the Ruby tab here are some commands you might try
83
-
84
- print "hello" + "\n"
85
-
86
- bar=46; print "%s" % bar, "\n"
87
-
88
- "abc".each_byte{|c| printf "<%c>", c}; print "\n"
89
-
90
- "a\nb\nc\n".each_line{|l| print l}
91
-
92
- for l in "a\nb\nc\n" ; print l ; end
93
-
94
- print "%s" % "abcdef".length
95
-
96
-
97
- == Calculator
98
-
99
- add or multiply 2 numbers together
100
-
101
-
102
-
103
-
104
- == Documents
105
-
106
- when you click on a document name, the document should pop up in a
107
- browser window, or in another browser tab.
108
-
109
- To exit, press the x inside the browser window.
110
-
111
-
112
-
113
-
114
- Requirements:
115
- RubyWebDialogs - I am using 0.0.11 2004-3-9
116
- This package you downloaded rwddemo should have a runtime version of
117
- the needed rubywebdialog files
118
-
119
- Ruby I am using version 1.8.2
120
-
121
- I have tested this under Linux-Debian kernel 2.6.9
122
-
123
- Operation:
124
- The code files reside in the code directory and are combined before
125
- the main Class is loaded
126
-
127
- The rwd files in gui are combined before the gui is activated
128
-
129
- Installing:
130
-
131
- untar the file
132
- tar zxvf rwdshell-x.y.tar.gz
133
- then cd to the directory
134
- cd rwdshell-x.y
135
- then start the init.rb program file
136
- ruby init.rb
137
- Trouble shooting:
138
-
139
- If the program is not working, try looking at the ev subdirectory. That is where
140
- the runtime of rubywebdialogs are.
141
-
142
- for long term installation, I would suggest putting most files in a lib directory
143
- like /usr/lib/rwdshell
144
- then make a writable directory the local directory for command files to be written
145
- like ~/rwdshell
146
-
147
-
148
- 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.
149
-
150
- Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
151
-
152
- 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/
153
-
154
-
155
- For more information see:
156
- http://rwdapplications.rubyforge.org/wiki/wiki.pl
157
-
158
-
159
- For more information about RubyWebDialogs see:
160
- http://www.erikveen.dds.nl/rubywebdialogs/index.html
161
-
162
- Thanks, Steven Gibson
163
-
164
- == Changelog
165
-
166
- Version 0.3
167
- Changed directory structure to work with rwdtinker 0.9 or greater.
168
- Improved the filename selection
169
- Changed the layout on the list screen
170
-
171
-
@@ -1,370 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
3
-
4
- <title>File: HowTo_Tinker.txt</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
- <meta http-equiv="Content-Script-Type" content="text/javascript">
6
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" media="screen">
7
- <script type="text/javascript">
8
- // <![CDATA[
9
-
10
- function popupCode( url ) {
11
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
12
- }
13
-
14
- function toggleCode( id ) {
15
- if ( document.getElementById )
16
- elem = document.getElementById( id );
17
- else if ( document.all )
18
- elem = eval( "document.all." + id );
19
- else
20
- return false;
21
-
22
- elemStyle = elem.style;
23
-
24
- if ( elemStyle.display != "block" ) {
25
- elemStyle.display = "block"
26
- } else {
27
- elemStyle.display = "none"
28
- }
29
-
30
- return true;
31
- }
32
-
33
- // Make codeblocks hidden by default
34
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
35
-
36
- // ]]>
37
- </script><style type="text/css">div.method-source-code { display: none }</style></head>
38
-
39
-
40
-
41
- <body>
42
-
43
-
44
-
45
- <div id="fileHeader">
46
- <h1>HowTo_Tinker.txt</h1>
47
- <table class="header-table">
48
- <tbody><tr class="top-aligned-row">
49
- <td><strong>Path:</strong></td>
50
- <td>rwd_files/HowTo_Tinker.txt
51
- </td>
52
- </tr>
53
- <tr class="top-aligned-row">
54
- <td><strong>Last Update:</strong></td>
55
- <td>Fri Dec 24 20:32:10 PST 2004</td>
56
- </tr>
57
- </tbody></table>
58
- </div>
59
- <!-- banner header -->
60
-
61
- <div id="bodyContent">
62
-
63
-
64
- <div id="contextContent">
65
-
66
- <div id="description">
67
- <h1>RwdTinker framework for RubyWebDialogs</h1>
68
- <p>
69
- RwdTinker is a web brower
70
- interface to and system for developing programs
71
- </p>
72
- <h2>Usage</h2>
73
- <p>
74
- How to Use the Tinker framework Program (rwdtinker)
75
- </p>
76
- <ol>
77
- <li>stand alone application
78
-
79
- </li>
80
- <li>framework for building applications
81
-
82
- </li>
83
- <li>Open brower windows with html documents
84
-
85
- </li>
86
- </ol>
87
- <p>
88
- The GUI interface used is RubyWebDialogs
89
- </p>
90
- <p>
91
- Start the program by typing ruby init.rb
92
- </p>
93
- <p>
94
- Then point your web browser to: <a href="http://localhost:7705/">localhost:7705</a>/
95
- </p>
96
- <h2>Installing Applets</h2>
97
- <ul>
98
- <li>unzip an applet
99
-
100
- <pre> You can download an applet created by someone else
101
- put the file in the zips directory
102
- unzip the directory into the program directoy
103
- unzip randomapplet.zip
104
-
105
- This should right the needed files in the correct directories
106
- </pre>
107
- </li>
108
- </ul>
109
- <p>
110
- Viewing a installed Applets:
111
- </p>
112
- <p>
113
- Go to "List Scripts" tab
114
- </p>
115
- <pre> You can get a list of all installed applets by clicking the listfiles button
116
-
117
- To see the text of a install file
118
- Type in the name of the file you want.
119
-
120
- type it without the inf ending
121
- rwdapplet-0.1
122
-
123
- Then click the "View Installed File" button
124
-
125
- If it finds the file it will open it. It displays the text the search box.
126
- </pre>
127
- <h2>Adding Applets</h2>
128
- <p>
129
- To add code, commands and gui tabs
130
- </p>
131
- <p>
132
- Move program files into a directory under the code directory. Move gui
133
- files into a directory under the gui directory.
134
- </p>
135
- <pre> The gui directory name you create is important, because the gui
136
- rwd file is built in alpha order by directory name
137
- </pre>
138
- <p>
139
- There are two ways to add applets to the directories.
140
- </p>
141
- <pre> Creating code
142
- </pre>
143
- <ul>
144
- <li>Manually write code and gui files
145
-
146
- <pre> The files go into your code directory
147
- the filenames for code do not matter
148
-
149
- The gui files go into your gui directory
150
- The gui files need to be in order by name and end with .rwd
151
-
152
- If you need a config file that goes in the configuration directory
153
-
154
- internationalization and localization are helped by replacing the
155
- gui files in the subdirectories under gui
156
- </pre>
157
- </li>
158
- </ul>
159
- <h2>Documents</h2>
160
- <pre> when you click on a document name, the document should pop up in a
161
- browser window, or in another browser tab.
162
- </pre>
163
- <p>
164
- To exit, press the x inside the browser window.
165
- </p>
166
- <h2>Languages</h2>
167
- <pre> You can add tranlations in the lang subdirectory
168
- You change the $lang constant in Tinker config file in the configuration directory
169
- You can see one translation on the install applet tab, after you have installed and applet
170
- </pre>
171
- <h2>Requirements:</h2>
172
- <p>
173
- RubyWebDialogs - I am using 0.1.2
174
- </p>
175
- <pre> This package you downloaded should have a runtime version of
176
- the needed rubywebdialog files
177
- </pre>
178
- <p>
179
- Ruby I am using version 1.8.2
180
- </p>
181
- <p>
182
- I have tested this under Linux-Debian kernel 2.6.9
183
- </p>
184
- <h1>Operation:</h1>
185
- <p>
186
- The code files reside in the code directory and are combined before the
187
- main Class is loaded
188
- </p>
189
- <p>
190
- The rwd files in gui are combined before the gui is activated
191
- </p>
192
- <p>
193
- Translated text reside in the lang directory
194
- </p>
195
- <h2>Installing:</h2>
196
- <p>
197
- untar the file tar zxvf rwdtinker-x.y.tar.gz then cd to the directory cd
198
- rwdshell-x.y then start the init.rb program file ruby init.rb Then point
199
- your browser at <a href="http://localhost:7705/">localhost:7705</a> or where
200
- it tells you. Trouble shooting:
201
- </p>
202
- <p>
203
- If the program is not working, try looking at the ev subdirectory. That is
204
- where the runtime of rubywebdialogs are.
205
- </p>
206
- <p>
207
- for long term installation, I would suggest putting most files in a lib
208
- directory like /usr/lib/rwdshell then make a writable directory the local
209
- directory for command files to be written like ~/rwdshell
210
- </p>
211
- <p>
212
- Closing the browser doesn&#8217;t terminate the application. You have to
213
- use the application&#8217;s close-button And terminating the application
214
- doesn&#8217;t terminate the application when running in network mode. You
215
- just log out.
216
- </p>
217
- <p>
218
- Don&#8216;t use the back-button of the browser! Strange and unpredictable
219
- things may and will happen!
220
- </p>
221
- <p>
222
- RubyWebDialogs is a platform independent graphical user interface for Ruby
223
- applications. It generates HTML and serves it with an internal HTTP server,
224
- so you can use your favorite web browser as the front end for your Ruby
225
- application. All this means, that it can be used on almost every platform,
226
- like Ruby itself. <a href="http://www.erikveen.dds.nl/rubywebdialogs">www.erikveen.dds.nl/rubywebdialogs</a>/
227
- </p>
228
- <h2>Credits</h2>
229
- <p>
230
- Thanks go to:
231
- </p>
232
- <ul>
233
- <li>Matz, for creating Ruby in the first place.
234
-
235
- </li>
236
- <li>Erik, for creating RubyWebDialogs.
237
-
238
- </li>
239
- <li>Charlotte, my wife for coming up for the name Tinker.
240
-
241
- </li>
242
- </ul>
243
- <h2>License</h2>
244
- <p>
245
- rwdtinker is copyright � 2004 Steven Gibson. It is free software, and
246
- may be redistributed under the terms of the GPL licence:
247
- </p>
248
- <pre> For more information see:
249
- </pre>
250
- <p>
251
- <a href="http://rwdapplications.rubyforge.org/wiki/wiki.pl">rwdapplications.rubyforge.org/wiki/wiki.pl</a>
252
- </p>
253
- <p>
254
- For more information about RubyWebDialogs see: <a href="http://www.erikveen.dds.nl/rubywebdialogs/index.html">www.erikveen.dds.nl/rubywebdialogs/index.html</a>
255
- </p>
256
- <p>
257
- Thanks, Steven Gibson
258
- </p>
259
- <h2>Changelog:</h2>
260
- <p>
261
- version 1.23
262
- <p><pre>
263
- moving diagnostic tab and applet handling tabs to second window
264
- added selection panel tab to choose secondary windows.
265
- </pre><p>
266
- version 1.2
267
- </p>
268
- <pre> added gemspec for creating a rwdtinker.gem
269
- added rdoc comments
270
- </pre>
271
- <p>
272
- version 1.1
273
- </p>
274
- <pre> changed order of elements on install applet tab
275
- Add more i81n ablility - added lang directorys for language hash files
276
- added in test file using WATIR stands for "Web Application Testing In Ruby,
277
- </pre>
278
- <p>
279
- version 1.0
280
- </p>
281
- <pre> Improved name selection in zips and applet screens
282
- added rubyslippers applet and rwdrefreshacpi applets as zips
283
- </pre>
284
- <p>
285
- version 0.9
286
- </p>
287
- <pre> Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
288
- updated RubyWebDialogs for people who do not have it installed
289
- added rwdschedule applet as zip file
290
- </pre>
291
- <p>
292
- version 0.8
293
- </p>
294
- <pre> changed location of code files
295
- only directory of code files needs to be added to inf file
296
- changed location of gui files
297
- only directory of gui files needs to be added to inf file
298
- Added constants in conf file for code location and gui location
299
- removed all zips not yt updated to new directory layout
300
- change loading of conf files to not need intermediate file
301
- and favicon.ico
302
- </pre>
303
- <p>
304
- version 0.7
305
- </p>
306
- <pre> moved changelog to HowTo_Tinker.html
307
- copied english gui text to the dirs I think we should translate to
308
- update backup zip files to newest versions
309
- upgraded the ev directory - for those who don't have RubyWebDialogs
310
- </pre>
311
- <p>
312
- version 0.6
313
- </p>
314
- <pre> updated version number
315
- changed merge name to rwdtinker.rb
316
- </pre>
317
- <p>
318
- version 0.4
319
- </p>
320
- <pre> added zip listing and installing - Linux only
321
- </pre>
322
- <p>
323
- Version 0,3
324
- </p>
325
- <pre> changed name to Tinker
326
- </pre>
327
- <p>
328
- Version 0.2
329
- </p>
330
- <pre> added some i18n directories for the gui files
331
- </pre>
332
- <p>
333
- Version 0.1
334
- </p>
335
- <pre> first public version released
336
- includes document screen
337
- Open Photo screen
338
- included configuration directory
339
- zips directories
340
- installed directory
341
- installed applet lister
342
- </pre>
343
-
344
- </div>
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
- </div>
354
-
355
-
356
-
357
- <!-- if includes -->
358
-
359
-
360
- <!-- if method_list -->
361
-
362
-
363
- </div>
364
-
365
-
366
- <div id="validator-badges">
367
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
368
- </div>
369
-
370
- </body></html>
@@ -1,87 +0,0 @@
1
- #-------------------------------------------------------------------------------------------------------------#
2
- # test with the WATIR controller
3
- #
4
- # Simple test based on Google/watir demo
5
- #
6
- #------------------------------------------------------------------------------------------------------------ #
7
-
8
- #includes
9
- require '../watir' # the controller
10
-
11
- #test::unit includes
12
- require 'test/unit'
13
- require 'test/unit/ui/console/testrunner'
14
- require '../unittests/testUnitAddons'
15
-
16
- #code to set your current path in Windows
17
- $myDir = File.dirname(__FILE__)
18
- $LOAD_PATH << $myDir
19
-
20
- class TC_rwdtinker_suite < Test::Unit::TestCase
21
-
22
-
23
-
24
- def test_a_Open1
25
- #--------------------------------------------------------
26
- # test case that shows basic WATIR functionality:
27
- # * enter text in a field
28
- # * click a button
29
- #
30
-
31
- #variables
32
- testSite = 'http://localhost:7705'
33
-
34
- #open the IE browser
35
- $ie = IE.new
36
-
37
- puts '## Beginning of test: rwdtinker'
38
- puts ' '
39
-
40
- $ie.goto(testSite)
41
- puts ' Action: entered ' + testSite + 'in the address bar.'
42
- sleep 1
43
-
44
- $ie.button(:caption, "View Photo").click
45
- puts ' Action: clicked the View Photo link'
46
-
47
- sleep 1
48
- $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_main";document.bodyform.submit();').click
49
- puts ' Action: clicked the main top link'
50
- end
51
-
52
- def test_b_Buttons1
53
- sleep 1
54
- $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_filelister";document.bodyform.submit();').click
55
- puts ' Action: clicked the file lister tab'
56
-
57
- sleep 1
58
-
59
- $ie.button(:caption, "List Files").click
60
- puts ' Action: clicked the List Files button.'
61
-
62
- sleep 1
63
-
64
- assert($ie.pageContainsText("File Name") )
65
- sleep 1
66
-
67
- $ie.button(:caption, "View Install Text").click
68
- puts ' Action: clicked the View Install Text button.'
69
-
70
- sleep 1
71
- $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_zipslister";document.bodyform.submit();').click
72
-
73
- puts ' '
74
- puts '## End of 2st test: '
75
-
76
- end # end of test_b_buttons1
77
-
78
- def test_c_tabs
79
-
80
- $ie.button(:caption, "List applets available for installing").click
81
- puts ' Action: clicked the List applets available for installing button.'
82
-
83
- end
84
-
85
-
86
-
87
- end #end of class TC_google_suite
data/tests/temptest.out DELETED
@@ -1,18 +0,0 @@
1
- Loaded suite C:/ruby/sample/watir/examples/rwdtinkertestEN
2
- Started
3
- ## Beginning of test: rwdtinker
4
-
5
- Action: entered http://localhost:7705in the address bar.
6
- Action: clicked the View Photo link
7
- Action: clicked the main top link
8
- Action: clicked the file lister tab
9
- Action: clicked the List Files button.
10
- pageContainsText: Looking for: File Name (string) - found it ok
11
- Action: clicked the View Install Text button.
12
-
13
- ## End of 2st test:
14
- Action: clicked the List applets available for installing button.
15
-
16
- Finished in 18.676 seconds.
17
-
18
- 3 tests, 1 assertions, 0 failures, 0 errors
Binary file
Binary file
Binary file
Binary file