rwdschedule 0.97 → 0.98

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.txt CHANGED
@@ -1,221 +1,400 @@
1
- = rwdschedule - for rwdtinker and RubyWebDialogs
2
-
3
- rwdschedule is a simple little database
4
-
5
- The GUI interface used is RubyWebDialogs
6
-
7
- 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/
8
-
9
- == Quick Start
10
- Start the program by typing
11
- ruby init.rb
12
-
13
- Then point your web browser to:
14
- http://localhost:7705/
15
-
16
- Then enter the event date you want to search for in the browser form and press Search.
17
- 200412december1a
18
- browser should fill with the event information.
19
- To exit, press the x inside the browser window.
20
-
21
-
22
- == How to Use the Schedule Book (rwdschedule)
23
-
24
- There are two ways to add records to schedule book.
25
-
26
- == Adding Records
27
-
28
- 1. Use the "Edit Event" tab
29
- The first field is the most important. It is the filename that
30
- will be created. I use the event date starting with yearmonthday
31
- 2005january11
32
-
33
- The following lines for entry are for you to fill in as you want.
34
- When you are finished press the Save Changes button
35
-
36
- You use this same screen for editing an already saved event
37
-
38
- 2. Manually add an entry for a event record
39
- You can use a text editor to create a record
40
- put information on separate lines. You can have as many lines as you want
41
- name the file with starting with date and end with .nam
42
- 2005january11 6 pm dinner party.nam
43
-
44
- Save your file to the schedules/ subdirectory
45
-
46
-
47
- == Viewing an schedule book entry:
48
-
49
-
50
- Go to "View event" tab
51
-
52
- Click on the list events button.
53
-
54
- Click on the date you want
55
-
56
- Then click the "Open" button
57
-
58
- If it finds the record it will open it. It displays the record
59
- as text under the "Open" button.
60
-
61
-
62
- == Event Utilities
63
-
64
- Click on "Event Utilites" tab
65
-
66
- You can rename event filenames
67
- You can delete events
68
-
69
- == Sync for multiple computers
70
-
71
- If you are like me, you have more than one system
72
- I use rwdTinker at home on my Linux laptop
73
- at work I use it on XP
74
- on the go I use rwdtinker on my Zaurus PDA
75
- So I am adding schedule events on different machines.
76
- There is a function to help sync the separate systems
77
-
78
- in "Selection Panel" click on "Open Schedule Sync Window"
79
-
80
- First you need your ftp details set in the
81
- configuration/rwdschedule.cnf file
82
-
83
- you can upload your events from your local schedules directory to the ftp site
84
- you can download events from the ftp site to your local updates directory
85
- you can perform a sync which finds remote events and adds them to your local
86
- schedules directory
87
-
88
- There is a button to delete the update directory when finished
89
-
90
- == Show Month
91
-
92
- Click on "Show Month" tab
93
- enter
94
- Year: 2005
95
- Month: 1
96
- Click on show month
97
-
98
- It will display one month
99
-
100
- == ics files
101
-
102
- You can create an ics file
103
- you can view a raw ics file
104
- Rename ics File
105
- Delete ics File
106
-
107
- == Using over a Network
108
-
109
- To serve the application over your local LAN,change the last line in the
110
- init.rb file to something like:
111
- RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
112
- Then you should be able to login at: http://yourhostname:8080
113
-
114
- You have to authorize yourself. The .rwuids example is a string with
115
- the name of the authorization file, relative to the home directory
116
- of the user that started the service. This file has to be in the form of:
117
-
118
- user1 = password
119
- user2 = pass phrase
120
-
121
- Thus the file .rwduids might contain:
122
-
123
- erik = secret
124
-
125
- == Requirements:
126
- RubyWebDialogs - I am using 0.0.11 2004-3-9
127
-
128
- Ruby I am using version 1.8.2
129
-
130
-
131
- I have tested this under Linux-Debian kernel 2.6.9
132
-
133
- == PROBLEMS:
134
- It is easy to type a date with a space after it. That will have a somewhat invisible space
135
- in it.
136
-
137
- don't type in the extension .sch
138
-
139
- 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.
140
-
141
- Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
142
-
143
-
144
- == contacts
145
- For more information see:
146
- http://rwdapplications.rubyforge.org/wiki/wiki.pl
147
-
148
-
149
- For more information about RubyWebDialogs see:
150
- http://www.erikveen.dds.nl/rubywebdialogs/index.html
151
-
152
-
153
- Steven Gibson
154
- steven@superant.com
155
-
156
- == Changelog
157
- version 0.97
158
- added rconftool use to update configuration files
159
- changed applet removal to not use external rm
160
- removed version number from directory name
161
-
162
- version 0.96
163
- added export ics record
164
- added end time for ics create record
165
-
166
- version 0.95
167
- added ics file view tab
168
- added ics file creation tab
169
- ics file rename and deletion tab
170
- reorganized schedule edit screen for future isc output
171
- corrected typo on menu tab
172
-
173
- version 0.94
174
- added RwdSchedule Menu tab for easier navigation
175
- wider text boxes for contact information
176
- Improvement to context sensitive help
177
- updated for rwdtinker 1.51 - finds available port and remote control
178
-
179
- version 0.93
180
- added some context sensitive help
181
- added edit config file and reload config variables
182
- change to tinker context help script
183
- updated for rwdtinker 1.47
184
- factored month calendar display - should be more readable
185
- fixed l10n calls for calendar for Dutch
186
- added archive function for old events
187
-
188
- version 0.92
189
- Added delete update files function in sync tab
190
-
191
- version 0.91
192
- updated for rwdtinker 1.44 - refactored gui files
193
- Changed gui directory names - more like Java package titles
194
-
195
- version 0.9
196
- added back window for sync tasks
197
- added configuration viewing
198
- added ftp file download for sync
199
- added ftp file upload for sync
200
- add update files and schedule sync compares
201
-
202
- version 0.8
203
- updated for rwdtinker 1.42 - semi-live updates
204
-
205
- version 0.7
206
- updated for rwdtinker 1.4
207
- addition to documentation
208
-
209
- version 0.6
210
- updated for rwdtinker 1.3
211
-
212
- version 0.5
213
- added edit commands to change event record
214
- Rename event
215
- Delete event
216
- changed order of event list - descending = oldest at top
217
-
218
- version 0.4
219
- added configuration file with location of schedules directory
220
- add date selection to view event tab
221
- updated to version 1.0 of rwdtinker
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.60
231
+ add rwdapplication info to diagnostic
232
+ turn rescue on in diagnostic upload
233
+
234
+ version 1.59
235
+ removed rwdtinkerwin2 inf file
236
+ refactored diagnotic page - one button to see all information
237
+ added bug report upload to diagnostic page
238
+
239
+ version 1.58
240
+ check for zlib
241
+ check for files to delete
242
+
243
+ version 1.57
244
+ added rconftool use to update configuration files
245
+ changed applets remove to not used external rm
246
+
247
+ version 1.56
248
+ refactored gui files to load without intermediate files
249
+ refactored code files to load without intermediate files
250
+
251
+ version 1.55
252
+ refactored language files to load without intermediate files
253
+ refactored language files to load without intermediate files
254
+
255
+ version 1.54
256
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
257
+ corrected some program logic errors in remote control code including close socket
258
+
259
+ version 1.53
260
+ added search of Gems repository for rwdtinker gems
261
+ download and install of Gems
262
+
263
+ version 1.52
264
+ added function to install applets from gem directory
265
+
266
+ version 1.51
267
+ changed return to main
268
+ changed configuration of remote ports
269
+ updated context sensitive help
270
+
271
+ version 1.50
272
+ changed unzip applet to be internal code - no exec to unzip program
273
+ changed order of tabs on back window - list applets now first
274
+ added rwdwcalc applet in to zips directory
275
+ changed width of text fields with help from RubyWebDialogs author
276
+ changed listing of help options, vertical instead of horizontal
277
+
278
+ version 1.49
279
+ added demon function for remote queries
280
+ startup application on first available port
281
+
282
+ version 1.48
283
+ fix in context sensitive help so that applets can use it better
284
+
285
+ version 1.47
286
+ change to context sensitive help
287
+
288
+ version 1.46
289
+ more work on context help
290
+ window calls point to tab as well as windows
291
+ help added help buttons on Document, Selection, View Applet, tabs
292
+
293
+ version 1.45
294
+ first steps toward context sensitive help
295
+ added help button on main window/tab
296
+
297
+ version 1.44
298
+ updated directory structure - refactored gui files
299
+ Changed gui directory names - more like Java package titles
300
+
301
+ version 1.43
302
+ changed setup variables file for live changes
303
+ added editing and reloading of config file
304
+ added unzip filename to config file
305
+
306
+ version 1.42
307
+ update for live update system
308
+ update applets for live update
309
+ code file name cleanup
310
+
311
+ version 1.41
312
+ l10n work es,nl, jp
313
+ separated out languge.cnf
314
+ added zip applets refreshacpi, rwdcalc
315
+
316
+ version 1.40
317
+ removed extra lines from init.rb
318
+ fixed help second window
319
+ added some tranlations for Spanish
320
+ More work on l10n
321
+
322
+ version 1.3
323
+ refactored gui files to do easier i10n
324
+ removed lang directories under gui
325
+ added lang files under lang dir
326
+ removed redundant code files left from moving applet handling to back window
327
+ removed zipped applets not yet refactored
328
+
329
+ version 1.24
330
+ added internet usage instructions to HowTo_Tinker.txt
331
+ removed HowTo_Tinker.html
332
+ added panels for Helpabout
333
+ changed photo logo tab to only have embedded picture, no button
334
+
335
+ version 1.23
336
+ moving diagnostic tab and applet handling tabs to second window
337
+ added selection panel tab to choose secondary windows.
338
+
339
+ version 1.21
340
+ changing version on help screen to be button
341
+ added version window
342
+ added diagnostic tab
343
+
344
+ version 1.2
345
+ added gemspec for creating a rwdtinker.gem
346
+ added rdoc comments
347
+ changed order on remove applets tab
348
+
349
+ version 1.1
350
+ changed order of elements on install applet tab
351
+ Add more i81n ablility - added lang directorys for language hash files
352
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
353
+
354
+ version 1.0
355
+ Improved name selection in zips and applet screens
356
+ added rubyslippers applet and rwdrefreshacpi applets as zips
357
+
358
+ version 0.9
359
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
360
+ updated RubyWebDialogs for people who do not have it installed
361
+ added rwdschedule applet as zip file
362
+
363
+ version 0.8
364
+ changed location of code files
365
+ only directory of code files needs to be added to inf file
366
+ changed location of gui files
367
+ only directory of gui files needs to be added to inf file
368
+ Added constants in conf file for code location and gui location
369
+ removed all zips not yt updated to new directory layout
370
+ change loading of conf files to not need intermediate file
371
+ and favicon.ico
372
+
373
+ version 0.7
374
+ moved changelog to HowTo_Tinker.html
375
+ copied english gui text to the dirs I think we should translate to
376
+ update backup zip files to newest versions
377
+ upgraded the ev directory - for those who don't have RubyWebDialogs
378
+
379
+ version 0.6
380
+ updated version number
381
+ changed merge name to rwdtinker.rb
382
+
383
+ version 0.4
384
+ added zip listing and installing - Linux only
385
+
386
+ Version 0,3
387
+ changed name to Tinker
388
+
389
+ Version 0.2
390
+ added some i18n directories for the gui files
391
+
392
+ Version 0.1
393
+ first public version released
394
+ includes document screen
395
+ Open Photo screen
396
+ included configuration directory
397
+ zips directories
398
+ installed directory
399
+ installed applet lister
400
+
@@ -7,11 +7,13 @@
7
7
  class RwdTinker < RWDialog
