rwdtinker 1.60 → 1.61

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.
@@ -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
+
@@ -1,4 +1,4 @@
1
- ##VERSION:1.60
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.60"
15
+ RwdTinkerVersion = "1.61"
@@ -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>"
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
@@ -227,6 +227,9 @@ 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
+
230
233
  version 1.60
231
234
  add rwdapplication info to diagnostic
232
235
  turn rescue on in diagnostic upload
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
@@ -3,8 +3,8 @@ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: rwdtinker
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.60"
7
- date: 2005-03-12
6
+ version: "1.61"
7
+ date: 2005-03-20
8
8
  summary: rwdtinker application is a framework to program for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -36,6 +36,8 @@ files:
36
36
  - code/01rwdcore/rwdtinkerversion.rb
37
37
  - code/01rwdcore/rwdwindowreturn.rb
38
38
  - code/01rwdcore/uploadreturns.rb
39
+ - code/01rwdcore/test_cases.rb
40
+ - code/01rwdcore/test_harness.rb
39
41
  - code/dd0viewphoto/dd0viewphoto.rb
40
42
  - code/superant.com.rwdtinkerbackwindow/controlclient.rb
41
43
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
@@ -101,11 +103,7 @@ files:
101
103
  - gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
102
104
  - gui/helpaboutbegin/superant.com.helpaboutbegin
103
105
  - gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
104
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout
105
106
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout
106
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd
107
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd
108
- - gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd
109
107
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd
110
108
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd
111
109
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd
@@ -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
-