rwdtinker 1.51 → 1.52
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 +6 -6
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +21 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +54 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
- data/configuration/rwdtinker.cnf +3 -3
- data/configuration/rwdtinkerversion.cnf +1 -1
- data/configuration/tinkerwin2variables.cnf +3 -3
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +5 -4
- data/rwd_files/HowTo_Tinker.txt +4 -1
- data/zips/rwdwcalc-0.50.zip +0 -0
- metadata +10 -8
- data/zips/rwdaschedule-0.93.zip +0 -0
- data/zips/rwdcalc-0.4.zip +0 -0
data/Readme.txt
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
= RwdTinker framework for RubyWebDialogs
|
2
2
|
|
3
|
+
|
3
4
|
RwdTinker is a web brower interface to and system for developing programs
|
4
5
|
|
5
6
|
== Usage
|
6
7
|
|
8
|
+
|
7
9
|
How to Use the Tinker framework Program (rwdtinker)
|
8
10
|
|
11
|
+
|
9
12
|
1. stand alone application
|
10
13
|
2. framework for building applications
|
11
14
|
3. Open brower windows with html documents
|
@@ -19,10 +22,13 @@ ruby init.rb
|
|
19
22
|
Then point your web browser to:
|
20
23
|
http://localhost:7705/
|
21
24
|
|
25
|
+
|
22
26
|
== Viewing installed Applets:
|
27
|
+
|
23
28
|
|
24
29
|
Go to "List Scripts" tab
|
25
30
|
|
31
|
+
|
26
32
|
You can get a list of all installed applets by clicking the listfiles button
|
27
33
|
|
28
34
|
To see the text of a install file
|
@@ -227,17 +233,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
227
233
|
Thanks, Steven Gibson
|
228
234
|
|
229
235
|
== Changelog
|
230
|
-
version 1.51
|
231
|
-
changed return to main
|
232
|
-
changed configuration of remote ports
|
233
|
-
updated context sensitive help
|
234
|
-
|
235
236
|
version 1.50
|
236
237
|
changed unzip applet to be internal code - no exec to unzip program
|
237
238
|
changed order of tabs on back window - list applets now first
|
238
239
|
added rwdwcalc applet in to zips directory
|
239
240
|
changed width of text fields with help from RubyWebDialogs author
|
240
|
-
changed listing of help options, vertical instead of horizontal
|
241
241
|
|
242
242
|
version 1.49
|
243
243
|
added demon function for remote queries
|
@@ -0,0 +1,21 @@
|
|
1
|
+
def installgemapplet
|
2
|
+
require 'fileutils'
|
3
|
+
require 'extras/zip/zip'
|
4
|
+
nametext = "%s" % [@a_installapplet]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
fullname = nametext + ".zip"
|
8
|
+
|
9
|
+
|
10
|
+
zf = Zip::ZipFile.new(fullname)
|
11
|
+
zf.sort.each {
|
12
|
+
|entry|
|
13
|
+
zf.extract(entry.to_s, entry.to_s)
|
14
|
+
}
|
15
|
+
@installapplettext = Message[:applet_installed]
|
16
|
+
|
17
|
+
rescue
|
18
|
+
@installapplettext = "unzip error - applet may not be installed correctly"
|
19
|
+
end # exception rescue
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# this code is to list the zips
|
2
|
+
|
3
|
+
|
4
|
+
def fillhypernotename(inffile)
|
5
|
+
applet = inffile.gsub(/\.zip$/, "")
|
6
|
+
@a_installapplet = applet
|
7
|
+
|
8
|
+
end
|
9
|
+
|
10
|
+
def findzipfiles(d)
|
11
|
+
a = Array.new(Dir[d].entries.sort)
|
12
|
+
#loop through and get the files names
|
13
|
+
a.each do |x|
|
14
|
+
#adjust the filters to the files you want to see...
|
15
|
+
if(!test(?d,x))
|
16
|
+
# only zip files
|
17
|
+
if x =~ /\.zip/
|
18
|
+
puts "#{x}" #opens the file thats in fileName as read only
|
19
|
+
$zipsarray = $zipsarray | ["#{x}"]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def listgemzips
|
26
|
+
startlangdir = $geminstalled_directory
|
27
|
+
#get a list of the files and subdirectories on the starting directory only
|
28
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
29
|
+
p alanghash
|
30
|
+
#loop through the list, ignore the files and add all new directories found
|
31
|
+
alanghash.each do |x|
|
32
|
+
#if a directory...
|
33
|
+
if(test(?d,x))
|
34
|
+
# add to the original list of directories
|
35
|
+
@@tmproot = x + "/**"
|
36
|
+
#adds the new ones to the array
|
37
|
+
blanghash = Dir[@@tmproot].entries.sort
|
38
|
+
blanghash.each do |x|
|
39
|
+
if(test(?d,x))
|
40
|
+
alanghash.push(x) #appends to the end of the array...
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
alanghash.each do |x|
|
46
|
+
#if it is a file...
|
47
|
+
if(!test(?d,x))
|
48
|
+
alanghash.delete(x)
|
49
|
+
else #it is a directory...
|
50
|
+
findzipfiles(x + "/**")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
@zipslistresult = $zipsarray.rwd_method("fillhypernotename")
|
54
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
def viewgemappletcontents
|
2
|
+
require 'fileutils'
|
3
|
+
require 'extras/zip/zip'
|
4
|
+
nametext = "%s" % [@a_installapplet]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
fullname = nametext + ".zip"
|
8
|
+
|
9
|
+
tempfilecontents = " "
|
10
|
+
zf = Zip::ZipFile.new(fullname)
|
11
|
+
zf.sort.each {
|
12
|
+
|entry|
|
13
|
+
tempfilecontents = tempfilecontents + entry.to_s + "\n"
|
14
|
+
}
|
15
|
+
@appletcontentstext = tempfilecontents
|
16
|
+
|
17
|
+
rescue
|
18
|
+
@installapplettext = "unzip error - error opening applet"
|
19
|
+
end # exception rescue
|
20
|
+
|
21
|
+
end
|
data/configuration/rwdtinker.cnf
CHANGED
@@ -7,10 +7,10 @@ RWDFile = "rwdtinker.rwd"
|
|
7
7
|
LangDir = "lang"
|
8
8
|
TempLangHashFile = LangDir + "/" + "templangfile.rb"
|
9
9
|
LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
10
|
-
CodeDir = "code"
|
11
|
-
GuiDir = "gui"
|
10
|
+
CodeDir = "code"
|
11
|
+
GuiDir = "gui"
|
12
12
|
$help_topic = "general_help"
|
13
13
|
$helptopicsarray = [ "general_help","network_help"]
|
14
|
-
$prevouswindow ="main"
|
14
|
+
$prevouswindow ="main"
|
15
15
|
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
|
16
16
|
$port = 7705
|
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
RwdTinkerVersion = "1.
|
2
|
+
RwdTinkerVersion = "1.52"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
|
3
3
|
$zipslocation = "zips" # location of applets to add
|
4
|
-
$
|
5
|
-
|
6
|
-
|
4
|
+
$zipsarray = [""]
|
5
|
+
# $geminstalled_directory = "/ruby/lib/ruby/gems/1.8/gems" # XP machine
|
6
|
+
$geminstalled_directory = "/usr/lib/ruby/gems/1.8/gems" # Debian Linux
|
7
7
|
|
8
8
|
|
@@ -3,19 +3,20 @@ $rwdguivar=
|
|
3
3
|
<tab name=\"rwdzipslister\" caption=\"List Zips\">
|
4
4
|
|
5
5
|
<table>
|
6
|
-
<row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text size=70 name=\"a_installapplet\"/> </row>
|
7
7
|
|
8
8
|
</table>
|
9
9
|
<horizontal>
|
10
10
|
<button caption=\"view applet contents\" action=\"viewappletcontents\"/>
|
11
|
-
|
11
|
+
<button caption=\"view (GEM Directory) applet contents\" action=\"viewgemappletcontents\"/>
|
12
12
|
</horizontal>
|
13
13
|
<p>%appletcontentstext%</p>
|
14
14
|
|
15
15
|
<horizontal>
|
16
16
|
|
17
17
|
|
18
|
-
<button caption=\"install applet\" action=\"installapplet\"/>
|
18
|
+
<button caption=\"install applet\" action=\"installapplet\"/>
|
19
|
+
<button caption=\"install (Gem Directory) applet\" action=\"installgemapplet\"/>
|
19
20
|
<button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
|
20
21
|
|
21
22
|
</horizontal>
|
@@ -30,7 +31,7 @@ $rwdguivar=
|
|
30
31
|
<horizontal>
|
31
32
|
<button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
|
32
33
|
|
33
|
-
|
34
|
+
<button caption=\"List applets (in the GEM Directory) available for installing\" action=\"listgemzips\"/>
|
34
35
|
|
35
36
|
</horizontal>
|
36
37
|
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -226,7 +226,10 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
226
226
|
|
227
227
|
Thanks, Steven Gibson
|
228
228
|
|
229
|
-
== Changelog
|
229
|
+
== Changelog
|
230
|
+
version 1.52
|
231
|
+
added function to install applets from gem directory
|
232
|
+
|
230
233
|
version 1.51
|
231
234
|
changed return to main
|
232
235
|
changed configuration of remote ports
|
Binary file
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rwdtinker
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2005-02-
|
6
|
+
version: "1.52"
|
7
|
+
date: 2005-02-08
|
8
8
|
summary: rwdtinker application is a framework to program for RubyWebDialogs.
|
9
9
|
require_paths:
|
10
10
|
- "."
|
@@ -32,26 +32,29 @@ files:
|
|
32
32
|
- code/01rwdcore/03helptexthash.rb
|
33
33
|
- code/01rwdcore/04helptextend.rb
|
34
34
|
- code/01rwdcore/openhelpwindow.rb
|
35
|
+
- code/01rwdcore/returntomain.rb
|
35
36
|
- code/01rwdcore/rwdtinkerversion.rb
|
36
37
|
- code/01rwdcore/rwdwindowreturn.rb
|
37
|
-
- code/01rwdcore/returntomain.rb
|
38
38
|
- code/dd0viewphoto/dd0viewphoto.rb
|
39
39
|
- code/superant.com.rwdtinkerbackwindow/controlclient.rb
|
40
40
|
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
41
|
+
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
41
42
|
- code/superant.com.rwdtinkerbackwindow/installapplet.rb
|
43
|
+
- code/superant.com.rwdtinkerbackwindow/installgemapplet.rb
|
44
|
+
- code/superant.com.rwdtinkerbackwindow/listgemzips.rb
|
42
45
|
- code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb
|
43
46
|
- code/superant.com.rwdtinkerbackwindow/listzips.rb
|
44
47
|
- code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb
|
45
48
|
- code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb
|
46
49
|
- code/superant.com.rwdtinkerbackwindow/network.rb
|
47
50
|
- code/superant.com.rwdtinkerbackwindow/openappletname.rb
|
51
|
+
- code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb
|
48
52
|
- code/superant.com.rwdtinkerbackwindow/removeapplet.rb
|
49
53
|
- code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb
|
50
54
|
- code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb
|
51
55
|
- code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
|
52
56
|
- code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb
|
53
|
-
- code/superant.com.rwdtinkerbackwindow/
|
54
|
-
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
57
|
+
- code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb
|
55
58
|
- code/zz0applicationend/zz0end.rb
|
56
59
|
- configuration/language.cnf
|
57
60
|
- configuration/rwdapplicationidentity.cnf
|
@@ -116,13 +119,13 @@ files:
|
|
116
119
|
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow
|
117
120
|
- gui/tinkerbackwindows/superant.com.versionwindow
|
118
121
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd
|
122
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd
|
119
123
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd
|
120
124
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
|
121
125
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
|
122
126
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd
|
123
127
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
|
124
128
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
|
125
|
-
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd
|
126
129
|
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
|
127
130
|
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
|
128
131
|
- gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
|
@@ -138,8 +141,7 @@ files:
|
|
138
141
|
- rwd_files/rwdindex.html
|
139
142
|
- rwd_files/tinker.png
|
140
143
|
- zips/rwdahelloworld-0.5.zip
|
141
|
-
- zips/
|
142
|
-
- zips/rwdaschedule-0.93.zip
|
144
|
+
- zips/rwdwcalc-0.50.zip
|
143
145
|
- tests/rwdtinkertestEN.rb
|
144
146
|
- tests/test.result
|
145
147
|
- tests/totranslate.lang
|
data/zips/rwdaschedule-0.93.zip
DELETED
Binary file
|
data/zips/rwdcalc-0.4.zip
DELETED
Binary file
|