8
8
 
9
9
  def main
10
- @rwd_window = "main"
10
+ @rwd_window = "main"
11
11
  @result = "idle"
12
12
  @display= "idle"
13
-
13
+ if TestNow
14
14
 
15
+ rwdtest_harness
16
+ end
15
17
  end
16
18
 
17
19
  def inspect
@@ -0,0 +1,126 @@
1
+ # test harness
2
+ def rwdtinker_all_tests
3
+ print "in rwdtinker all tests\n"
4
+ test_runrwdtinkerbackwindow
5
+ end
6
+
7
+
8
+ def test_runrwdtinkerbackwindow
9
+
10
+ require 'test/unit'
11
+ begin
12
+
13
+ runrwdtinkerbackwindow
14
+
15
+ raise NotImplementedError, 'Need to write test_runrwdtinkerbackwindow'
16
+
17
+ rescue NotImplementedError
18
+ $stderr.print $!
19
+
20
+ end
21
+ end
22
+
23
+
24
+
25
+ def test_choosenewhelptopic
26
+ raise NotImplementedError, 'Need to write test_choosenewhelptopic'
27
+ end
28
+
29
+
30
+ def test_listinstalledfiles
31
+ raise NotImplementedError, 'Need to write test_listinstalledfiles'
32
+ end
33
+
34
+
35
+ def test_listzipfilestoinstall
36
+ raise NotImplementedError, 'Need to write test_listzipfilestoinstall'
37
+ end
38
+
39
+ def test_loadconfigurationrecord
40
+ raise NotImplementedError, 'Need to write test_loadconfigurationrecord'
41
+ end
42
+
43
+ def test_loadconfigurationvariables
44
+ raise NotImplementedError, 'Need to write test_loadconfigurationvariables'
45
+ end
46
+
47
+ def test_loadgemspecrecord
48
+ raise NotImplementedError, 'Need to write test_loadgemspecrecord'
49
+ end
50
+
51
+ def test_loadrubyslippersconfiguration
52
+ raise NotImplementedError, 'Need to write test_loadrubyslippersconfiguration'
53
+ end
54
+
55
+ def test_loadrubyslippersconfigurationvariables
56
+ raise NotImplementedError, 'Need to write test_loadrubyslippersconfigurationvariables'
57
+ end
58
+
59
+ def test_main
60
+ raise NotImplementedError, 'Need to write test_main'
61
+ end
62
+
63
+ def test_network_demon
64
+ raise NotImplementedError, 'Need to write test_network_demon'
65
+ end
66
+
67
+ def test_network_start
68
+ raise NotImplementedError, 'Need to write test_network_start'
69
+ end
70
+
71
+ def test_openappletname
72
+ raise NotImplementedError, 'Need to write test_openappletname'
73
+ end
74
+
75
+ def test_removeapplet
76
+ raise NotImplementedError, 'Need to write test_removeapplet'
77
+ end
78
+
79
+ def test_returntomain
80
+ raise NotImplementedError, 'Need to write test_returntomain'
81
+ end
82
+
83
+ def test_runcontrolcommand
84
+ raise NotImplementedError, 'Need to write test_runcontrolcommand'
85
+ end
86
+
87
+
88
+ def test_runhelpwindow
89
+ raise NotImplementedError, 'Need to write test_runhelpwindow'
90
+ end
91
+
92
+
93
+
94
+
95
+ def test_runrwdtinkerversion
96
+ raise NotImplementedError, 'Need to write test_runrwdtinkerversion'
97
+ end
98
+
99
+ def test_runrwdtinkerwin2version
100
+ raise NotImplementedError, 'Need to write test_runrwdtinkerwin2version'
101
+ end
102
+
103
+ def test_runviewplatform
104
+ raise NotImplementedError, 'Need to write test_runviewplatform'
105
+ end
106
+
107
+ def test_rwdtinkerversiondiagnostic
108
+ raise NotImplementedError, 'Need to write test_rwdtinkerversiondiagnostic'
109
+ end
110
+
111
+ def test_rwdwindowreturn
112
+ raise NotImplementedError, 'Need to write test_rwdwindowreturn'
113
+ end
114
+
115
+ def test_saveconfigurationrecord
116
+ raise NotImplementedError, 'Need to write test_saveconfigurationrecord'
117
+ end
118
+
119
+
120
+ def test_viewappletcontents
121
+ raise NotImplementedError, 'Need to write test_viewappletcontents'
122
+ end
123
+
124
+
125
+
126
+
@@ -0,0 +1,15 @@
1
+ # this to start the test harness
2
+ def rwdtest_harness
3
+
4
+ print "in test harness\n"
5
+ $testharnessarray.each { |x|
6
+ print "calling #{x}\n"
7
+ eval("#{x}")
8
+
9
+ }
10
+
11
+ end
12
+
13
+
14
+
15
+
@@ -0,0 +1,62 @@
1
+ def uploadreturnsfile
2
+ require 'net/ftp'
3
+ BasicSocket.do_not_reverse_lookup = true
4
+ @returnsftpdisplays = ""
5
+ randomnumber = rand(9999) + 1000
6
+ puts randomnumber.to_i
7
+
8
+
9
+ returns_ftpsite = "ftp.superant.com"
10
+ returns_ftplogin = "anonymous@superant.com"
11
+ returns_ftppassword = "anonymous@superant.com"
12
+ returns_ftpdirectory = "/incoming/returns/"
13
+
14
+ begin
15
+ platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
16
+ platformdisplay = platformdisplay + "Ruby Version " + VERSION + "\n"
17
+ platformdisplay = platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
18
+ platformdisplay = platformdisplay + "application name " + $rwdapplicationidentity + "\n"
19
+ platformdisplay = platformdisplay + "program directory " + $progdir + "\n"
20
+ platformdisplay = platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
21
+ platformdisplay = platformdisplay + "Date " + Date.today().to_s + "\n"
22
+ if ! @a_emailupload.empty?
23
+ platformdisplay = platformdisplay + @a_emailupload + "\n"
24
+ end
25
+ if ! @a_emailupload.empty?
26
+ platformdisplay = platformdisplay + @a_commentupload + "\n"
27
+ end
28
+ updatefile = Date.today().to_s + Resolv.getname(Resolv.getaddress("localhost")) + randomnumber.to_s
29
+
30
+ tmpdir = ENV['TMP']
31
+ if tmpdir.to_s.empty?
32
+ tmpdir = "/tmp"
33
+ end
34
+ fileName = File.join( tmpdir, updatefile)
35
+ fd = File.open(fileName,"w")
36
+ fd.print(platformdisplay) # save the record info to the file
37
+ fd.close
38
+ ftp = Net::FTP::new(returns_ftpsite)
39
+ @returnsftpdisplay = "data uploaded" + "\n"
40
+
41
+ filedirname = File.join(tmpdir,updatefile)
42
+
43
+ ftp.debug_mode = false
44
+ ftp.login(returns_ftplogin, returns_ftppassword)
45
+ ftp.chdir(returns_ftpdirectory)
46
+ print "I'm in the directory ", ftp.pwd(), "\n"
47
+
48
+ puts filedirname
49
+ ftp.puttextfile(filedirname , updatefile)
50
+ @returnsftpdisplay = @returnsftpdisplay + platformdisplay
51
+
52
+
53
+ ftp.close
54
+
55
+ rescue
56
+ @returnsftpdisplay = "upload error"
57
+ if ftp
58
+ ftp.close
59
+ end
60
+ print "ftp error"
61
+ end
62
+ end
@@ -3,19 +3,23 @@
3
3
  # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
