rwdtinker 1.67 → 1.68
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 +3 -0
- data/bin/rwdtinker +0 -0
- data/code/01rwdcore/01rwdcore.rb +0 -0
- data/code/01rwdcore/02helptexthashbegin.rb +0 -0
- data/code/01rwdcore/03helptexthash.rb +0 -0
- data/code/01rwdcore/04helptextend.rb +0 -0
- data/code/01rwdcore/jumplinkcommand.rb +0 -0
- data/code/01rwdcore/openhelpwindow.rb +0 -0
- data/code/01rwdcore/returntomain.rb +0 -0
- data/code/01rwdcore/rundocuments.rb +0 -0
- data/code/01rwdcore/runeditconfiguration.rb +0 -0
- data/code/01rwdcore/runhelpabout.rb +0 -0
- data/code/01rwdcore/runopentinkerdocument.rb +0 -0
- data/code/01rwdcore/rwdtinkerversion.rb +0 -0
- data/code/01rwdcore/rwdwindowreturn.rb +0 -0
- data/code/01rwdcore/selectiontab.rb +0 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +0 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +0 -0
- data/code/01rwdcore/test_cases.rb +0 -0
- data/code/01rwdcore/test_harness.rb +0 -0
- data/code/01rwdcore/uploadreturns.rb +0 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -0
- data/code/zz0applicationend/zz0end.rb +0 -0
- data/configuration/language.dist +0 -0
- data/configuration/rwdapplicationidentity.dist +0 -0
- data/configuration/rwdtinker.dist +2 -2
- data/configuration/tinkerwin2variables.dist +0 -0
- data/ev/browser.rb +24 -10
- data/ev/ftools.rb +23 -19
- data/ev/mime.rb +328 -0
- data/ev/net.rb +154 -38
- data/ev/ruby.rb +96 -26
- data/ev/rwd.rb +162 -89
- data/ev/sgml.rb +1 -1
- data/ev/thread.rb +0 -0
- data/ev/tree.rb +33 -5
- data/ev/xml.rb +97 -0
- data/extras/rconftool.rb +0 -0
- data/extras/zip/ioextras.rb +0 -0
- data/extras/zip/stdrubyext.rb +0 -0
- data/extras/zip/tempfile_bugfixed.rb +0 -0
- data/extras/zip/zip.rb +0 -0
- data/extras/zip/zipfilesystem.rb +0 -0
- data/extras/zip/ziprequire.rb +0 -0
- data/gui/00coreguibegin/applicationguitop.rwd +0 -0
- data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +0 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +0 -0
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +0 -0
- data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +0 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +0 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
- data/init.rb +0 -0
- data/lang/en/rwdcore/languagefile.rb +0 -0
- data/lang/es/rwdcore/languagefile-es.rb +0 -0
- data/lang/jp/rwdcore/languagefile.rb +0 -0
- data/lang/nl/rwdcore/languagefile.rb +0 -0
- data/lib/temp.rb +0 -0
- data/rwd_files/HowTo_Tinker.txt +3 -0
- data/rwd_files/HowTo_TinkerWin2.txt +0 -0
- data/rwd_files/Readme.txt +0 -0
- data/rwd_files/RubyWebDialogs.html +0 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +0 -0
- data/rwd_files/rwdapplications.html +0 -0
- data/rwd_files/tinker.png +0 -0
- data/rwdconfig.dist +1 -1
- data/tests/checkdepends.sh +0 -0
- data/tests/cleancnf.sh +0 -0
- data/tests/makedist.rb +0 -0
- data/tests/rdep.rb +0 -0
- data/tests/totranslate.lang +0 -0
- metadata +170 -156
- data/zips/rwdahelloworld-0.5.zip +0 -0
data/ev/tree.rb
CHANGED
@@ -88,7 +88,7 @@ class TreeObject
|
|
88
88
|
def inspect
|
89
89
|
parent, children = @parent, @children
|
90
90
|
|
91
|
-
@parent, @children = parent.
|
91
|
+
@parent, @children = parent.object_id, children.collect{|obj| obj.object_id}
|
92
92
|
|
93
93
|
res = " " * (level-1) + "#{self.class}(#{@subtype}) #{super}"
|
94
94
|
|
@@ -96,6 +96,34 @@ class TreeObject
|
|
96
96
|
|
97
97
|
res
|
98
98
|
end
|
99
|
+
|
100
|
+
def previous(klass=[], skip=[])
|
101
|
+
klass = [klass].flatten
|
102
|
+
skip = [skip].flatten
|
103
|
+
|
104
|
+
po = @parent
|
105
|
+
return nil if po.nil?
|
106
|
+
|
107
|
+
ch = po.children
|
108
|
+
return nil if ch.nil?
|
109
|
+
|
110
|
+
n = ch.index(self)
|
111
|
+
return nil if n.nil?
|
112
|
+
|
113
|
+
res = nil
|
114
|
+
if klass.nil?
|
115
|
+
n -= 1
|
116
|
+
res = ch[n]
|
117
|
+
else
|
118
|
+
begin
|
119
|
+
n -= 1
|
120
|
+
res = ch[n]
|
121
|
+
end while (klass.empty? or klass.collect{|k| ch[n-1].kind_of?(k)}.sort.uniq == [true]) \
|
122
|
+
and (skip.empty? or skip.collect{|k| ch[n-1].kind_of?(k)}.sort.uniq == [false])
|
123
|
+
end
|
124
|
+
|
125
|
+
res
|
126
|
+
end
|
99
127
|
end
|
100
128
|
|
101
129
|
class Tree
|
@@ -138,7 +166,7 @@ class Tree
|
|
138
166
|
end
|
139
167
|
|
140
168
|
def self.location(url, form=Hash.new)
|
141
|
-
s = HTTPClient.get(url, form)
|
169
|
+
s = HTTPClient.get(url, {}, form)
|
142
170
|
s = "" if s.nil?
|
143
171
|
new(s)
|
144
172
|
end
|
@@ -155,7 +183,7 @@ class Tree
|
|
155
183
|
|
156
184
|
tree = nil
|
157
185
|
|
158
|
-
|
186
|
+
File.mkpath(dir)
|
159
187
|
|
160
188
|
if File.file?(file)
|
161
189
|
@@mutex.synchronize do
|
@@ -227,7 +255,7 @@ class Tree
|
|
227
255
|
end
|
228
256
|
|
229
257
|
def markclosed
|
230
|
-
([self]
|
258
|
+
([self] + @objects).each do |obj|
|
231
259
|
obj.children.each_index do |i|
|
232
260
|
co1 = obj.children[i]
|
233
261
|
co2 = obj.children[i+1]
|
@@ -238,7 +266,7 @@ class Tree
|
|
238
266
|
end
|
239
267
|
|
240
268
|
def deletedummies
|
241
|
-
([self]
|
269
|
+
([self] + @objects).each do |obj|
|
242
270
|
obj.children.delete_if do |obj2|
|
243
271
|
obj2.upordown == Dummy
|
244
272
|
end
|
data/ev/xml.rb
CHANGED
@@ -1,4 +1,101 @@
|
|
1
1
|
require "ev/sgml"
|
2
2
|
|
3
|
+
class SGMLObject
|
4
|
+
def to_x(closetags=true)
|
5
|
+
res = ""
|
6
|
+
|
7
|
+
parsetree("prechildren_to_x", "postchildren_to_x", res, closetags)
|
8
|
+
|
9
|
+
res
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Text < SGMLObject
|
14
|
+
def prechildren_to_x(res, closetags)
|
15
|
+
res << @text.strip unless @text.strip.empty?
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Comment < SGMLObject
|
20
|
+
def prechildren_to_x(res, closetags)
|
21
|
+
res << "\n" if not previous([], [Text]).kind_of?(Comment)
|
22
|
+
lines = @text.gsub(/(<!--|-->)/, "").lf.split(/\n/)
|
23
|
+
if lines.length == 1
|
24
|
+
res << " "*(@level-1) + "<!-- " + lines[0].strip + " -->" + "\n"
|
25
|
+
else
|
26
|
+
res << " "*(@level-1) + "<!--" + "\n"
|
27
|
+
res << lines.collect{|s| " "*(@level-1) + s.strip}.delete_if{|s| s.compress.empty?}.join("\n")
|
28
|
+
res << "\n"
|
29
|
+
res << " "*(@level-1) + "-->" + "\n"
|
30
|
+
res << "\n"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class Special < SGMLObject
|
36
|
+
def prechildren_to_x(res, closetags)
|
37
|
+
res << " "*(@level-1) + @text.compress + "\n"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
class Instruction < SGMLObject
|
42
|
+
def prechildren_to_x(res, closetags)
|
43
|
+
res << " "*(@level-1) + @text.compress + "\n"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class OpenTag < Tag
|
48
|
+
def prechildren_to_x(res, closetags)
|
49
|
+
a = [@subtype]
|
50
|
+
|
51
|
+
args = @args.dup
|
52
|
+
args.delete("id")
|
53
|
+
args.delete("name")
|
54
|
+
args = args.sort
|
55
|
+
args.unshift(["id", @args["id"]]) if @args.include?("id")
|
56
|
+
args.unshift(["name", @args["name"]]) if @args.include?("name")
|
57
|
+
|
58
|
+
args.each do |k, v|
|
59
|
+
if not v.include?("'")
|
60
|
+
a << "#{k}='#{v}'"
|
61
|
+
else
|
62
|
+
if not v.include?('"')
|
63
|
+
a << "#{k}=\"#{v}\""
|
64
|
+
else
|
65
|
+
a << "#{k}='#{v.gsub(/\'/, '"')}'"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if @children.length == 0 or (@children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.compress.empty?)
|
71
|
+
res << " "*(@level-1) + "<#{a.join(" ")}/>" + "\n"
|
72
|
+
else
|
73
|
+
if @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length == 1
|
74
|
+
res << " "*(@level-1) + "<#{a.join(" ")}>"
|
75
|
+
else
|
76
|
+
res << " "*(@level-1) + "<#{a.join(" ")}>" + "\n"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def postchildren_to_x(res, closetags)
|
82
|
+
if closetags
|
83
|
+
unless @children.length == 0 or (@children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.compress.empty?)
|
84
|
+
res << "\n" if @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length > 1
|
85
|
+
res << " "*(@level-1) unless @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length == 1
|
86
|
+
res << "</#{@subtype}>"
|
87
|
+
res << "\n"
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
3
93
|
class XML < SGML
|
94
|
+
def to_x(closetags=true)
|
95
|
+
res = ""
|
96
|
+
|
97
|
+
parsetree("prechildren_to_x", "postchildren_to_x", res, closetags)
|
98
|
+
|
99
|
+
res
|
100
|
+
end
|
4
101
|
end
|
data/extras/rconftool.rb
CHANGED
File without changes
|
data/extras/zip/ioextras.rb
CHANGED
File without changes
|
data/extras/zip/stdrubyext.rb
CHANGED
File without changes
|
File without changes
|
data/extras/zip/zip.rb
CHANGED
File without changes
|
data/extras/zip/zipfilesystem.rb
CHANGED
File without changes
|
data/extras/zip/ziprequire.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/init.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/temp.rb
CHANGED
File without changes
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
File without changes
|
data/rwd_files/Readme.txt
CHANGED
File without changes
|
File without changes
|
data/rwd_files/favicon.ico
CHANGED
File without changes
|
data/rwd_files/rdoc-style.css
CHANGED
File without changes
|
File without changes
|
data/rwd_files/tinker.png
CHANGED
File without changes
|
data/rwdconfig.dist
CHANGED
data/tests/checkdepends.sh
CHANGED
File without changes
|
data/tests/cleancnf.sh
CHANGED
File without changes
|
data/tests/makedist.rb
CHANGED
File without changes
|
data/tests/rdep.rb
CHANGED
File without changes
|
data/tests/totranslate.lang
CHANGED
File without changes
|