rwdtinker 1.80 → 1.81
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/code/01rwdcore/02helptexthashbegin.rb +10 -0
- data/code/01rwdcore/03helptexthash.rb +18 -20
- data/code/01rwdcore/runopentinkerdocument.rb +1 -1
- data/configuration/rwdtinker.dist +2 -3
- data/configuration/tinkerwin2variables.dist +11 -2
- data/init.rb +8 -8
- data/rwd_files/HowTo_Tinker.txt +5 -0
- data/rwd_files/Tinkerhelptexthash.txt +81 -0
- data/tests/makedist.rb +1 -1
- metadata +3 -6
- 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
|
@@ -2,3 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
|
4
4
|
helpmessage = {
|
|
5
|
+
:general_help => "You can work with Applets: go to 'Selection tab', <br>
|
|
6
|
+
On that back screen you will find:<br>
|
|
7
|
+
List Applets: you can see and delete installed applets<br>
|
|
8
|
+
List Zips: you can see lists of applets that you can install<br>
|
|
9
|
+
Edit Configuration: You can view the rwdtinker configuration and change it<br>
|
|
10
|
+
Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
|
|
11
|
+
"
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
helpmessage.each { |kk, vv| Helptext[kk] = vv }
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# this code loads the help text
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
|
|
4
|
+
tmphelpfilename = "Tinkerhelptexthash.txt"
|
|
5
|
+
tmphelpdir = "rwd_files"
|
|
6
|
+
|
|
7
|
+
begin # exception trapped block
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
fileName = File.join(tmphelpdir ,tmphelpfilename )
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
fd = File.open(fileName,"r")
|
|
14
|
+
tmphelptext = fd.read
|
|
15
|
+
fd.close
|
|
16
|
+
eval tmphelptext
|
|
17
|
+
rescue SystemCallError, StandardError
|
|
18
|
+
$rwdtinkerlog.error "Tinkerbell help file load: system call error: "
|
|
19
|
+
end # exception rescue
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
:documents_rwdtinker => "<b>Documents:
|
|
18
|
-
<p>
|
|
19
21
|
|
|
20
|
-
when you click on a document name, the document should pop up in a <br>
|
|
21
|
-
browser window, or in another browser tab.</b>
|
|
22
|
-
"
|
|
23
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# open document for rwdtinker application
|
|
2
2
|
def runopentinkerdocument
|
|
3
3
|
|
|
4
|
-
tinkerdocumenturl = "http://localhost
|
|
4
|
+
tinkerdocumenturl = "http://localhost:#{$port}/" + @a_tinkerdocumentinput
|
|
5
5
|
Thread.new( tinkerdocumenturl){ |t| `#{Browser_Exe} #{tinkerdocumenturl}` }
|
|
6
6
|
end
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##VERSION: (1.
|
|
1
|
+
##VERSION: (1.81)
|
|
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"
|
|
@@ -10,6 +10,5 @@ LangDir = "lang"
|
|
|
10
10
|
$prevouswindow ="main"
|
|
11
11
|
$rwdcontrolports =["13713","13714","13715","13716"] # remote control code not actived 2007
|
|
12
12
|
$port = 7705
|
|
13
|
-
|
|
14
|
-
RwdTinkerVersion = "1.80"
|
|
13
|
+
RwdTinkerVersion = "1.81"
|
|
15
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##VERSION: (1.
|
|
1
|
+
##VERSION: (1.81)
|
|
2
2
|
TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
|
|
3
3
|
##NAME: ($zipslocation):(1.78)
|
|
4
4
|
$zipslocation = "zips" # location of applets to add
|
|
@@ -14,5 +14,14 @@ $zipslocation = "zips" # location of applets to add
|
|
|
14
14
|
# $geminstalled_directory = "/ruby/lib/ruby/gems/1.8/gems" # XP machine
|
|
15
15
|
$geminstalled_directory = "/var/lib/gems/1.8/gems" # Debian Linux
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
$rwdapplicationidentity = "rwdtinker main application"
|
|
18
18
|
|
|
19
|
+
RwdTinkerWin2Version = "1.81"
|
|
20
|
+
Browser_Exe = 'mozilla '
|
|
21
|
+
#language selection file
|
|
22
|
+
##NAME: ($lang):(1.78)
|
|
23
|
+
#$lang = "jp"
|
|
24
|
+
$lang= "en"
|
|
25
|
+
#$lang= "nl"
|
|
26
|
+
#$lang= "es"
|
|
27
|
+
#$lang= "fr"
|
data/init.rb
CHANGED
|
@@ -255,24 +255,24 @@ Rconftool::install(configdist,confignew) #integrates new file with old
|
|
|
255
255
|
$port = port
|
|
256
256
|
# Rescue the "Address in use" error
|
|
257
257
|
rescue Errno::EADDRINUSE
|
|
258
|
-
|
|
258
|
+
$rwdtinkerlog.warn "RWD Startup: Port #{port} on host #{host} is already in use."
|
|
259
259
|
port=port +1
|
|
260
|
-
|
|
260
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
|
261
261
|
# Rescue the "Address not available' error
|
|
262
262
|
rescue Errno::EADDRNOTAVAIL
|
|
263
|
-
|
|
263
|
+
$rwdtinkerlog.warn "RWD Startup: Address #{host} is not available to bind."
|
|
264
264
|
port =port + 1
|
|
265
|
-
|
|
265
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
|
266
266
|
# Rescue "permission denied errors
|
|
267
267
|
rescue Errno::EACCES
|
|
268
|
-
|
|
268
|
+
$rwdtinkerlog.warn "RWD Startup: Access denied when binding interface addresses. ?"
|
|
269
269
|
port =port + 1
|
|
270
|
-
|
|
270
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
|
271
271
|
# Rescue all other errors
|
|
272
272
|
rescue
|
|
273
|
-
|
|
273
|
+
$rwdtinkerlog.warn "RWD Startup: An error occured."
|
|
274
274
|
port =port + 1
|
|
275
|
-
|
|
275
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
|
276
276
|
# Rescue all other errors
|
|
277
277
|
end
|
|
278
278
|
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
|
@@ -226,6 +226,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
|
226
226
|
Thanks, Steven Gibson
|
|
227
227
|
|
|
228
228
|
== Changelog
|
|
229
|
+
version 1.81
|
|
230
|
+
condensed config files from 4 -> 2
|
|
231
|
+
fixed document launch bug
|
|
232
|
+
add $KCODE = 'u'
|
|
233
|
+
|
|
229
234
|
version 1.80
|
|
230
235
|
changed pda handling in rwd.rb
|
|
231
236
|
added logging
|
|
@@ -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/tests/makedist.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rwdtinker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: "1.
|
|
4
|
+
version: "1.81"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Gibson
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-10-
|
|
12
|
+
date: 2008-10-07 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -65,7 +65,6 @@ files:
|
|
|
65
65
|
- code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb
|
|
66
66
|
- code/superant.com.rwdtinkerbackwindow/removeapplet.rb
|
|
67
67
|
- code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb
|
|
68
|
-
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
|
69
68
|
- code/superant.com.rwdtinkerbackwindow/remotegemlist.rb
|
|
70
69
|
- code/superant.com.rwdtinkerbackwindow/installgemapplet.rb
|
|
71
70
|
- code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb
|
|
@@ -73,7 +72,6 @@ files:
|
|
|
73
72
|
- code/01rwdcore/setuptinkerdocuments.rb
|
|
74
73
|
- code/01rwdcore/openhelpwindow.rb
|
|
75
74
|
- code/01rwdcore/setuphelpaboutoptions.rb
|
|
76
|
-
- code/01rwdcore/04helptextend.rb
|
|
77
75
|
- code/01rwdcore/01rwdcore.rb
|
|
78
76
|
- code/01rwdcore/rwdwindowreturn.rb
|
|
79
77
|
- code/01rwdcore/uploadreturns.rb
|
|
@@ -92,8 +90,6 @@ files:
|
|
|
92
90
|
- code/dd0viewphoto/dd0viewphoto.rb
|
|
93
91
|
- configuration/rwdtinker.dist
|
|
94
92
|
- configuration/tinkerwin2variables.dist
|
|
95
|
-
- configuration/language.dist
|
|
96
|
-
- configuration/rwdapplicationidentity.dist
|
|
97
93
|
- lang/en/rwdcore/languagefile.rb
|
|
98
94
|
- lang/es/rwdcore/languagefile-es.rb
|
|
99
95
|
- lang/fr/rwdcore/languagefile.rb
|
|
@@ -138,6 +134,7 @@ files:
|
|
|
138
134
|
- rwd_files/rdoc-style.css
|
|
139
135
|
- rwd_files/Readme.txt
|
|
140
136
|
- rwd_files/rwdapplications.html
|
|
137
|
+
- rwd_files/Tinkerhelptexthash.txt
|
|
141
138
|
- rwd_files/HowTo_TinkerWin2.txt
|
|
142
139
|
- rwd_files/RubyWebDialogs.html
|
|
143
140
|
- rwd_files/HowTo_Tinker.txt
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# help text files used by context sensitive help
|
|
2
|
-
|
|
3
|
-
Helptext.update( :tinkerwin2_help => " You can view the list of applets you can install
|
|
4
|
-
by clicking on the list files button
|
|
5
|
-
|
|
6
|
-
You can download an applet created by someone else
|
|
7
|
-
|
|
8
|
-
put the file in the zips directory
|
|
9
|
-
|
|
10
|
-
rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
|
|
11
|
-
You can download rwdtinker gems at the 'Install Remote Applets' tab
|
|
12
|
-
to install applets you need the ruby zlib library installed
|
|
13
|
-
",
|
|
14
|
-
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
|
|
15
|
-
To see the text of a install file
|
|
16
|
-
Type in the name of the file you want.
|
|
17
|
-
|
|
18
|
-
type it without the inf ending
|
|
19
|
-
rwdapplet-0.1
|
|
20
|
-
|
|
21
|
-
Then click the 'View Installed File' button
|
|
22
|
-
|
|
23
|
-
If it finds the file it will open it. It displays the text the search box.
|
|
24
|
-
|
|
25
|
-
You can uninstall applets on this screen",
|
|
26
|
-
|
|
27
|
-
:applet_installation => " You can download an applet created by someone else\n
|
|
28
|
-
put the file in the zips directory\n
|
|
29
|
-
|
|
30
|
-
click on the 'list zips' tab\n
|
|
31
|
-
click on 'list applets available for installing'\n
|
|
32
|
-
|
|
33
|
-
chose the applet you want\n
|
|
34
|
-
click on 'install applet'\n
|
|
35
|
-
If all goes well the applet should be installed.\n
|
|
36
|
-
You will need to restart rwdtinker to see the new screens
|
|
37
|
-
to install applets you need the ruby zlib library installed",
|
|
38
|
-
|
|
39
|
-
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
|
40
|
-
|
|
41
|
-
Remember to reload the configuration variables if you want your
|
|
42
|
-
changes used.",
|
|
43
|
-
:remotegemapplet_install => " To download and install use the 'Install Remote Applets'
|
|
44
|
-
|
|
45
|
-
First click on 'List applets in the Remote GEM Repository available for downloading'
|
|
46
|
-
then go to the very bottom to click on the applet you want
|
|
47
|
-
then on the top click 'install remote Gem applet package'
|
|
48
|
-
|
|
49
|
-
This installs the package in the Gem system
|
|
50
|
-
You still need to install it into rwdtinker - do that in the 'List Zips' tab
|
|
51
|
-
|
|
52
|
-
For this feature to work, you need
|
|
53
|
-
RubyGems installed
|
|
54
|
-
Variables set correctly in the tinerwin2.cnf file
|
|
55
|
-
$xpcommand, $gemdirectory_withgemfiles and $geminstalled_directory
|
|
56
|
-
the defaults as shipped will normally be for a Debian Linux system
|
|
57
|
-
On Debian Linux, you would usually need to be running rwdtinker as root in order to install RubyGems
|
|
58
|
-
|
|
59
|
-
You can view the list of rwdtinker applets you have installed already by clicking 'view already installed GEM applets'
|
|
60
|
-
"
|
|
61
|
-
)
|
data/configuration/language.dist
DELETED