4
  # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
5
 
6
- # return the Ruby constant
7
- def runrubyversion
8
- @rubyversion = "Version " + VERSION
9
- end
6
+
7
+
8
+
9
+ require 'resolv'
10
+ require 'date'
10
11
 
11
- # return the platform constan
12
+ # return the platform information
12
13
  def runviewplatform
13
- @platformdisplay = "Platform is " + RUBY_PLATFORM
14
+ @platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
15
+ @platformdisplay = @platformdisplay + "Ruby Version " + VERSION + "\n"
16
+ @platformdisplay = @platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
17
+ @platformdisplay = @platformdisplay + "program directory " + $progdir + "\n"
18
+ @platformdisplay = @platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
19
+ @platformdisplay = @platformdisplay + "application name " + $rwdapplicationidentity + "\n"
20
+ @platformdisplay = @platformdisplay + "Date " + Date.today().to_s
21
+
14
22
  end
15
23
 
16
- # return Rwdtinker version to diagnostic tab
17
- def rwdtinkerversiondiagnostic
18
- @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
- end
20
24
 
21
25
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.57
1
+ ##VERSION:1.61
2
2
  #language selection file
3
3
  ##NAME:$lang:0
4
4
  #$lang = "jp"
@@ -1,3 +1,3 @@
1
- ##VERSION:1.57
2
- $rwdapplicationidentity = "rwdtinker main application"
1
+ ##VERSION:1.61
2
+ $rwdapplicationidentity = "rwdschedule event book"
3
3
 
