rwdaddresses 1.02 → 1.03

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/code/01rwdcore/01rwdcore.rb +1 -1
  2. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  3. data/code/01rwdcore/rundocuments.rb +10 -0
  4. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  5. data/code/01rwdcore/runhelpabout.rb +10 -0
  6. data/code/01rwdcore/selectiontab.rb +9 -0
  7. data/code/01rwdcore/test_cases.rb +53 -59
  8. data/code/01rwdcore/test_harness.rb +1 -0
  9. data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +6 -6
  10. data/code/superant.com.rwdaddresses/jumplinkupdate.rb +11 -0
  11. data/code/superant.com.rwdaddresses/test_cases.rb +46 -0
  12. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  13. data/configuration/rwdaddresses.dist +3 -3
  14. data/configuration/rwdapplicationidentity.dist +2 -2
  15. data/configuration/rwdtinker.dist +3 -3
  16. data/configuration/tinkerwin2variables.dist +1 -1
  17. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  18. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
  19. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
  20. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +11 -0
  21. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/95jumplink.rwd +15 -0
  22. data/gui/{frontwindow0/superant.com.rwdaddresses/m99menuend.rwd → tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd} +0 -0
  23. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  24. data/rwd_files/HowTo_Addresses.txt +5 -0
  25. data/rwd_files/HowTo_Tinker.txt +9 -0
  26. data/rwd_files/tinker.png +0 -0
  27. data/rwdconfig.dist +4 -2
  28. data/tests/RubyGauge.rb +179 -0
  29. data/tests/makedist.rb +1 -0
  30. metadata +18 -21
  31. data/gui/frontwindow0/superant.com.rwdaddresses/m01menubegin.rwd +0 -10
  32. data/gui/frontwindow0/superant.com.rwdaddresses/m02menu.rwd +0 -36
  33. data/gui/frontwindow0/superant.com.rwdaddresses/m03menu.rwd +0 -12
  34. data/gui/frontwindow0/superant.com.rwdaddresses/m85menu.rwd +0 -21
  35. data/gui/frontwindow0/superant.com.rwdaddresses/m88menu.rwd +0 -12
  36. data/gui/frontwindowselections/superant.com.rwdaddressessyncselectiontab/rwdaddressessyncselectiontab.rwd +0 -12
  37. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  38. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m01menubegin.rwd +0 -10
  39. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m02menu.rwd +0 -36
  40. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m03menu.rwd +0 -12
  41. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m85menu.rwd +0 -21
  42. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m88menu.rwd +0 -18
  43. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m99menuend.rwd +0 -3
  44. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
  45. data/tests/rwdtinkertestEN.rb +0 -163
  46. data/tests/test.result +0 -32
@@ -0,0 +1,15 @@
1
+ $rwdguivar=
2
+ "
3
+ <horizontal>
4
+ <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
5
+
6
+ </horizontal>
7
+ <table>
8
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
9
+
10
+ </table>
11
+
12
+ <horizontal>
13
+ <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
14
+ </horizontal>
15
+ "
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=selectiontab caption=\"Selection Tab\">
4
+ <horizontal>
5
+ <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
6
+
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
15
+ </horizontal>
16
+ </tab>
17
+ "
@@ -147,6 +147,11 @@ erik = secret
147
147
  Thanks, Steven Gibson
148
148
 
149
149
  == Changelog
150
+ Version 1.03
151
+ fixed sync download
152
+ added more unit test
153
+ updated for rwdtinker 1.64 - jump menu added
154
+
150
155
  Version 1.02
151
156
  Export vCard
152
157
  view raw vCard
@@ -227,10 +227,19 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ Version 1.64
231
+ fixed jump with no location
232
+
233
+ Version 1.63
234
+ changed handling of application name returned
235
+ added jump seletion options
236
+ added some unit tests
237
+
230
238
  version 1.62
231
239
  improve distro release script
232
240
  code cleanup
233
241
  removed redundent network code
242
+ change handling of window and tab jumps
234
243
 
235
244
  version 1.61
236
245
  add in test harness
Binary file
data/rwdconfig.dist CHANGED
@@ -1,4 +1,4 @@
1
- ##VERSION:1.62
1
+ ##VERSION:1.63
2
2
  # rwdtinker core configuration file
3
3
  ##NAME: ConfigLocation:0
4
4
  ConfigLocation=""
@@ -7,4 +7,6 @@ ConfigLocation=""
7
7
  ##NAME:$testharnessarray:0
8
8
  $testharnessarray = ["rwdtinker_all_tests"]
9
9
  ##NAME:TestNow:0
