rwdmovies 0.93 → 0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +3 -0
- data/code/01rwdcore/01rwdcore.rb +15 -13
- data/code/01rwdcore/openhelpwindow.rb +26 -26
- data/code/01rwdcore/returntomain.rb +8 -8
- data/code/01rwdcore/rwdtinkerversion.rb +12 -13
- data/code/01rwdcore/rwdwindowreturn.rb +3 -5
- data/code/01rwdcore/test_cases.rb +115 -0
- data/code/01rwdcore/test_harness.rb +12 -0
- data/code/01rwdcore/uploadreturns.rb +60 -61
- data/code/superant.com.rwdmovies/amazonsearch.rb +8 -2
- data/code/superant.com.rwdmovies/attachtmpmoviepicture.rb +24 -24
- data/code/superant.com.rwdmovies/createmovierecord.rb +20 -20
- data/code/superant.com.rwdmovies/deletemovierecord.rb +21 -21
- data/code/superant.com.rwdmovies/downloadpic.rb +21 -23
- data/code/superant.com.rwdmovies/eo2viewmoviephoto.rb +13 -18
- data/code/superant.com.rwdmovies/gl7clearscreendisplay.rb +12 -15
- data/code/superant.com.rwdmovies/listmoviefiles.rb +10 -14
- data/code/superant.com.rwdmovies/loadconfigurationrecord.rb +28 -33
- data/code/superant.com.rwdmovies/loadconfigurationvariables.rb +13 -13
- data/code/superant.com.rwdmovies/openhelpwindowrwdmovies.rb +21 -26
- data/code/superant.com.rwdmovies/openmoviedata.rb +27 -27
- data/code/superant.com.rwdmovies/renamemovie.rb +11 -12
- data/code/superant.com.rwdmovies/returntomain.rb +7 -7
- data/code/superant.com.rwdmovies/runrwdmoviesbackwindow.rb +8 -8
- data/code/superant.com.rwdmovies/rwdmovieshelpabout.rb +10 -12
- data/code/superant.com.rwdmovies/saveconfigurationrecord.rb +18 -18
- data/code/superant.com.rwdmovies/savemoviechanges.rb +18 -18
- data/code/superant.com.rwdmovies/showamazonsettings.rb +7 -4
- data/code/superant.com.rwdmovies/viewrwdmoviesconfiguration.rb +21 -21
- data/code/superant.com.rwdmovies/viewtmppictures.rb +5 -5
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -21
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
- data/configuration/language.dist +1 -1
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdmovies.dist +2 -2
- data/configuration/rwdtinker.dist +2 -2
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +1 -1
- data/init.rb +231 -228
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/rwd_files/HowTo_Movies.txt +3 -0
- data/rwd_files/HowTo_Tinker.txt +10 -0
- data/rwd_files/moviestmp.jpg +0 -0
- data/rwdconfig.dist +6 -2
- data/tests/makedist.rb +37 -8
- metadata +7 -9
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +0 -10
- data/rwd_files/tinker.png +0 -0
data/init.rb
CHANGED
@@ -24,251 +24,254 @@
|
|
24
24
|
require "ev/rwd"
|
25
25
|
require 'fileutils'
|
26
26
|
require 'extras/rconftool'
|
27
|
-
|
27
|
+
|
28
28
|
$progdir = File::expand_path( File.dirname(__FILE__))
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
30
|
+
$tempdoc = " "
|
31
|
+
|
32
|
+
def findfiles(d)
|
33
|
+
a = Array.new(Dir[d].entries.sort)
|
34
|
+
#loop through and get the files names
|
35
|
+
a.each do |x|
|
36
|
+
#adjust the filters to the files you want to see...
|
37
|
+
if(!test(?d,x))
|
38
|
+
# only rwd files
|
39
|
+
if x =~ /rb|rwd|txt/
|
40
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
41
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
42
|
+
fileA.close
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
def loadguifile(d)
|
48
|
+
a = Array.new(Dir[d].entries.sort)
|
49
|
+
#loop through and get the files names
|
50
|
+
a.each do |x|
|
51
|
+
#adjust the filters to the files you want to see...
|
52
|
+
if(!test(?d,x))
|
53
|
+
# only rwd files
|
54
|
+
if x =~ /rb|rwd|txt/
|
55
|
+
|
56
|
+
load x #opens the file thats in fileName and reads it
|
57
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
63
|
# integrate the new configuration files
|
64
64
|
MAINconfignew = "rwdconfig.cnf"
|
65
65
|
MAINconfigdist = "rwdconfig.dist"
|
66
66
|
Rconftool::install(MAINconfigdist,MAINconfignew)
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
68
|
+
#load main config file
|
69
|
+
load 'rwdconfig.cnf'
|
70
|
+
|
71
|
+
Dir.chdir("configuration") #changes the current working directory
|
72
|
+
|
73
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
|
74
|
+
@doc = ""
|
75
|
+
fileList.length.times{ #opening of a block
|
76
|
+
configdist =fileList.pop #pops the first item out of the Array
|
74
77
|
tempconfigfile = configdist.gsub(/\.dist$/, "")
|
75
78
|
confignew = tempconfigfile + ".cnf"
|
76
79
|
Rconftool::install(configdist,confignew) #integrates new file with old
|
77
80
|
} #closing block
|
78
|
-
|
79
|
-
Dir.chdir($progdir)
|
80
|
-
|
81
|
-
# Read in the configuration files
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
81
|
+
# END of configuration integration
|
82
|
+
Dir.chdir($progdir)
|
83
|
+
|
84
|
+
# Read in the configuration files
|
85
|
+
Dir.chdir("configuration") #changes the current working directory
|
86
|
+
|
87
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
88
|
+
@doc = ""
|
89
|
+
fileList.length.times{ #opening of a block
|
90
|
+
fileName=fileList.pop #pops the first item out of the Array
|
91
|
+
load fileName #loads the the config file thats in fileName
|
89
92
|
} #closing block
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
93
|
+
# END of configuration reading
|
94
|
+
|
95
|
+
Dir.chdir($progdir) # change back to top program directory
|
96
|
+
|
97
|
+
# build the English Language hash file from the parts
|
98
|
+
languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
99
|
+
langmessage = {' + "\n"
|
100
|
+
startlangdir = File.join(LangDir,"en")
|
101
|
+
#get a list of the files and subdirectories on the starting directory only
|
102
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
103
|
+
#loop through the list, ignore the files and add all new directories found
|
104
|
+
alanghash.each do |x|
|
105
|
+
#if a directory...
|
106
|
+
if(test(?d,x))
|
107
|
+
# add to the original list of directories
|
108
|
+
@@tmproot = x + "/**"
|
109
|
+
#adds the new ones to the array
|
110
|
+
blanghash = Dir[@@tmproot].entries.sort
|
111
|
+
blanghash.each do |x|
|
112
|
+
if(test(?d,x))
|
113
|
+
alanghash.push(x) #appends to the end of the array...
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
alanghash.each do |x|
|
119
|
+
#if it is a file...
|
120
|
+
if(!test(?d,x))
|
121
|
+
alanghash.delete(x)
|
122
|
+
else #it is a directory...
|
123
|
+
findfiles(x + "/**")
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
|
128
|
+
#writes the contents of doc into the languagehashvariable
|
126
129
|
languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
|
127
|
-
|
128
|
-
|
130
|
+
|
131
|
+
# END of en Lang building
|
129
132
|
$tempdoc = " "
|
130
133
|
Dir.chdir($progdir) # change back to top program directory
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
134
|
+
|
135
|
+
# build the local Language hash file from the parts
|
136
|
+
startlangdir = File.join(LangDir,$lang)
|
137
|
+
#get a list of the files and subdirectories on the starting directory only
|
138
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
139
|
+
#loop through the list, ignore the files and add all new directories found
|
140
|
+
alanghash.each do |x|
|
141
|
+
#if a directory...
|
142
|
+
if(test(?d,x))
|
143
|
+
# add to the original list of directories
|
144
|
+
@@tmproot = x + "/**"
|
145
|
+
#adds the new ones to the array
|
146
|
+
blanghash = Dir[@@tmproot].entries.sort
|
147
|
+
blanghash.each do |x|
|
148
|
+
if(test(?d,x))
|
149
|
+
alanghash.push(x) #appends to the end of the array...
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
alanghash.each do |x|
|
155
|
+
#if it is a file...
|
156
|
+
if(!test(?d,x))
|
157
|
+
alanghash.delete(x)
|
158
|
+
else #it is a directory...
|
159
|
+
findfiles(x + "/**")
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
|
164
|
+
#writes the contents of doc into the variable
|
162
165
|
languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
163
|
-
|
164
166
|
|
165
|
-
$tempdoc = " "
|
166
|
-
|
167
|
-
Dir.chdir($progdir) # change back to top program directory
|
168
|
-
|
169
|
-
temp = eval( languagehashvariable )
|
170
|
-
|
171
|
-
$tempdoc = " "
|
172
|
-
|
173
|
-
# build the actual program from the code parts
|
174
|
-
#get a list of the files and subdirectories on the starting directory only
|
175
|
-
a = Array.new(Dir[CodeDir].entries.sort)
|
176
|
-
#loop through the list, ignore the files and add all new directories found
|
177
|
-
a.each do |x|
|
178
|
-
#if a directory...
|
179
|
-
if(test(?d,x))
|
180
|
-
# add to the original list of directories
|
181
|
-
@@root = x + "/**"
|
182
|
-
#adds the new ones to the array
|
183
|
-
b = Dir[@@root].entries.sort
|
184
|
-
b.each do |x|
|
185
|
-
if(test(?d,x))
|
186
|
-
a.push(x) #appends to the end of the array...
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
end
|
191
|
-
a.each do |x|
|
192
|
-
#if it is a file...
|
193
|
-
if(!test(?d,x))
|
194
|
-
a.delete(x)
|
195
|
-
else #it is a directory...
|
196
|
-
findfiles(x + "/**")
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
|
-
|
201
|
-
# load the program file
|
202
|
-
tempcoderesult = eval( $tempdoc )
|
203
|
-
|
204
|
-
# build the actual GUI from the gui parts
|
205
|
-
$tempdoc = " "
|
206
|
-
#get a list of the files and subdirectories on the starting directory only
|
207
|
-
a = Array.new(Dir[GuiDir].entries.sort)
|
208
|
-
#loop through the list, ignore the files and add all new directories found
|
209
|
-
a.each do |x|
|
210
|
-
#if a directory...
|
211
|
-
if(test(?d,x))
|
212
|
-
#use this new dir find to add to the original list of directories
|
213
|
-
@@root = x + "/**"
|
214
|
-
#adds the new ones to the array
|
215
|
-
b = Dir[@@root].entries.sort
|
216
|
-
b.each do |x|
|
217
|
-
if(test(?d,x))
|
218
|
-
a.push(x) #appends to the end of the array...
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
a.each do |x|
|
224
|
-
#if it is a file...
|
225
|
-
if(!test(?d,x))
|
226
|
-
a.delete(x)
|
227
|
-
|
228
|
-
else #it is a directory...
|
229
|
-
loadguifile(x + "/**")
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
# gui variable is done
|
234
|
-
guiRWD = $tempdoc
|
235
|
-
|
236
|
-
require 'socket' # Network stuff
|
237
|
-
host = "127.0.0.1"
|
238
|
-
port = $port
|
239
|
-
|
240
|
-
# Create a socket to listen on and bind it to the host and port
|
241
|
-
freeportfound = false
|
242
|
-
until freeportfound
|
243
|
-
begin
|
244
|
-
@socket = UDPSocket::new()
|
245
|
-
@socket.bind(host, port)
|
246
|
-
freeportfound = true
|
247
|
-
$port = port
|
248
|
-
# Rescue the "Address in use" error
|
249
|
-
rescue Errno::EADDRINUSE
|
250
|
-
puts "RWD Startup: Port #{port} on host #{host} is already in use."
|
251
|
-
port=port +1
|
252
|
-
puts "trying port: #{port}"
|
253
|
-
# Rescue the "Address not available' error
|
254
|
-
rescue Errno::EADDRNOTAVAIL
|
255
|
-
puts "RWD Startup: Address #{host} is not available to bind."
|
256
|
-
port =port + 1
|
257
|
-
puts "trying port: #{port}"
|
258
|
-
# Rescue "permission denied errors
|
259
|
-
rescue Errno::EACCES
|
260
|
-
puts "RWD Startup: Access denied when binding interface addresses. ?"
|
261
|
-
port =port + 1
|
262
|
-
puts "trying port: #{port}"
|
263
|
-
# Rescue all other errors
|
264
|
-
rescue
|
265
|
-
puts "RWD Startup: An error occured."
|
266
|
-
port =port + 1
|
267
|
-
puts "trying port: #{port}"
|
268
|
-
# Rescue all other errors
|
269
|
-
end
|
270
167
|
|
271
|
-
|
168
|
+
$tempdoc = " "
|
169
|
+
|
170
|
+
Dir.chdir($progdir) # change back to top program directory
|
171
|
+
|
172
|
+
temp = eval( languagehashvariable )
|
173
|
+
|
174
|
+
$tempdoc = " "
|
175
|
+
|
176
|
+
# build the actual program from the code parts
|
177
|
+
#get a list of the files and subdirectories on the starting directory only
|
178
|
+
a = Array.new(Dir[CodeDir].entries.sort)
|
179
|
+
#loop through the list, ignore the files and add all new directories found
|
180
|
+
a.each do |x|
|
181
|
+
#if a directory...
|
182
|
+
if(test(?d,x))
|
183
|
+
# add to the original list of directories
|
184
|
+
@@root = x + "/**"
|
185
|
+
#adds the new ones to the array
|
186
|
+
b = Dir[@@root].entries.sort
|
187
|
+
b.each do |x|
|
188
|
+
if(test(?d,x))
|
189
|
+
a.push(x) #appends to the end of the array...
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
a.each do |x|
|
195
|
+
#if it is a file...
|
196
|
+
if(!test(?d,x))
|
197
|
+
a.delete(x)
|
198
|
+
else #it is a directory...
|
199
|
+
findfiles(x + "/**")
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
|
204
|
+
# load the program file
|
205
|
+
tempcoderesult = eval( $tempdoc )
|
206
|
+
|
207
|
+
# build the actual GUI from the gui parts
|
208
|
+
$tempdoc = " "
|
209
|
+
#get a list of the files and subdirectories on the starting directory only
|
210
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
211
|
+
#loop through the list, ignore the files and add all new directories found
|
212
|
+
a.each do |x|
|
213
|
+
#if a directory...
|
214
|
+
if(test(?d,x))
|
215
|
+
#use this new dir find to add to the original list of directories
|
216
|
+
@@root = x + "/**"
|
217
|
+
#adds the new ones to the array
|
218
|
+
b = Dir[@@root].entries.sort
|
219
|
+
b.each do |x|
|
220
|
+
if(test(?d,x))
|
221
|
+
a.push(x) #appends to the end of the array...
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
a.each do |x|
|
227
|
+
#if it is a file...
|
228
|
+
if(!test(?d,x))
|
229
|
+
a.delete(x)
|
230
|
+
|
231
|
+
else #it is a directory...
|
232
|
+
loadguifile(x + "/**")
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# gui variable is done
|
237
|
+
guiRWD = $tempdoc
|
238
|
+
|
239
|
+
require 'socket' # Network stuff
|
240
|
+
host = "127.0.0.1"
|
241
|
+
port = $port
|
242
|
+
|
243
|
+
# Create a socket to listen on and bind it to the host and port
|
244
|
+
freeportfound = false
|
245
|
+
until freeportfound
|
246
|
+
begin
|
247
|
+
@socket = UDPSocket::new()
|
248
|
+
@socket.bind(host, port)
|
249
|
+
freeportfound = true
|
250
|
+
$port = port
|
251
|
+
# Rescue the "Address in use" error
|
252
|
+
rescue Errno::EADDRINUSE
|
253
|
+
puts "RWD Startup: Port #{port} on host #{host} is already in use."
|
254
|
+
port=port +1
|
255
|
+
puts "trying port: #{port}"
|
256
|
+
# Rescue the "Address not available' error
|
257
|
+
rescue Errno::EADDRNOTAVAIL
|
258
|
+
puts "RWD Startup: Address #{host} is not available to bind."
|
259
|
+
port =port + 1
|
260
|
+
puts "trying port: #{port}"
|
261
|
+
# Rescue "permission denied errors
|
262
|
+
rescue Errno::EACCES
|
263
|
+
puts "RWD Startup: Access denied when binding interface addresses. ?"
|
264
|
+
port =port + 1
|
265
|
+
puts "trying port: #{port}"
|
266
|
+
# Rescue all other errors
|
267
|
+
rescue
|
268
|
+
puts "RWD Startup: An error occured."
|
269
|
+
port =port + 1
|
270
|
+
puts "trying port: #{port}"
|
271
|
+
# Rescue all other errors
|
272
|
+
end
|
273
|
+
|
274
|
+
end
|
272
275
|
|
273
276
|
|
274
|
-
RwdTinker.new( guiRWD).serve(port) # start the main class and program
|
277
|
+
RwdTinker.new( guiRWD).serve(port) # start the main class and program
|
data/rwd_files/HowTo_Movies.txt
CHANGED
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -227,6 +227,16 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
227
227
|
Thanks, Steven Gibson
|
228
228
|
|
229
229
|
== Changelog
|
230
|
+
version 1.62
|
231
|
+
improve distro release script
|
232
|
+
code cleanup
|
233
|
+
removed redundent network code
|
234
|
+
|
235
|
+
version 1.61
|
236
|
+
add in test harness
|
237
|
+
rwdtinkerwin2 help about removed
|
238
|
+
load main config file in init.rb
|
239
|
+
|
230
240
|
version 1.60
|
231
241
|
add rwdapplication info to diagnostic
|
232
242
|
turn rescue on in diagnostic upload
|
data/rwd_files/moviestmp.jpg
CHANGED
Binary file
|
data/rwdconfig.dist
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.62
|
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
|
data/tests/makedist.rb
CHANGED
@@ -1,29 +1,58 @@
|
|
1
1
|
#!/usr/bin/ruby -w
|
2
2
|
#***********************************************************************
|
3
|
-
#* Rwd/
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
4
|
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
5
|
#* at "steven@superant.com".
|
6
6
|
#***********************************************************************/
|
7
|
-
|
7
|
+
$progdir =""
|
8
8
|
require 'fileutils'
|
9
|
-
|
9
|
+
DistroName = "rwdmovies"
|
10
|
+
load "configuration/#{DistroName}.dist"
|
11
|
+
DistroVersion=RwdMoviesVersion
|
12
|
+
|
13
|
+
DistroTitle="#{DistroName}-#{DistroVersion}"
|
14
|
+
|
15
|
+
|
10
16
|
|
11
17
|
$progdir = File::expand_path( File.dirname(__FILE__))
|
12
18
|
results = " "
|
13
|
-
|
19
|
+
|
20
|
+
puts "creating #{DistroName} distribution files version #{DistroVersion}"
|
14
21
|
puts "cleaning conf files"
|
15
22
|
`tests/cleancnf.sh`
|
16
23
|
puts "moving up one directory"
|
17
24
|
Dir.chdir("..")
|
18
25
|
|
19
|
-
|
26
|
+
|
27
|
+
|
28
|
+
FileUtils.rm_rf("#{DistroTitle}.zip")
|
29
|
+
zipcreatecmd = "zip -r #{DistroTitle}.zip #{DistroName}"
|
20
30
|
puts "#{zipcreatecmd}"
|
21
31
|
`#{zipcreatecmd}`
|
22
|
-
tarcreatecmd = "tar --gzip -cf
|
32
|
+
tarcreatecmd = "tar --gzip -cf #{DistroTitle}.tar.gz #{DistroName}"
|
23
33
|
puts "#{tarcreatecmd}"
|
24
34
|
`#{tarcreatecmd}`
|
25
|
-
tarcreatecmd2 = "tar --bzip2 -cf
|
35
|
+
tarcreatecmd2 = "tar --bzip2 -cf #{DistroTitle}.tar.bz2 #{DistroName}"
|
26
36
|
puts "#{tarcreatecmd2}"
|
27
37
|
`#{tarcreatecmd2}`
|
28
38
|
|
29
|
-
|
39
|
+
gemspecfilename = "#{DistroTitle}.gemspec"
|
40
|
+
tobject = Time.now
|
41
|
+
year = tobject.year.to_s
|
42
|
+
month = tobject.mon.to_s
|
43
|
+
daydate = tobject.day.to_s
|
44
|
+
|
45
|
+
fd = File.open(gemspecfilename,"w")
|
46
|
+
fd.print("Gem::Specification.new do |s|\n")
|
47
|
+
fd.print(" s.name = %q{#{DistroName}}\n")
|
48
|
+
fd.print(" s.version = \"#{DistroVersion}\"\n")
|
49
|
+
fd.print(" s.date = %q{#{year}-#{month}-#{daydate}}")
|
50
|
+
load "#{DistroName}/tests/gemspec"
|
51
|
+
fd.print($gemspecvar)
|
52
|
+
fd.close
|
53
|
+
|
54
|
+
ListingCommand = "ls -1 -s -h #{DistroTitle}*"
|
55
|
+
|
56
|
+
puts `#{ListingCommand}`
|
57
|
+
|
58
|
+
print "Build finished\n"
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.8
|
3
3
|
specification_version: 1
|
4
4
|
name: rwdmovies
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2005-03-
|
6
|
+
version: "0.94"
|
7
|
+
date: 2005-03-29
|
8
8
|
summary: rwdmovies application is a movie database using 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/superant.com.rwdtinkerbackwindow/controlclient.rb
|
40
42
|
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
41
43
|
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
@@ -126,12 +128,8 @@ files:
|
|
126
128
|
- gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
|
127
129
|
- gui/helpaboutbegin/superant.com.helpaboutbegin
|
128
130
|
- gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
|
129
|
-
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout
|
130
131
|
- gui/helpaboutinstalled/superant.com.tinkerhelpabout
|
131
132
|
- gui/helpaboutinstalled/superant.com.rwdmovieshelpabout
|
132
|
-
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd
|
133
|
-
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd
|
134
|
-
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd
|
135
133
|
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd
|
136
134
|
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd
|
137
135
|
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd
|
@@ -158,6 +156,7 @@ files:
|
|
158
156
|
- gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
|
159
157
|
- gui/tinkerbackwindows/superant.com.rwdmoviespicture/xx8moviephotoview.rwd
|
160
158
|
- gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
|
159
|
+
- installed/rwdviewlogo-0.4.inf
|
161
160
|
- rwd_files/favicon.ico
|
162
161
|
- rwd_files/HowTo_Tinker.txt
|
163
162
|
- rwd_files/HowTo_TinkerWin2.txt
|
@@ -165,7 +164,6 @@ files:
|
|
165
164
|
- rwd_files/Readme.txt
|
166
165
|
- rwd_files/rwdapplications.html
|
167
166
|
- rwd_files/rwdindex.html
|
168
|
-
- rwd_files/tinker.png
|
169
167
|
- rwd_files/HowTo_Movies.txt
|
170
168
|
- rwd_files/moviestmp.jpg
|
171
169
|
- zips/rwdahelloworld-0.5.zip
|
@@ -191,8 +189,8 @@ files:
|
|
191
189
|
- tests/checkdepends.sh
|
192
190
|
- tests/makedist.rb
|
193
191
|
- init.rb
|
194
|
-
- Readme.txt
|
195
192
|
- rwdconfig.dist
|
193
|
+
- Readme.txt
|
196
194
|
test_files: []
|
197
195
|
rdoc_options:
|
198
196
|
- "--main"
|