@@ -1,4 +1,4 @@
1
- ##VERSION:0.97
1
+ ##VERSION:0.98
2
2
  # rwdcalendar
3
3
  ##NAME:$extras_directory:0
4
4
  $extras_directory = "extras"
@@ -1,4 +1,4 @@
1
- ##VERSION:0.97
1
+ ##VERSION:0.98
2
2
  ##NAME:$rwdschedule_directory:0
3
3
  $rwdschedule_directory = "schedules"
4
4
  ##NAME:$rwdschedule_ftpsite:0
@@ -11,5 +11,5 @@ $rwdschedule_ftppassword = "mypassword"
11
11
  $rwdschedule_ftpdirectory = "/incoming/rwdschedules/"
12
12
  ##NAME:$rwdschedule_updatedirectory:0
13
13
  $rwdschedule_updatedirectory = "updates"
14
- RwdScheduleVersion = "0.97"
14
+ RwdScheduleVersion = "0.98"
15
15
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.58
1
+ ##VERSION:1.61
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"
@@ -12,4 +12,4 @@ LangDir = "lang"
12
12
  $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
13
13
  $port = 7705
14
14
 
15
- RwdTinkerVersion = "1.58"
15
+ RwdTinkerVersion = "1.61"
@@ -1,4 +1,4 @@
1
- ##VERSION:1.57
1
+ ##VERSION:1.61
2
2
  TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