10
- TestNow=false
10
+ TestNow=false # turning this on will run the unit tests
11
+ ##NAME:$testharness:0
12
+ $testharness=true
@@ -0,0 +1,179 @@
1
+ #--------------------------------------------------------------------#
2
+ # #
3
+ # RubyGauge version 1 #
4
+ # Copyright (c) 2005, Harrison Ainsworth. #
5
+ # #
6
+ # http://hxa7241.org/ #
7
+ # #
8
+ #--------------------------------------------------------------------#
9
+
10
+
11
+
12
+
13
+ require 'find'
14
+
15
+
16
+
17
+
18
+ # Counts lines of code in ruby source files.
19
+ #
20
+ # just a simple example ruby program, produced as an exercise.
21
+ #
22
+ # * directories are looked in recursively for source files
23
+ # * source files with the following name extensions are recognized:
24
+ # .rb .rbw
25
+ # * a line is counted as code if it is not empty and not solely comment
26
+ #
27
+ # == requirements
28
+ # ruby 1.8
29
+ #
30
+ # == usage
31
+ # RubyGauge.rb [-f...] (file|directory)pathname ...
32
+ # RubyGauge.rb -help|-?
33
+ #
34
+ # switches:
35
+ # -f<[l|s][1|2]> set output format to long/short, linecount only /
36
+ # linecount and filecount (defaults to -fl2)
37
+ # -help|-? prints this message
38
+ #
39
+ # ==acknowledgements
40
+ # * ruby: http://ruby-lang.org/
41
+ # * the pragmaticprogrammers pickaxe book:
42
+ # http://phrogz.net/ProgrammingRuby/
43
+ # * rubygarden: http://rubygarden.org/ruby?CodingInRuby
44
+ #
45
+ # == license
46
+ # this software is too short and insignificant to have a license.
47
+
48
+ module RubyGauge
49
+
50
+ # Entry point if run from the command line.
51
+ #
52
+ # Reads command line args, writes output to stdout.
53
+ #
54
+ def RubyGauge.main
55
+
56
+ # check if help message needed
57
+ if $*.empty? || !(RubyGauge.getSwitchs( $*, '(help|\?)' ).empty?)
58
+
59
+ puts "\n#{@@BANNER}\n#{@@HELP}"
60
+
61
+ else
62
+
63
+ # count
64
+ pathnames = RubyGauge.getTokens( $*, '^[^-\/]', ' ' )
65
+
66
+ fileCount = []
67
+ lineCount = RubyGauge.countLinesInFileTree( pathnames, fileCount )
68
+
69
+ # output counts
70
+ format = RubyGauge.getSwitchs( $*, 'f', '-fl2' ).last[2,2]
71
+
72
+ (@@LINES_FORMAT = { 's' => "#{lineCount}" }).default = "\n #{lineCount} line#{lineCount == 1 ? '' : 's'} of code\n"
73
+ (@@FILES_FORMAT = { 's' => " #{fileCount}" }).default = " #{fileCount[0]} file#{fileCount[0] == 1 ? '' : 's'}\n"
74
+ print @@LINES_FORMAT[format[0,1]]
75
+ print @@FILES_FORMAT[format[0,1]] unless format[1,1] == '1'
76
+
77
+ end
78
+
79
+ end
80
+
81
+
82
+ def RubyGauge.getSwitchs( commandline, pattern, default=nil )
83
+
84
+ RubyGauge.getTokens( commandline, '^(-|\/)' + pattern, default )
85
+
86
+ end
87
+
88
+
89
+ def RubyGauge.getTokens( commandline, pattern, default=nil )
90
+
91
+ tokens = []
92
+
93
+ commandline.each do |token|
94
+ if token =~ /#{pattern}/
95
+ tokens.push token
96
+ end
97
+ end
98
+
99
+ if tokens.empty? && default
100
+ tokens.push default
101
+ end
102
+
103
+ tokens
104
+
105
+ end
106
+
107
+
108
+ # Counts lines of ruby code in filetree recursively.
109
+ #
110
+ # A line is counted as code if it is not empty and not solely comment.
111
+ #
112
+ # == parameters
113
+ # * pathnames: Array of String of file or directory pathname
114
+ # (relative or absolute)
115
+ # * fileCount: Array of Numeric, length 1. Just an example of a
116
+ # 'reference' parameter
117
+ # * return: Fixnum of the line count
118
+ #
119
+ def RubyGauge.countLinesInFileTree( pathnames, fileCount=[] )
120
+
121
+ fileCount[0] = 0
122
+ lineCount = 0
123
+
124
+ # scan directory tree
125
+ Find.find( *pathnames ) do |fileOrDirName|
126
+
127
+ # filter file types (to ruby)
128
+ if FileTest.file?( fileOrDirName ) &&
129
+ FileTest.readable?( fileOrDirName ) &&
130
+ fileOrDirName =~ /\.(rb|rbw)\Z/
131
+
132
+ fileCount[0] += 1
133
+
134
+ filePathname = File.expand_path( fileOrDirName )
135
+
136
+ # read file
137
+ File.open( filePathname, 'r' ) do |file|
138
+
139
+ # scan file lines
140
+ file.each_line do |line|
141
+ # select non blank, non comment-only line
142
+ unless line =~ /^\s*(#|\Z)/
143
+ lineCount += 1
144
+ end
145
+ end
146
+
147
+ end
148
+
149
+ end
150
+ end
151
+
152
+ lineCount
153
+
154
+ end
155
+
156
+
157
+ @@BANNER = "-------------------------------------------------------------\n" +
158
+ "RubyGauge 2005 (v1)\n" +
159
+ "Copyright (c) 2005, Harrison Ainsworth.\n\n" +
160
+ "http://hxa7241.org/\n" +
161
+ "-------------------------------------------------------------\n"
162
+
163
+ @@HELP = "RubyGauge counts lines of code in ruby source files.\n\n" +
164
+ "* directories are looked in recursively for source files\n" +
165
+ "* source files with the following name extensions are recognized: .rb .rbw\n" +
166
+ "* a line is counted as code if it is not empty and not solely comment\n" +
167
+ "\nusage:\n" +
168
+ " RubyGauge.rb [-f...] (file|directory)pathname ...\n" +
169
+ " RubyGauge.rb -help|-?\n" +
170
+ "\nswitches:\n" +
171
+ " -f<[l|s][1|2]> set output format to long/short, linecount only / linecount and filecount (defaults to -fl2)\n" +
172
+ " -help|-? prints this message\n"
173
+
174
+ end
175
+
176
+
177
+
178
+
179
+ RubyGauge.main
data/tests/makedist.rb CHANGED
@@ -6,6 +6,7 @@
6
6
  #***********************************************************************/
7
7
  $progdir =""
8
8
  require 'fileutils'
9
+ load 'rwdconfig.dist'
9
10
  DistroName = "rwdaddresses"
10
11
  load "configuration/#{DistroName}.dist"
11
12
  DistroVersion=RwdAddressesVersion
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: rwdaddresses
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.02"
7
- date: 2005-03-28
6
+ version: "1.03"
7
+ date: 2005-04-10
8
8
  summary: rwdaddresses is contact book application using rwdtinker and RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -38,6 +38,11 @@ files:
38
38
  - code/01rwdcore/uploadreturns.rb
39
39
  - code/01rwdcore/test_cases.rb
40
40
  - code/01rwdcore/test_harness.rb
41
+ - code/01rwdcore/jumplinkcommand.rb
42
+ - code/01rwdcore/selectiontab.rb
43
+ - code/01rwdcore/rundocuments.rb
44
+ - code/01rwdcore/runhelpabout.rb
45
+ - code/01rwdcore/runeditconfiguration.rb
41
46
  - code/superant.com.rwdtinkerbackwindow/controlclient.rb
42
47
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
43
48
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
@@ -60,6 +65,7 @@ files:
60
65
  - code/superant.com.rwdtinkerbackwindow/remotegemlist.rb
61
66
  - code/superant.com.rwdtinkerbackwindow/installremotegem.rb
62
67
  - code/superant.com.rwdtinkerbackwindow/listgemzips.rb
68
+ - code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb
63
69
  - code/zz0applicationend/zz0end.rb
64
70
  - code/superant.com.rwdaddresses/attachtmpcontactphoto.rb
65
71
  - code/superant.com.rwdaddresses/clearscreendisplay.rb
@@ -91,6 +97,8 @@ files:
91
97
  - code/superant.com.rwdaddresses/listvcardrecord.rb
92
98
  - code/superant.com.rwdaddresses/savevcardrecord.rb
93
99
  - code/superant.com.rwdaddresses/viewvcarddata.rb
100
+ - code/superant.com.rwdaddresses/jumplinkupdate.rb
101
+ - code/superant.com.rwdaddresses/test_cases.rb
94
102
  - configuration/tinkerwin2variables.dist
95
103
  - configuration/rwdtinker.dist
96
104
  - configuration/language.dist
@@ -143,18 +151,10 @@ files:
143
151
  - gui/frontwindow0/superant.com.rwdaddresses/13listnamerecordfiles.rwd
144
152
  - gui/frontwindow0/superant.com.rwdaddresses/16editrecord.rwd
145
153
  - gui/frontwindow0/superant.com.rwdaddresses/18contactutilities.rwd
146
- - gui/frontwindow0/superant.com.rwdaddresses/m01menubegin.rwd
147
- - gui/frontwindow0/superant.com.rwdaddresses/m02menu.rwd
148
- - gui/frontwindow0/superant.com.rwdaddresses/m03menu.rwd
149
- - gui/frontwindow0/superant.com.rwdaddresses/m85menu.rwd
150
- - gui/frontwindow0/superant.com.rwdaddresses/m88menu.rwd
151
- - gui/frontwindow0/superant.com.rwdaddresses/m99menuend.rwd
152
154
  - gui/frontwindow0/superant.com.rwdaddresses/17viewvcardrecord.rwd
153
155
  - gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
154
156
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
155
- - gui/frontwindowselections/superant.com.rwdaddressessyncselectiontab
156
- - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
157
- - gui/frontwindowselections/superant.com.rwdaddressessyncselectiontab/rwdaddressessyncselectiontab.rwd
157
+ - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd
158
158
  - gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd
159
159
  - gui/frontwindowtdocumentbegin/superant.com.documentsbegin
160
160
  - gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd
@@ -190,9 +190,9 @@ files:
190
190
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
191
191
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
192
192
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd
193
- - gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
194
193
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
195
194
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd
195
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd
196
196
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
197
197
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
198
198
  - gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
@@ -201,12 +201,9 @@ files:
201
201
  - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd
202
202
  - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd
203
203
  - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/88viewconfiguration.rwd
204
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m01menubegin.rwd
205
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m02menu.rwd
206
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m03menu.rwd
207
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m85menu.rwd
208
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m88menu.rwd
209
- - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m99menuend.rwd
204
+ - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd
205
+ - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/95jumplink.rwd
206
+ - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd
210
207
  - gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/zvbackend.rwd
211
208
  - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
212
209
  - installed/rwdviewlogo-0.4.inf
@@ -217,19 +214,19 @@ files:
217
214
  - rwd_files/Readme.txt
218
215
  - rwd_files/rwdapplications.html
219
216
  - rwd_files/rwdindex.html
217
+ - rwd_files/tinker.png
220
218
  - rwd_files/HowTo_Addresses.txt
221
219
  - rwd_files/contacttmp.jpg
222
220
  - zips/rwdahelloworld-0.5.zip
223
- - tests/rwdtinkertestEN.rb
224
- - tests/test.result
221
+ - tests/RubyGauge.rb
225
222
  - tests/totranslate.lang
226
223
  - tests/cleancnf.sh
227
224
  - tests/rdep.rb
228
225
  - tests/checkdepends.sh
229
226
  - tests/makedist.rb
230
- - Readme.txt
231
227
  - init.rb
232
228
  - rwdconfig.dist
229
+ - Readme.txt
233
230
  test_files: []
234
231
  rdoc_options:
235
232
  - "--main"
@@ -1,10 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <tab name=\"rwdaddressessselectiontab\" caption=\"Rwdaddresses Menu\">
4
-
5
- <table>
6
- <row> <p align=\"right\">Select the RwdAddresses Tab</row>
7
-
8
- </table>
9
- "
10
-
@@ -1,36 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <row> <p></row>
4
-
5
- <horizontal>
6
-
7
- <button caption=\"View Contact\" action=\"runrwdaddressesmenu1\"/>
8
- <p>Open View Contact - see data or photo Tab.......................................................................</p>
9
-
10
- </horizontal>
11
-
12
- <horizontal>
13
-
14
- <button caption=\"Edit Contact\" action=\"runrwdaddressesmenu2\"/>
15
- <p>Open Edit Contact Screen to create new record or change data Tab......................................</p>
16
-
17
- </horizontal>
18
-
19
- <horizontal>
20
- <button caption=\"Contact Utilities Screen\" action=\"runrwdaddressesmenu3\"/>
21
- <p>Open Contact Utilities - rename, delete, attach photos Tab.................................</p>
22
- </horizontal>
23
-
24
- <horizontal>
25
- <button caption=\"Contact Data Sync Screen\" action=\"runrwdaddressesmenu4\"/>
26
- <p>Open Contact Sync - upload and download Addresses data Tab.....................</p>
27
- </horizontal>
28
-
29
- <horizontal>
30
-
31
- <button caption=\"RwdAddresses Configuration Editing Screen\" action=\"runrwdaddressesmenu10\"/>
32
- <p> Open Configuration File to View or Edit Tab.....................</p>
33
- </horizontal>
34
-
35
- "
36
-
@@ -1,12 +0,0 @@
1
- $rwdguivar=
2
- "
3
- <row> <p></row>
4
-
5
- <horizontal>
6
-
7
- <button caption=\"Rwdaddresses Back Window\" action=\"runrwdaddressessyncbackwindow\"/>
8
- <p>Open RwdAddresses Data Sync back window...........................................</p>
9
-
10
- </horizontal>"
11
-
12
-