rubyslippers 1.07 → 1.08
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.
- data/Readme.txt +20 -7
- data/code/01rwdcore/02helptexthashbegin.rb +10 -0
- data/code/01rwdcore/03helptexthash.rb +18 -20
- data/code/01rwdcore/runopentinkerdocument.rb +1 -1
- data/code/superant.com.rubyslippers/0uninstallapplet.rb +1 -1
- data/code/superant.com.rubyslippers/gemserve.rb +0 -0
- data/code/superant.com.rubyslippers/gemwhich.rb +1 -1
- data/code/superant.com.rubyslippers/loadconfigurationrecord.rb +8 -24
- data/code/superant.com.rubyslippers/loadconfigurationvariables.rb +8 -8
- data/code/superant.com.rubyslippers/saveconfigurationrecord.rb +2 -2
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +62 -132
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/rwdtinker.dist +5 -8
- data/configuration/tinkerwin2variables.dist +13 -7
- data/configuration/{wrubyslippers-1.07.dist → wrubyslippers.dist} +10 -10
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/91viewconfiguration.rwd +27 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +59 -163
- data/installed/{wrubyslippers-1.07.inf → wrubyslippers.inf} +7 -7
- data/lang/en/rubyslippers/en.po +21 -0
- data/lang/en/rwdcore/en.po +166 -0
- data/lang/es/rubyslippers/es.po +21 -0
- data/lang/es/rwdcore/es.po +172 -0
- data/lang/fr/rubyslippers/fr.po +21 -0
- data/lang/fr/rwdcore/fr.po +166 -0
- data/lang/hi/rwdcore/hi.po +170 -0
- data/lang/ja/rubyslippers/ja.po +21 -0
- data/lang/ja/rwdcore/ja.po +168 -0
- data/lang/nl/rubyslippers/nl.po +21 -0
- data/lang/nl/rwdcore/nl.po +166 -0
- data/lib/rconftool.rb +13 -6
- data/lib/rwd/net.rb +15 -4
- data/lib/rwd/ruby.rb +1 -1
- data/lib/rwd/rwd.rb +103 -620
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdcodedir.rb +56 -0
- data/lib/rwdtinker/rwdguidir.rb +57 -0
- data/lib/rwdtinker/rwdlangdir.rb +60 -0
- data/lib/rwdtinker/rwdtinkertools.rb +25 -0
- data/rwd_files/HowTo_RubySlippers.txt +14 -0
- data/rwd_files/HowTo_Tinker.txt +37 -7
- data/rwd_files/Tinkerhelptexthash.txt +81 -0
- data/rwd_files/log/rwdtinker.log +2 -0
- data/rwdconfig.dist +14 -13
- data/{rubyslippers.rb → rwdtinker.rb} +0 -0
- data/tests/makedist-tinkerbellw.rb +58 -0
- data/tests/makedist-wrubyslippers.rb +8 -5
- data/tests/makedist.rb +2 -2
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
- data/zips/rwdwhypernote-0.15.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/rwdwmpd-0.07.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/tinkerbellw-0.03.zip +0 -0
- data/zips/wrubyslippers-1.08.zip +0 -0
- metadata +37 -26
- data/code/01rwdcore/04helptextend.rb +0 -6
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
- data/configuration/language.dist +0 -8
- data/configuration/rwdapplicationidentity.dist +0 -3
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/92viewconfiguration.rwd +0 -45
- data/lang/en/rubyslippers/languagefile.rb +0 -10
- data/lang/en/rwdcore/languagefile.rb +0 -58
- data/lang/es/rubyslippers/languagefile.rb +0 -7
- data/lang/es/rwdcore/languagefile-es.rb +0 -62
- data/lang/fr/rubyslippers/languagefile.rb +0 -6
- data/lang/fr/rwdcore/languagefile.rb +0 -64
- data/lang/jp/rubyslippers/languagefile.rb +0 -6
- data/lang/jp/rwdcore/languagefile.rb +0 -72
- data/lang/nl/rubyslippers/languagefile.rb +0 -6
- data/lang/nl/rwdcore/languagefile.rb +0 -75
- data/zips/rwdwaddresses-1.05.zip +0 -0
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwgutenberg-0.09.zip +0 -0
- data/zips/rwdwschedule-1.04.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.findfilesp(d)
|
8
|
+
|
9
|
+
a = Array.new(Dir[d].entries.sort)
|
10
|
+
#loop through and get the files names
|
11
|
+
a.each do |x|
|
12
|
+
#adjust the filters to the files you want to see...
|
13
|
+
if(!test(?d,x))
|
14
|
+
# only rwd files
|
15
|
+
if x =~ /rb|rwd|txt/
|
16
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
17
|
+
@@tempdoc+=fileA.read #reads the file into the doc string
|
18
|
+
fileA.close
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
def RwdtinkerTools.findprogramfiles(codedir, specificdir = "")
|
26
|
+
@@tempdoc = ""
|
27
|
+
#get a list of the files and subdirectories on the starting directory only
|
28
|
+
a = Array.new(Dir[codedir].entries.sort)
|
29
|
+
#loop through the list, ignore the files and add all new directories found
|
30
|
+
a.each do |x|
|
31
|
+
#if a directory...
|
32
|
+
if(test(?d,x))
|
33
|
+
# add to the original list of directories
|
34
|
+
@@root = x + "/**"
|
35
|
+
#adds the new ones to the array
|
36
|
+
b = Dir[@@root].entries.sort
|
37
|
+
b.each do |x|
|
38
|
+
if(test(?d,x))
|
39
|
+
a.push(x) #appends to the end of the array...
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
a.each do |x|
|
45
|
+
#if it is a file...
|
46
|
+
if(!test(?d,x))
|
47
|
+
a.delete(x)
|
48
|
+
else #it is a directory...
|
49
|
+
findfilesp(x + "/**")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
return @@tempdoc
|
53
|
+
end
|
54
|
+
'
|
55
|
+
|
56
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.loadguifile(d)
|
8
|
+
|
9
|
+
a = Array.new(Dir[d].entries.sort)
|
10
|
+
#loop through and get the files names
|
11
|
+
a.each do |x|
|
12
|
+
#adjust the filters to the files you want to see...
|
13
|
+
if(!test(?d,x))
|
14
|
+
# only rwd files
|
15
|
+
if x =~ /rb|rwd|txt/
|
16
|
+
|
17
|
+
load x #opens the file thats in fileName and reads it
|
18
|
+
@@tempdoc += $rwdguivar # adds the file into the doc string
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def RwdtinkerTools.findguifiles(guidir)
|
25
|
+
@@tempdoc = ""
|
26
|
+
#get a list of the files and subdirectories on the starting directory only
|
27
|
+
a = Array.new(Dir[guidir].entries.sort)
|
28
|
+
#loop through the list, ignore the files and add all new directories found
|
29
|
+
a.each do |x|
|
30
|
+
#if a directory...
|
31
|
+
if(test(?d,x))
|
32
|
+
#use this new dir find to add to the original list of directories
|
33
|
+
@@root = x + "/**"
|
34
|
+
#adds the new ones to the array
|
35
|
+
b = Dir[@@root].entries.sort
|
36
|
+
b.each do |x|
|
37
|
+
if(test(?d,x))
|
38
|
+
a.push(x) #appends to the end of the array...
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
a.each do |x|
|
44
|
+
#if it is a file...
|
45
|
+
if(!test(?d,x))
|
46
|
+
a.delete(x)
|
47
|
+
|
48
|
+
else #it is a directory...
|
49
|
+
loadguifile(x + "/**")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
return @@tempdoc
|
53
|
+
|
54
|
+
end
|
55
|
+
'
|
56
|
+
|
57
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.findfilest(d)
|
8
|
+
a = Array.new(Dir[d].entries.sort)
|
9
|
+
#loop through and get the files names
|
10
|
+
a.each do |x|
|
11
|
+
#adjust the filters to the files you want to see...
|
12
|
+
if(!test(?d,x))
|
13
|
+
# only rwd files
|
14
|
+
if x =~ /rb|po|txt/
|
15
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
16
|
+
@@tempdoc+=fileA.read #reads the file into the doc string
|
17
|
+
fileA.close
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
def RwdtinkerTools.findlanguagefiles(langdir,lang)
|
26
|
+
@@tempdoc = ""
|
27
|
+
|
28
|
+
startlangdir = File.join(langdir,lang)
|
29
|
+
#get a list of the files and subdirectories on the starting directory only
|
30
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
31
|
+
#loop through the list, ignore the files and add all new directories found
|
32
|
+
alanghash.each do |x|
|
33
|
+
#if a directory...
|
34
|
+
if(test(?d,x))
|
35
|
+
# add to the original list of directories
|
36
|
+
@@tmproot = x + "/**"
|
37
|
+
#adds the new ones to the array
|
38
|
+
blanghash = Dir[@@tmproot].entries.sort
|
39
|
+
blanghash.each do |x|
|
40
|
+
if(test(?d,x))
|
41
|
+
alanghash.push(x) #appends to the end of the array...
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
alanghash.each do |x|
|
47
|
+
#if it is a file...
|
48
|
+
if(!test(?d,x))
|
49
|
+
alanghash.delete(x)
|
50
|
+
else #it is a directory...
|
51
|
+
findfilest(x + "/**")
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
return @@tempdoc
|
56
|
+
|
57
|
+
end
|
58
|
+
'
|
59
|
+
|
60
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
module RwdtinkerTools
|
5
|
+
|
6
|
+
# tools to use in rwdtinker
|
7
|
+
|
8
|
+
def RwdtinkerTools.tail(filename, lines=12)
|
9
|
+
|
10
|
+
|
11
|
+
begin
|
12
|
+
tmpFile = File.open(filename, 'r')
|
13
|
+
|
14
|
+
return tmpFile.readlines.reverse!.slice(0,lines)
|
15
|
+
|
16
|
+
tmpFile.close
|
17
|
+
rescue
|
18
|
+
return "error in opening log"
|
19
|
+
$rwdtinkerlog.error "RwdtinkerTools.tail: file open error"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
|
@@ -157,6 +157,20 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
157
157
|
Thanks, Steven Gibson
|
158
158
|
|
159
159
|
=Changelog
|
160
|
+
updated to rwdtinker version 1.82
|
161
|
+
switch to po files for translation files
|
162
|
+
add beginning of Hindi po file
|
163
|
+
added more Japanese strings
|
164
|
+
changed handling of lang change = in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
|
165
|
+
refactored init.rb to move routines into lib/rwdtinker modules
|
166
|
+
condensed config files from 5 -> 3
|
167
|
+
fixed document launch bug
|
168
|
+
add $KCODE = 'u'
|
169
|
+
move help files to rwd_files directory
|
170
|
+
|
171
|
+
version 1.07
|
172
|
+
updated for rwdtinker 1.80
|
173
|
+
|
160
174
|
Version 1.06
|
161
175
|
updated for rwdtinker 1.75
|
162
176
|
deleted old schedule files
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -97,8 +97,7 @@ There are two ways to add applets to the directories.
|
|
97
97
|
The gui files go into your gui directory
|
98
98
|
The gui files need to be in order by name and end with .rwd
|
99
99
|
|
100
|
-
|
101
|
-
|
100
|
+
|
102
101
|
If you need a config file that goes in the configuration directory
|
103
102
|
|
104
103
|
internationalization and localization are helped by replacing the
|
@@ -136,9 +135,11 @@ To exit, press the x inside the browser window.
|
|
136
135
|
|
137
136
|
== Languages
|
138
137
|
|
139
|
-
|
140
138
|
You can add tranlations in the lang subdirectory
|
141
|
-
You change the $
|
139
|
+
You change the $langarray constant in Tinker config file in the configuration directory
|
140
|
+
|
141
|
+
to change language => in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
|
142
|
+
|
142
143
|
You can see one translation on the install applet tab, after you have installed and applet
|
143
144
|
|
144
145
|
== Using over a Network
|
@@ -168,14 +169,15 @@ Ruby I am using version 1.8.2
|
|
168
169
|
|
169
170
|
I have tested this under Linux-Debian kernel 2.6.9
|
170
171
|
|
171
|
-
|
172
|
+
== Operation:
|
173
|
+
|
172
174
|
The code files reside in the code directory and are combined before
|
173
175
|
the main Class is loaded
|
174
176
|
|
175
177
|
The rwd files in gui are combined before the gui is activated
|
176
178
|
|
177
179
|
Translated text reside in the lang directory
|
178
|
-
|
180
|
+
|
179
181
|
== Installing:
|
180
182
|
|
181
183
|
untar the file
|
@@ -220,13 +222,41 @@ under the terms of the GPL licence:
|
|
220
222
|
For more information see:
|
221
223
|
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
222
224
|
|
223
|
-
|
224
225
|
For more information about RubyWebDialogs see:
|
225
226
|
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
226
227
|
|
227
228
|
Thanks, Steven Gibson
|
228
229
|
|
229
230
|
== Changelog
|
231
|
+
version 1.82
|
232
|
+
switch to po files for translation files
|
233
|
+
add beginning of Hindi po file
|
234
|
+
added more Japanese strings
|
235
|
+
changed handling of lang change = in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
|
236
|
+
|
237
|
+
version 1.81
|
238
|
+
condensed config files from 4 -> 2
|
239
|
+
fixed document launch bug
|
240
|
+
add $KCODE = 'u'
|
241
|
+
move help files to rwd_files directory
|
242
|
+
|
243
|
+
version 1.80
|
244
|
+
changed pda handling in rwd.rb
|
245
|
+
added logging
|
246
|
+
added log review screen on tinker back window
|
247
|
+
changed handling of live applet loading, to not list version in file names
|
248
|
+
|
249
|
+
version 1.79
|
250
|
+
edited net.rb to fix text editing
|
251
|
+
|
252
|
+
version 1.78
|
253
|
+
modify config files
|
254
|
+
modify rconftools.rb to handle \r\n dos vs unix
|
255
|
+
|
256
|
+
Version 1.77
|
257
|
+
Fixed zips location to be relative or absolute
|
258
|
+
Made themes loadable
|
259
|
+
|
230
260
|
Version 1.76
|
231
261
|
Move rwd code files into lib directory - bug - 21886
|
232
262
|
change tab name list applets - bug - 21864
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Help files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
Helptext.update( :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
|
5
|
+
init.rb file to something like:\n<br>
|
6
|
+
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
|
7
|
+
Then you should be able to login at: http://yourhostname:8080")
|
8
|
+
|
9
|
+
|
10
|
+
Helptext.update( :documents_rwdtinker => "<b>Documents:
|
11
|
+
<p>
|
12
|
+
|
13
|
+
when you click on a document name, the document should pop up in a <br>
|
14
|
+
browser window, or in another browser tab.</b>
|
15
|
+
")
|
16
|
+
|
17
|
+
Helptext.update( :tinkerwin2_help => " You can view the list of applets you can install
|
18
|
+
by clicking on the list files button
|
19
|
+
<br><br>
|
20
|
+
You can download an applet created by someone else
|
21
|
+
<br><br>
|
22
|
+
put the file in the zips directory
|
23
|
+
<br>
|
24
|
+
rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
|
25
|
+
You can download rwdtinker gems at the 'Install Remote Applets' tab
|
26
|
+
to install applets you need the ruby zlib library installed
|
27
|
+
")
|
28
|
+
|
29
|
+
Helptext.update(
|
30
|
+
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'<br>
|
31
|
+
To see the text of a install file<br>
|
32
|
+
Type in the name of the file you want.<br>
|
33
|
+
<p>
|
34
|
+
type it without the inf ending
|
35
|
+
rwdapplet-0.1<br>
|
36
|
+
<p>
|
37
|
+
Then click the 'View Installed File' button
|
38
|
+
<p>
|
39
|
+
If it finds the file it will open it. It displays the text the search box.
|
40
|
+
<p>
|
41
|
+
You can uninstall applets on this screen")
|
42
|
+
|
43
|
+
Helptext.update(
|
44
|
+
:applet_installation => " You can download an applet created by someone else<br>
|
45
|
+
put the file in the zips directory<br>
|
46
|
+
|
47
|
+
click on the 'list zips' tab<br>
|
48
|
+
click on 'list applets available for installing<br>
|
49
|
+
<br>
|
50
|
+
chose the applet you want<br>
|
51
|
+
click on 'install applet'<br>
|
52
|
+
If all goes well the applet should be installed.<br>
|
53
|
+
You will need to restart rwdtinker to see the new screens<br>
|
54
|
+
to install applets you need the ruby zlib library installed")
|
55
|
+
|
56
|
+
Helptext.update(
|
57
|
+
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
58
|
+
<p>
|
59
|
+
Remember to reload the configuration variables if you want your
|
60
|
+
changes used.")
|
61
|
+
|
62
|
+
Helptext.update(
|
63
|
+
:remotegemapplet_install => " To download and install use the 'Install Remote Applets'
|
64
|
+
<br>
|
65
|
+
First click on 'List applets in the Remote GEM Repository available for downloading'<br>
|
66
|
+
then go to the very bottom to click on the applet you want<br>
|
67
|
+
then on the top click 'install remote Gem applet package'
|
68
|
+
<br>
|
69
|
+
This installs the package in the Gem system<br>
|
70
|
+
You still need to install it into rwdtinker - do that in the 'List Zips' tab<br>
|
71
|
+
<br>
|
72
|
+
For this feature to work, you need<br>
|
73
|
+
RubyGems installed<br>
|
74
|
+
Variables set correctly in the tinerwin2.cnf file<br>
|
75
|
+
$xpcommand, $gemdirectory_withgemfiles and $geminstalled_directory<br>
|
76
|
+
the defaults as shipped will normally be for a Debian Linux system <br>
|
77
|
+
On Debian Linux, you would usually need to be running rwdtinker as root in order to install RubyGems
|
78
|
+
<br><br>
|
79
|
+
You can view the list of rwdtinker applets you have installed already by clicking 'view already installed GEM applets'
|
80
|
+
"
|
81
|
+
)
|
data/rwdconfig.dist
CHANGED
@@ -1,21 +1,22 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION: (1.78)
|
2
2
|
# rwdtinker core configuration file
|
3
|
-
##NAME: ConfigLocation:
|
3
|
+
##NAME: (ConfigLocation):(1.78)
|
4
4
|
ConfigLocation=""
|
5
|
-
##NAME: ZipsLocation:
|
5
|
+
##NAME: (ZipsLocation):(1.78)
|
6
6
|
ZipsLocation=""
|
7
|
-
##NAME
|
7
|
+
##NAME: ($testharnessarray):(1.78)
|
8
8
|
$testharnessarray = ["rwdtinker_all_tests"]
|
9
|
-
##NAME:TestNow:
|
9
|
+
##NAME: (TestNow):(1.78)
|
10
10
|
TestNow=false # turning this on will run the unit tests
|
11
|
-
##NAME
|
11
|
+
##NAME: ($testharness):(1.78)
|
12
12
|
$testharness=true
|
13
|
-
##NAME
|
13
|
+
##NAME: ($tinkerhelpaboutarray):(1.78)
|
14
14
|
$tinkerhelpaboutarray = ["Tinker"]
|
15
|
-
##NAME
|
16
|
-
$
|
17
|
-
##NAME
|
18
|
-
$
|
19
|
-
##NAME:JumpLink:
|
15
|
+
##NAME: ($helptopicsarray):(1.78)
|
16
|
+
$helptopicsarray = [ "general_help","network_help"]
|
17
|
+
##NAME: ($tinkerdocumentsarray):(1.78)
|
18
|
+
$tinkerdocumentsarray = ["HowTo_Tinker.txt" , "rwdapplications.html" , "RubyWebDialogs.html"]
|
19
|
+
##NAME: (JumpLink):(1.78)
|
20
20
|
JumpLink = Hash.new { |hh, kk| hh[kk] = "ERROR: link not found: #{kk.inspect}."; hh[kk] }
|
21
|
-
|
21
|
+
##NAME: ($rwdjumplink):(1.78)
|
22
|
+
$rwdjumplink = ["helpscreen", "tinkerbackwindow", "returntomain", "opendocuments", "editconfiguration"]
|
File without changes
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#* at "steven@superant.com".
|
6
|
+
#***********************************************************************/
|
7
|
+
$progdir =""
|
8
|
+
$tinkerhelpaboutarray = [""]
|
9
|
+
$tinkerdocumentsarray = [""]
|
10
|
+
$testharnessarray = [""]
|
11
|
+
$rwdjumplink = [""]
|
12
|
+
JumpLink = Hash.new("default")
|
13
|
+
require 'fileutils'
|
14
|
+
DistroName = "tinkerbellw"
|
15
|
+
DistroVersion="0.03"
|
16
|
+
load "configuration/#{DistroName}.dist"
|
17
|
+
|
18
|
+
|
19
|
+
DistroTitle="#{DistroName}-#{DistroVersion}"
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
24
|
+
results = " "
|
25
|
+
|
26
|
+
puts "creating #{DistroName} distribution files version #{DistroVersion}"
|
27
|
+
|
28
|
+
#puts "moving up one directory"
|
29
|
+
#Dir.chdir("..")
|
30
|
+
findcmd = "find _arx > /tmp/excludezip"
|
31
|
+
puts "#{findcmd}"
|
32
|
+
`#{findcmd}`
|
33
|
+
|
34
|
+
FileUtils.rm_rf("#{DistroTitle}.zip")
|
35
|
+
zipcreatecmd = "zip -r #{DistroTitle}.zip * -x@/tmp/excludezip"
|
36
|
+
puts "#{zipcreatecmd}"
|
37
|
+
`#{zipcreatecmd}`
|
38
|
+
|
39
|
+
gemspecfilename = "rwdzip#{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{rwdzip#{DistroName}}\n")
|
48
|
+
fd.print(" s.version = \"#{DistroVersion}\"\n")
|
49
|
+
fd.print(" s.date = %q{#{year}-#{month}-#{daydate}}")
|
50
|
+
load "tests/gemspec-#{DistroName}"
|
51
|
+
fd.print($gemspecvar)
|
52
|
+
fd.close
|
53
|
+
|
54
|
+
ListingCommand = "ls -1 -s -h rwdzip#{DistroTitle}*"
|
55
|
+
|
56
|
+
puts `#{ListingCommand}`
|
57
|
+
|
58
|
+
print "Build finished\n"
|