3
3
  ##NAME:$zipslocation:0
4
4
  $zipslocation = "zips" # location of applets to add
@@ -1,3 +1,3 @@
1
1
  $rwdguivar=
2
2
  "
3
- <row> <p align=\"center\">copyright s. gibson 2004</p></row>"
3
+ <row> <p align=\"center\">copyright s. gibson 2004,2005</p></row>"
@@ -2,30 +2,26 @@ $rwdguivar=
2
2
  "
3
3
  <tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
4
4
  <horizontal>
5
- <button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
5
+ <button caption=\"View Platform Information\" action=\"runviewplatform\"/>
6
6
 
7
7
 
8
- </horizontal>
9
- <p>%rubyversion%</p>
10
-
11
-
12
- <table>
13
- <row> <p> </row>
14
-
15
- </table>
16
-
17
- <horizontal>
18
- <button caption=\"view platform\" action=\"runviewplatform\"/>
19
-
20
8
  </horizontal>
21
9
 
22
10
  <p>%platformdisplay%</p>
23
11
  <horizontal>
24
- <button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
12
+
25
13
 
26
14
  </horizontal>
27
-
28
- <p>%rwdtinkerversionreturn%</p>
15
+ <horizontal>
16
+ <button caption=\"upload this page of information to the Program Author\" action=\"uploadreturnsfile\"/>
17
+ </horizontal>
18
+ <horizontal>
19
+ <p align=\"right\">Email:(optional)</p> <text size=50 name=\"a_emailupload\"/>
20
+
21
+ </horizontal>
22
+ <p align=\"center\">Comment/Suggestion/Feature Request or Bug Report:(optional)</p> <textarea name=\"a_commentupload\"/>
23
+
24
+ <p>%returnsftpdisplay%</p>
29
25
 
