rwdtinker 1.79 → 1.80
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/superant.com.rwdtinkerbackwindow/initiateapplets.rb +35 -34
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/language.dist +1 -1
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdtinker.dist +2 -2
- data/configuration/tinkerwin2variables.dist +2 -2
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +5 -0
- data/lang/en/rwdcore/languagefile.rb +1 -0
- data/lang/es/rwdcore/languagefile-es.rb +1 -0
- data/lang/fr/rwdcore/languagefile.rb +1 -0
- data/lang/jp/rwdcore/languagefile.rb +1 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -0
- data/lib/rwd/net.rb +8 -7
- data/lib/rwd/rwd.rb +34 -31
- data/lib/rwdthemes/default.rwd +1 -1
- data/lib/rwdtinker/rwdtinkertools.rb +24 -0
- data/rwd_files/HowTo_Tinker.txt +6 -1
- data/rwd_files/log/rwdtinker.log +2 -0
- data/tests/makedist.rb +1 -1
- data/zips/{rwdwcalc-0.62.zip → rwdwcalc-0.63.zip} +0 -0
- data/zips/{rwdwfoldeditor-0.04.zip → rwdwfoldeditor-0.05.zip} +0 -0
- data/zips/{rwdwruby-1.07.zip → rwdwruby-1.08.zip} +0 -0
- data/zips/wrubyslippers-1.07.zip +0 -0
- metadata +10 -9
- data/zips/rwdwaddresses-1.06.zip +0 -0
- data/zips/rwdwgutenberg-0.09.zip +0 -0
- data/zips/tinkerbellw-0.02.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
@@ -28,9 +28,8 @@ def initiateapplet(nametextlocal)
|
|
28
28
|
|
29
29
|
debuginitiate = 0
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
end
|
31
|
+
$rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
|
32
|
+
|
34
33
|
|
35
34
|
|
36
35
|
Dir.chdir($progdir ) #changes the current working directory
|
@@ -48,10 +47,10 @@ begin
|
|
48
47
|
|
49
48
|
|
50
49
|
rescue
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
|
51
|
+
$rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
|
52
|
+
|
53
|
+
|
55
54
|
debuginitiate += 1
|
56
55
|
end
|
57
56
|
$tempdoc = " "
|
@@ -178,52 +177,54 @@ $rwd_gui_tinker = $tempdoc
|
|
178
177
|
|
179
178
|
rescue
|
180
179
|
$rwd_gui_tinker = tempguistorage # restore old gui
|
181
|
-
|
182
|
-
|
183
|
-
|
180
|
+
|
181
|
+
$rwdtinkerlog.error "error in initiateapplets - gui building"
|
182
|
+
|
184
183
|
|
185
184
|
debuginitiate += 1
|
186
185
|
end
|
187
186
|
|
188
187
|
begin # error trap
|
189
|
-
# now load in the code files
|
188
|
+
# now load in the code files
|
190
189
|
|
191
|
-
$tempdoc = ""
|
192
|
-
tempcodeinstallline = ""
|
190
|
+
$tempdoc = ""
|
191
|
+
tempcodeinstallline = ""
|
193
192
|
|
194
|
-
|
193
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
194
|
+
|
195
|
+
$rwdtinkerlog.debug "initateapplets: loading file: #{@fileName}"
|
195
196
|
|
196
|
-
|
197
|
+
tmpfilearray = File.readlines(@fileName)
|
197
198
|
|
198
|
-
|
199
|
+
tmpfilearray.each do |line|
|
199
200
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
end
|
201
|
+
tempcodeinstallline = line.chomp
|
202
|
+
if tempcodeinstallline.include?('code/')
|
203
|
+
findfiles(tempcodeinstallline + "/**")
|
204
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
205
|
+
end
|
206
|
+
end
|
206
207
|
|
207
208
|
|
208
209
|
rescue
|
209
|
-
|
210
|
-
|
211
|
-
|
210
|
+
|
211
|
+
$rwdtinkerlog.error "error in initiateapplets - code building"
|
212
|
+
|
212
213
|
debuginitiate += 1
|
213
214
|
|
214
215
|
|
215
216
|
end
|
216
217
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
218
|
+
setuphelpaboutoptions # update the help about list
|
219
|
+
setuptinkerdocuments # update the document pull down list
|
220
|
+
runhelpwindow # update the help menu
|
221
|
+
showjumplinkoptions # update the application link menu
|
222
|
+
runrwdtinkerbackwindow # back to applet window
|
223
|
+
|
224
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
225
|
+
tempresult = @fileName
|
225
226
|
|
226
|
-
return " applet loading successful " + tempresult
|
227
|
+
return " applet loading successful " + tempresult
|
227
228
|
|
228
229
|
|
229
230
|
|
@@ -13,16 +13,18 @@ def installgemapplet
|
|
13
13
|
zf.extract(entry.to_s, entry.to_s)
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
rescue
|
17
17
|
|
18
|
-
|
19
|
-
$stderr.puts "unzip error - applet may not be installed correctly"
|
20
|
-
end
|
21
|
-
@installapplettext = " .. "
|
18
|
+
$rwdtinkerlog.error "installgemapplet: unzip error - applet may not be installed correctly"
|
22
19
|
|
23
|
-
|
20
|
+
@installapplettext = " .. "
|
24
21
|
|
25
|
-
|
22
|
+
end # exception rescue
|
23
|
+
|
24
|
+
@rwd_ignore_vars << @nametextbase << @returninitiateresults << @installapplettext
|
25
|
+
tmpnametext = File.basename(nametext)
|
26
|
+
tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!
|
27
|
+
@nametextbase = tmpnametext.chop!
|
26
28
|
@returninitateresults = initiateapplet(@nametextbase)
|
27
29
|
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
28
30
|
|
@@ -24,14 +24,14 @@
|
|
24
24
|
def removeappletvariables(tempremovename)
|
25
25
|
|
26
26
|
begin # exception trapped block
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
|
28
|
+
$rwdtinkerlog.info "in removeappletvariables"
|
29
|
+
|
30
30
|
# removefileinf = File.open(tempremove){|f| f.read}
|
31
31
|
|
32
|
-
|
33
|
-
removemethod =
|
34
|
-
|
32
|
+
|
33
|
+
removemethod = tempremovename
|
34
|
+
|
35
35
|
|
36
36
|
send "#{removemethod}"
|
37
37
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
def rwdtinkerrunviewlog
|
2
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
3
|
+
|
4
|
+
if @a_rwdtinkerlognumber == nil
|
5
|
+
@a_rwdtinkerlognumber = 11
|
6
|
+
@returnlogdisplay = RwdtinkerTools.tail("rwd_files/log/rwdtinker.log",@a_rwdtinkerlognumber.to_i)
|
7
|
+
|
8
|
+
else
|
9
|
+
@returnlogdisplay = RwdtinkerTools.tail("rwd_files/log/rwdtinker.log",@a_rwdtinkerlognumber.to_i)
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
data/configuration/language.dist
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION: (1.
|
1
|
+
##VERSION: (1.80)
|
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"
|
@@ -11,5 +11,5 @@ LangDir = "lang"
|
|
11
11
|
$rwdcontrolports =["13713","13714","13715","13716"] # remote control code not actived 2007
|
12
12
|
$port = 7705
|
13
13
|
Browser_Exe = 'mozilla '
|
14
|
-
RwdTinkerVersion = "1.
|
14
|
+
RwdTinkerVersion = "1.80"
|
15
15
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION: (1.
|
1
|
+
##VERSION: (1.80)
|
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,5 @@ $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
|
-
RwdTinkerWin2Version = "1.
|
17
|
+
RwdTinkerWin2Version = "1.80"
|
18
18
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"rwdlogfiletab\" caption=\"RWD Log Files\">
|
4
|
+
<table>
|
5
|
+
<horizontal>
|
6
|
+
|
7
|
+
|
8
|
+
<p align=\"left\">Number of lines to display</p> <text size=11 name=\"a_rwdtinkerlognumber\"/>
|
9
|
+
|
10
|
+
<button caption=#{Message[:viewlogger_information]} action=\"rwdtinkerrunviewlog\"/>
|
11
|
+
</horizontal>
|
12
|
+
|
13
|
+
</table>
|
14
|
+
|
15
|
+
<p>%returnlogdisplay%</p>
|
16
|
+
|
17
|
+
</tab>"
|
18
|
+
|
19
|
+
|
20
|
+
|
data/init.rb
CHANGED
@@ -21,6 +21,11 @@
|
|
21
21
|
#* at "smalllinux@gmail.com".
|
22
22
|
#***********************************************************************/
|
23
23
|
|
24
|
+
require 'logger'
|
25
|
+
|
26
|
+
$rwdtinkerlog = Logger.new( 'rwd_files/log/rwdtinker.log', 'weekly' )
|
27
|
+
$rwdtinkerlog.level = Logger::INFO
|
28
|
+
|
24
29
|
require "lib/rwd/rwd"
|
25
30
|
require 'fileutils'
|
26
31
|
require 'lib/rconftool'
|
@@ -51,6 +51,7 @@
|
|
51
51
|
:viewinstalled_text => '"View Install Text"',
|
52
52
|
:view_platform => '"view platform"',
|
53
53
|
:viewplatform_information => '"View Platform Information"',
|
54
|
+
:viewlogger_information => '"View Logger Information"',
|
54
55
|
:view_event => '"View event"',
|
55
56
|
:viewinstall_text => '"View Install Text"' ,
|
56
57
|
:viewlistinstall_files => '"View List of Installed Files"',
|
@@ -55,6 +55,7 @@
|
|
55
55
|
:viewinstalled_text => '"View Install Text"',
|
56
56
|
:view_platform => '"view platform"',
|
57
57
|
:viewplatform_information => '"View Platform Information"',
|
58
|
+
:viewlogger_information => '"View Logger Information"',
|
58
59
|
:view_event => '"Ver evento"',
|
59
60
|
:viewinstall_text => '"Ver Texto"' ,
|
60
61
|
:viewlistinstall_files => '"View List of Installed Files"',
|
@@ -56,6 +56,7 @@
|
|
56
56
|
:viewinstalled_text => '"View Install Text"',
|
57
57
|
:view_platform => '"view platform"',
|
58
58
|
:viewplatform_information => '"View Platform Information"',
|
59
|
+
:viewlogger_information => '"View Logger Information"',
|
59
60
|
:view_event => '"View event"',
|
60
61
|
:view_gem => '"View Gem"',
|
61
62
|
:viewinstall_text => '"View Install Text"' ,
|
@@ -66,6 +66,7 @@
|
|
66
66
|
:viewinstalled_text => '"View Install Text"',
|
67
67
|
:view_platform => '"view platform"',
|
68
68
|
:viewplatform_information => '"View Platform Information"',
|
69
|
+
:viewlogger_information => '"View Logger Information"',
|
69
70
|
:viewinstall_text => '"View Install Text"' ,
|
70
71
|
:viewlistinstall_files => '"View List of Installed Files"',
|
71
72
|
:view_photo => '"View Photo"',
|
@@ -68,6 +68,7 @@
|
|
68
68
|
:viewinstalled_text => '"View Install Text"',
|
69
69
|
:view_platform => '"view platform"',
|
70
70
|
:viewplatform_information => '"View Platform Information"',
|
71
|
+
:viewlogger_information => '"View Logger Information"',
|
71
72
|
:view_event => '"View event"',
|
72
73
|
:viewinstall_text => '"View Install Text"' ,
|
73
74
|
:viewlistinstall_files => '"View List of Installed Files"',
|
data/lib/rwd/net.rb
CHANGED
@@ -614,10 +614,10 @@ class Request < Hash
|
|
614
614
|
@vars = RequestPost.new((self["content-type"] == "application/x-www-form-urlencoded") ? data : "")
|
615
615
|
else
|
616
616
|
$stderr.puts "Unknown request ('#{firstline}')."
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
617
|
+
end
|
618
|
+
|
619
|
+
$rwdtinkerlog.debug data
|
620
|
+
|
621
621
|
end
|
622
622
|
|
623
623
|
@peeraddr = @io.peeraddr
|
@@ -739,14 +739,15 @@ class HTTPServerException < Exception
|
|
739
739
|
end
|
740
740
|
|
741
741
|
class HTTPServer
|
742
|
-
def self.serve(portio=80, remote=false, auth=nil, realm="
|
742
|
+
def self.serve(portio=80, remote=false, auth=nil, realm="rwd/net")
|
743
743
|
port, server = portio
|
744
744
|
|
745
745
|
begin
|
746
746
|
server = TCPServer.new(remote ? "0.0.0.0" : "localhost", port) if server.nil?
|
747
|
-
|
747
|
+
if $DEBUG
|
748
748
|
$stderr.puts "Just point your browser to http://localhost:#{port}/ ..."
|
749
|
-
|
749
|
+
end
|
750
|
+
rescue
|
750
751
|
server = nil
|
751
752
|
|
752
753
|
$stderr.puts "Port #{port} is in use."
|
data/lib/rwd/rwd.rb
CHANGED
@@ -57,7 +57,8 @@ if ENV["RWDTHEME"]
|
|
57
57
|
load 'lib/rwdthemes/default.rwd'
|
58
58
|
end
|
59
59
|
if ENV["RWDTHEME"] = "DEFAULT"
|
60
|
-
|
60
|
+
$rwdtinkerlog.info "rwd: loading theme DEFAULT"
|
61
|
+
|
61
62
|
load 'lib/rwdthemes/default.rwd'
|
62
63
|
end
|
63
64
|
if ENV["RWDTHEME"] = "WINDOWSLOOKALIKE"
|
@@ -267,7 +268,7 @@ class EVTable
|
|
267
268
|
end
|
268
269
|
|
269
270
|
class OpenTag
|
270
|
-
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
271
|
+
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
271
272
|
bef = before[-1]
|
272
273
|
res << Format % ["Before", @subtype] if ($rwd_debug and not bef.nil?)
|
273
274
|
res << bef if not bef.nil?
|
@@ -299,7 +300,7 @@ class OpenTag
|
|
299
300
|
args["nohelpbutton"] = (not help)
|
300
301
|
|
301
302
|
template = $rwd_html_1
|
302
|
-
template = $rwd_html_PDA_1 if pda
|
303
|
+
# template = $rwd_html_PDA_1 if pda
|
303
304
|
|
304
305
|
res << (template(template, args))
|
305
306
|
when "p" then res << "<p #{align}>"
|
@@ -493,7 +494,7 @@ class OpenTag
|
|
493
494
|
after.push(aft)
|
494
495
|
end
|
495
496
|
|
496
|
-
def postchildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
497
|
+
def postchildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
497
498
|
case @subtype
|
498
499
|
when "vertical", "window", "helpwindow", "tab", "panel"
|
499
500
|
res << Format % ["BefPost", @subtype] if $rwd_debug
|
@@ -635,7 +636,7 @@ class OpenTag
|
|
635
636
|
end
|
636
637
|
|
637
638
|
class Text
|
638
|
-
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
639
|
+
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
639
640
|
if not @text.scan(/[^ \t\r\n]/).empty?
|
640
641
|
res << Format % ["Text", ""] if $rwd_debug
|
641
642
|
res << "#{@text}"
|
@@ -742,8 +743,8 @@ class RWDWindow
|
|
742
743
|
end
|
743
744
|
|
744
745
|
rescue
|
745
|
-
|
746
|
-
|
746
|
+
$rwdtinkerlog.error "error in RWDWindow - render method"
|
747
|
+
|
747
748
|
end
|
748
749
|
end
|
749
750
|
|
@@ -864,13 +865,11 @@ class RWDialog
|
|
864
865
|
|
865
866
|
post.sort.each do |key, value|
|
866
867
|
puts "Post: #{key} -> #{value.from_html.inspect}" if $rwd_debug
|
867
|
-
|
868
|
-
|
869
|
-
end
|
868
|
+
$rwdtinkerlog.info "Post: #{key} -> #{value.from_html.inspect}\n"
|
869
|
+
|
870
870
|
vars[key] = value.from_html
|
871
|
-
|
872
|
-
|
873
|
-
end
|
871
|
+
$rwdtinkerlog.info "rwd: #{value.from_html}\n"
|
872
|
+
|
874
873
|
end
|
875
874
|
|
876
875
|
# Stack handling for rwd_action, rwd_window and rwd_tab.
|
@@ -938,16 +937,14 @@ class RWDialog
|
|
938
937
|
# Copy vars from window to instance.
|
939
938
|
|
940
939
|
vars.each do |k, v|
|
941
|
-
|
942
|
-
|
943
|
-
end
|
940
|
+
$rwdtinkerlog.info "rwd: Post: #{k} -> #{v}\n"
|
941
|
+
|
944
942
|
if ((not k.empty?) and k.scan(/^rwd_/).empty? and not @rwd_ignore_vars.include?("@#{k}"))
|
945
943
|
|
946
944
|
instance_eval "@#{k} = ''"
|
947
945
|
instance_variable_set("@#{k}", vars.fetch("#{k}"))
|
948
|
-
|
949
|
-
|
950
|
-
end
|
946
|
+
$rwdtinkerlog.info "rwd: Post: #{k} -> #{v}\n"
|
947
|
+
|
951
948
|
end
|
952
949
|
end
|
953
950
|
|
@@ -955,7 +952,9 @@ class RWDialog
|
|
955
952
|
|
956
953
|
if (not back) or @rwd_call_after_back.include?(@rwd_action)
|
957
954
|
unless @rwd_action =~ /^rwd_/
|
958
|
-
|
955
|
+
|
956
|
+
$rwdtinkerlog.debug "Method: #{@rwd_action}(#{@rwd_args})"
|
957
|
+
|
959
958
|
if methods.include?(@rwd_action)
|
960
959
|
method(@rwd_action).call(*@rwd_args)
|
961
960
|
else
|
@@ -1025,9 +1024,9 @@ begin # error block
|
|
1025
1024
|
end
|
1026
1025
|
res << RWDWindow.new($rwd_gui_tinker, @rwd_window).render(pda, @rwd_refresh_action, vars, @rwd_switches, help, @rwd_tab)
|
1027
1026
|
rescue
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1027
|
+
|
1028
|
+
$rwdtinkerlog.error "rwd: error in render"
|
1029
|
+
|
1031
1030
|
end
|
1032
1031
|
end
|
1033
1032
|
end
|
@@ -1105,7 +1104,9 @@ end
|
|
1105
1104
|
Thread.new do
|
1106
1105
|
loop do
|
1107
1106
|
if Time.now - @rwd_time > @rwd_timeout
|
1108
|
-
|
1107
|
+
|
1108
|
+
$rwdtinkerlog.info "rwd: Exiting due to timeout (#{@rwd_timeout} seconds)."
|
1109
|
+
|
1109
1110
|
exit 1
|
1110
1111
|
end
|
1111
1112
|
sleep interval
|
@@ -1185,7 +1186,7 @@ class RWDSession < Hash
|
|
1185
1186
|
@lastaccess = Time.now
|
1186
1187
|
end
|
1187
1188
|
|
1188
|
-
def render(res, path, post, download, downloadfile, pda)
|
1189
|
+
def render(res, path, post, download, downloadfile, pda=false)
|
1189
1190
|
done = self["object"].render(res, path, post, download, downloadfile, pda, @sessionid)
|
1190
1191
|
|
1191
1192
|
res.gsub!(/\$RWD_SESSION\$/, done ? "" : "#{@sessionid}")
|
@@ -1212,7 +1213,8 @@ class RWDServer
|
|
1212
1213
|
|
1213
1214
|
@browserthread =
|
1214
1215
|
Thread.new do
|
1215
|
-
|
1216
|
+
$rwdtinkerlog.warn "rwd: Starting the browser..."
|
1217
|
+
|
1216
1218
|
|
1217
1219
|
#if ENV["RWDBROWSER"].downcase =~ /iexplore/ # ???
|
1218
1220
|
#@ie = IE.new("http://localhost:#{port}/")
|
@@ -1226,7 +1228,7 @@ class RWDServer
|
|
1226
1228
|
|
1227
1229
|
command.gsub!(/%port%/, port.to_s)
|
1228
1230
|
|
1229
|
-
system(command) or $
|
1231
|
+
system(command) or $rwdtinkerlog.error "Starting of the browser failed, or the browser terminated abnormally.\nCommand => #{command}"
|
1230
1232
|
#end
|
1231
1233
|
|
1232
1234
|
puts "The browser has terminated."
|
@@ -1337,8 +1339,8 @@ class RWDServer
|
|
1337
1339
|
resp << download
|
1338
1340
|
end
|
1339
1341
|
rescue
|
1340
|
-
|
1341
|
-
|
1342
|
+
|
1343
|
+
$rwdtinkerlog.error "rwd: Sending response to browser failed."
|
1342
1344
|
@sessions.delete(session.sessionid)
|
1343
1345
|
end
|
1344
1346
|
|
@@ -1352,8 +1354,9 @@ class RWDServer
|
|
1352
1354
|
|
1353
1355
|
if @browserstarted and not @browserthread.nil? and @browserthread.alive?
|
1354
1356
|
resp.stop do
|
1355
|
-
|
1356
|
-
|
1357
|
+
|
1358
|
+
$rwdtinkerlog.warn "rwd: Waiting for the browser to terminate..."
|
1359
|
+
|
1357
1360
|
@browserthread.join
|
1358
1361
|
end
|
1359
1362
|
end
|
data/lib/rwdthemes/default.rwd
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
module RwdtinkerTools
|
4
|
+
|
5
|
+
# tools to use in rwdtinker
|
6
|
+
|
7
|
+
def RwdtinkerTools.tail(filename, lines=12)
|
8
|
+
|
9
|
+
|
10
|
+
begin
|
11
|
+
tmpFile = File.open(filename, 'r')
|
12
|
+
|
13
|
+
return tmpFile.readlines.reverse!.slice(0,lines)
|
14
|
+
|
15
|
+
tmpFile.close
|
16
|
+
rescue
|
17
|
+
return "error in opening log"
|
18
|
+
$rwdtinkerlog.error "RwdtinkerTools.tail: file open error"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -220,13 +220,18 @@ under the terms of the GPL licence:
|
|
220
220
|
For more information see:
|
221
221
|
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
222
222
|
|
223
|
-
|
224
223
|
For more information about RubyWebDialogs see:
|
225
224
|
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
226
225
|
|
227
226
|
Thanks, Steven Gibson
|
228
227
|
|
229
228
|
== Changelog
|
229
|
+
version 1.80
|
230
|
+
changed pda handling in rwd.rb
|
231
|
+
added logging
|
232
|
+
added log review screen on tinker back window
|
233
|
+
changed handling of live applet loading, to not list version in file names
|
234
|
+
|
230
235
|
version 1.79
|
231
236
|
edited net.rb to fix text editing
|
232
237
|
|
data/tests/makedist.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.80"
|
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-
|
12
|
+
date: 2008-10-04 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -44,8 +44,10 @@ files:
|
|
44
44
|
- lib/rwdthemes/default.rwd
|
45
45
|
- lib/rwdthemes/pda.rwd
|
46
46
|
- lib/rwdthemes/windowslike.rwd
|
47
|
+
- lib/rwdtinker/rwdtinkertools.rb
|
47
48
|
- code/zz0applicationend/zz0end.rb
|
48
49
|
- code/superant.com.rwdtinkerbackwindow/listgemdirs.rb
|
50
|
+
- code/superant.com.rwdtinkerbackwindow/viewlogfile.rb
|
49
51
|
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
50
52
|
- code/superant.com.rwdtinkerbackwindow/listgemzips.rb
|
51
53
|
- code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
|
@@ -112,6 +114,7 @@ files:
|
|
112
114
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
|
113
115
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
|
114
116
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd
|
117
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd
|
115
118
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd
|
116
119
|
- gui/tinkerbackwindows/superant.com.versionwindow
|
117
120
|
- gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd
|
@@ -129,6 +132,7 @@ files:
|
|
129
132
|
- gui/frontwindowselections/00selectiontabbegin.rwd
|
130
133
|
- gui/zzcoreguiend/yy9rwdend.rwd
|
131
134
|
- installed/temp.rb
|
135
|
+
- rwd_files/log/rwdtinker.log
|
132
136
|
- rwd_files/tinker.png
|
133
137
|
- rwd_files/favicon.ico
|
134
138
|
- rwd_files/rdoc-style.css
|
@@ -137,14 +141,11 @@ files:
|
|
137
141
|
- rwd_files/HowTo_TinkerWin2.txt
|
138
142
|
- rwd_files/RubyWebDialogs.html
|
139
143
|
- rwd_files/HowTo_Tinker.txt
|
140
|
-
- zips/tinkerbellw-0.02.zip
|
141
|
-
- zips/rwdwgutenberg-0.09.zip
|
142
144
|
- zips/temp.rb
|
143
|
-
- zips/rwdwfoldeditor-0.
|
144
|
-
- zips/rwdwcalc-0.
|
145
|
-
- zips/rwdwruby-1.
|
146
|
-
- zips/
|
147
|
-
- zips/wrubyslippers-1.06.zip
|
145
|
+
- zips/rwdwfoldeditor-0.05.zip
|
146
|
+
- zips/rwdwcalc-0.63.zip
|
147
|
+
- zips/rwdwruby-1.08.zip
|
148
|
+
- zips/wrubyslippers-1.07.zip
|
148
149
|
- tests/rdep.rb
|
149
150
|
- tests/cleancnf.sh
|
150
151
|
- tests/makedist.rb
|
data/zips/rwdwaddresses-1.06.zip
DELETED
Binary file
|
data/zips/rwdwgutenberg-0.09.zip
DELETED
Binary file
|
data/zips/tinkerbellw-0.02.zip
DELETED
Binary file
|
data/zips/wrubyslippers-1.06.zip
DELETED
Binary file
|