30
26
  </tab>"
31
27
 
data/init.rb CHANGED
@@ -65,6 +65,9 @@ MAINconfignew = "rwdconfig.cnf"
65
65
  MAINconfigdist = "rwdconfig.dist"
66
66
  Rconftool::install(MAINconfigdist,MAINconfignew)
67
67
 
68
+ #load main config file
69
+ load 'rwdconfig.cnf'
70
+
68
71
  Dir.chdir("configuration") #changes the current working directory
69
72
 
70
73
  fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
@@ -154,6 +154,11 @@ Steven Gibson
154
154
  steven@superant.com
155
155
 
156
156
  == Changelog
157
+ version 0.98
158
+ updated for rwdtinker version 1.61
159
+ add in test harness
160
+
161
+
157
162
  version 0.97
158
163
  added rconftool use to update configuration files
159
164
  changed applet removal to not use external rm
@@ -227,6 +227,20 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.61
231
+ add in test harness
232
+ rwdtinkerwin2 help about removed
233
+ load main config file in init.rb
234
+
235
+ version 1.60
236
+ add rwdapplication info to diagnostic
237
+ turn rescue on in diagnostic upload
238
+
239
+ version 1.59
240
+ removed rwdtinkerwin2 inf file
241
+ refactored diagnotic page - one button to see all information
242
+ added bug report upload to diagnostic page
243
+
230
244
  version 1.58
231
245
  check for zlib
232
246
  check for files to delete
data/rwdconfig.dist CHANGED
@@ -1,6 +1,10 @@
1
- ##VERSION:1.57
1
+ ##VERSION:1.61
2
2
  # rwdtinker core configuration file
3
3
  ##NAME: ConfigLocation:0
4
4
  ConfigLocation=""
5
5
  ##NAME: ZipsLocation:0
6
- ZipsLocation=""
6
+ ZipsLocation=""
7
+ ##NAME:$testharnessarray:0
8
+ $testharnessarray = ["rwdtinker_all_tests"]
9
+ ##NAME:TestNow:0
10
+ TestNow=false
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.6
2
+ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: rwdschedule
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.97"
7
- date: 2005-03-06
6
+ version: "0.98"
7
+ date: 2005-03-23
8
8
  summary: rwdschedule is an calendar application using rwdtinker and RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -35,7 +35,9 @@ files:
35
35
  - code/01rwdcore/returntomain.rb
36
36
  - code/01rwdcore/rwdtinkerversion.rb
37
37
  - code/01rwdcore/rwdwindowreturn.rb
38
- - code/dd0viewphoto/dd0viewphoto.rb
38
+ - code/01rwdcore/uploadreturns.rb
39
+ - code/01rwdcore/test_cases.rb
40
+ - code/01rwdcore/test_harness.rb
39
41
  - code/superant.com.rwdtinkerbackwindow/controlclient.rb
40
42
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
41
43
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
@@ -95,8 +97,8 @@ files:
95
97
  - configuration/rwdtinker.dist
96
98
  - configuration/language.dist
97
99
  - configuration/rwdapplicationidentity.dist
98
- - configuration/rwdschedule.dist
99
100
  - configuration/rwdcalendar.dist
101
+ - configuration/rwdschedule.dist
100
102
  - extras/zip
101
103
  - extras/cmdline_parse
102
104
  - extras/config_file
@@ -170,12 +172,8 @@ files:
170
172
  - gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
171
173
  - gui/helpaboutbegin/superant.com.helpaboutbegin
172
174
  - gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
173
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout
174
175
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout
175
176
  - gui/helpaboutinstalled/superant.com.schedulehelpabout
176
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd
177
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd
178
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd
179
177
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd
180
178
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd
181
179
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd
@@ -223,7 +221,6 @@ files:
223
221
  - gui/tinkerbackwindows/superant.com.rwdschedulesback/m88menu.rwd
224
222
  - gui/tinkerbackwindows/superant.com.rwdschedulesback/m99menuend.rwd
225
223
  - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
226
- - installed/rwdtinkerwin2-0.5.inf
227
224
  - installed/rwdviewlogo-0.4.inf
228
225
  - rwd_files/favicon.ico
229
226
  - rwd_files/HowTo_Tinker.txt
@@ -242,8 +239,8 @@ files:
242
239
  - tests/rdep.rb
243
240
  - tests/checkdepends.sh
244
241
  - tests/makedist.rb
245
- - init.rb
246
242
  - Readme.txt
243
+ - init.rb
247
244
  - rwdconfig.dist
248
245
  test_files: []
249
246
  rdoc_options:
@@ -1,4 +0,0 @@
1
- def viewphoto
2
- @rwd_window = "photo"
3
-
4
- end
@@ -1,4 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <panel>
4
- <row> <p align=\"center\">#{Message[:rwdtinker_window_2]}</p></row>"
@@ -1,3 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <row> <p align=\"center\">copyright s. gibson 2004</p></row>"
@@ -1,10 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <horizontal>
4
- <button caption=#{Message[:clickfor_version]} action=\"runrwdtinkerwin2version\"/>
5
- </horizontal>
6
- <p>%rwdtinkerwin2versiondisplay%</p>
7
-
8
- </panel>"
9
-
10
-
@@ -1,8 +0,0 @@
1
- # rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
2
- configuration/ab1tinkerwin2.cnf
3
- code/xb1rwdtinkerbackwindow
4
- gui/ll5rwdtinkerwin2selectiontab
5
- gui/xb1rwdtinkerbackwindow
6
- gui/uu6rwdtinkerwin2documents
7
- gui/yg6rwdwin2helpabout
8
- rwd_files/HowTo_TinkerWin2.txt