rwdtinker 1.77 → 1.78
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/configuration/language.dist +2 -2
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdtinker.dist +4 -7
- data/configuration/tinkerwin2variables.dist +8 -7
- data/lib/rconftool.rb +13 -6
- data/lib/rwd/net.rb +9 -0
- data/rwdconfig.dist +14 -13
- data/tests/makedist.rb +8 -4
- data/zips/{rwdwaddresses-1.05.zip → rwdwaddresses-1.06.zip} +0 -0
- data/zips/rwdwcalc-0.62.zip +0 -0
- data/zips/rwdwfoldeditor-0.04.zip +0 -0
- data/zips/rwdwruby-1.06.zip +0 -0
- metadata +6 -5
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
data/configuration/language.dist
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION: (1.78)
|
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"
|
@@ -7,12 +7,9 @@ LangDir = "lang"
|
|
7
7
|
CodeDir = "code"
|
8
8
|
GuiDir = "gui"
|
9
9
|
$help_topic = "general_help"
|
10
|
-
|
11
|
-
|
12
|
-
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"] # remote control code not actived 2007
|
10
|
+
$prevouswindow ="main"
|
11
|
+
$rwdcontrolports =["13713","13714","13715","13716"] # remote control code not actived 2007
|
13
12
|
$port = 7705
|
14
|
-
$rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
|
15
13
|
Browser_Exe = 'mozilla '
|
16
|
-
|
17
|
-
RwdTinkerVersion = "1.77"
|
14
|
+
RwdTinkerVersion = "1.78"
|
18
15
|
|
@@ -1,17 +1,18 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION: (1.78)
|
2
2
|
TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
|
3
|
-
##NAME
|
3
|
+
##NAME: ($zipslocation):(1.78)
|
4
4
|
$zipslocation = "zips" # location of applets to add
|
5
|
-
$zipsarray = [""]
|
6
|
-
|
5
|
+
$zipsarray = [""]
|
6
|
+
$zipsarraylocal = [""]
|
7
|
+
##NAME: ($xpcommand):(1.78)
|
7
8
|
$xpcommand = " " # Linux machines
|
8
9
|
# $xpcommand = "cmd /C " # XP machines with cmd shell
|
9
|
-
##NAME
|
10
|
+
##NAME: ($gemdirectory_withgemfiles):(1.78)
|
10
11
|
$gemdirectory_withgemfiles = "/var/lib/gems/1.8/gems"
|
11
12
|
# $gemdirectory_withgemfiles = "c:\\ruby\\lib\\ruby\\gems\\1.8\\gems" # XP machine
|
12
|
-
##NAME
|
13
|
+
##NAME: ($geminstalled_directory):(1.78)
|
13
14
|
# $geminstalled_directory = "/ruby/lib/ruby/gems/1.8/gems" # XP machine
|
14
15
|
$geminstalled_directory = "/var/lib/gems/1.8/gems" # Debian Linux
|
15
16
|
|
16
|
-
RwdTinkerWin2Version = "
|
17
|
+
RwdTinkerWin2Version = "1.78"
|
17
18
|
|
data/lib/rconftool.rb
CHANGED
@@ -121,13 +121,17 @@ module Rconftool
|
|
121
121
|
next
|
122
122
|
end
|
123
123
|
if old_setting.version == src_setting.version
|
124
|
+
if $DEBUG
|
125
|
+
$stderr.puts "old setting: #{old_setting.version}"
|
126
|
+
$stderr.puts "src setting: #{src_setting.version}"
|
127
|
+
end
|
124
128
|
debug << " #{name}: unchanged\n"
|
125
|
-
|
129
|
+
src_setting.add_comment("\n DEFAULT SETTING from #{distfile}:\n")
|
126
130
|
src_setting.add_comment(src_setting.content)
|
127
131
|
src_setting.content = old_setting.content
|
128
132
|
next
|
129
133
|
end
|
130
|
-
|
134
|
+
# Otherwise, must install updated setting and comment out
|
131
135
|
# the current setting for reference
|
132
136
|
debug << " #{name}: UPDATED\n"
|
133
137
|
src_setting.add_comment("\n Previous setting (inserted by rconftool):\n\n")
|
@@ -215,9 +219,10 @@ module Rconftool
|
|
215
219
|
20.times do
|
216
220
|
line = f.gets
|
217
221
|
break unless line
|
218
|
-
|
222
|
+
linetmp = line.chop + "\r\n"
|
223
|
+
curr_setting << linetmp
|
219
224
|
if line =~ /\A##VERSION:/
|
220
|
-
@version = line
|
225
|
+
@version = line.chop
|
221
226
|
break
|
222
227
|
end
|
223
228
|
end
|
@@ -225,7 +230,8 @@ module Rconftool
|
|
225
230
|
|
226
231
|
while line = f.gets
|
227
232
|
unless line =~ /\A##NAME:(.*):(.*)/
|
228
|
-
|
233
|
+
linetmp = line.chop + "\r\n"
|
234
|
+
curr_setting << linetmp
|
229
235
|
next
|
230
236
|
end
|
231
237
|
curr_setting = Setting.new($1,$2)
|
@@ -238,7 +244,8 @@ module Rconftool
|
|
238
244
|
def write(filename)
|
239
245
|
File.open(filename,"w") do |f|
|
240
246
|
@settings.each do |s|
|
241
|
-
|
247
|
+
stmp = s.to_s.chop + "\r\n"
|
248
|
+
f << stmp
|
242
249
|
end
|
243
250
|
end
|
244
251
|
end
|
data/lib/rwd/net.rb
CHANGED
@@ -562,6 +562,12 @@ class RequestRequest
|
|
562
562
|
end
|
563
563
|
end
|
564
564
|
|
565
|
+
def url_unescape(string)
|
566
|
+
string.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n) do
|
567
|
+
[$1.delete('%')].pack('H*')
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
565
571
|
class Request < Hash
|
566
572
|
attr_reader :peeraddr
|
567
573
|
attr_reader :request
|
@@ -604,10 +610,13 @@ class Request < Hash
|
|
604
610
|
@vars = RequestGet.new(@request.data.nil? ? "" : @request.data)
|
605
611
|
when "POST"
|
606
612
|
data = (@io.read(self["content-length"].to_i) or "")
|
613
|
+
data = url_unescape(data)
|
607
614
|
@vars = RequestPost.new((self["content-type"] == "application/x-www-form-urlencoded") ? data : "")
|
608
615
|
else
|
609
616
|
$stderr.puts "Unknown request ('#{firstline}')."
|
610
617
|
end
|
618
|
+
$stderr.puts data
|
619
|
+
|
611
620
|
end
|
612
621
|
|
613
622
|
@peeraddr = @io.peeraddr
|
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"]
|
data/tests/makedist.rb
CHANGED
@@ -8,13 +8,14 @@ $progdir =""
|
|
8
8
|
$tinkerhelpaboutarray = [""]
|
9
9
|
$tinkerdocumentsarray = [""]
|
10
10
|
$testharnessarray = [""]
|
11
|
+
$helptopicsarray = [""]
|
11
12
|
$rwdjumplink = [""]
|
12
13
|
JumpLink = Hash.new("default")
|
13
14
|
require 'fileutils'
|
14
15
|
|
15
16
|
DistroName = "rwdtinker"
|
16
17
|
|
17
|
-
DistroVersion="1.
|
18
|
+
DistroVersion="1.78"
|
18
19
|
|
19
20
|
DistroTitle="#{DistroName}.dist"
|
20
21
|
load "configuration/#{DistroTitle}"
|
@@ -31,15 +32,18 @@ puts "moving up one directory"
|
|
31
32
|
Dir.chdir("..")
|
32
33
|
|
33
34
|
|
35
|
+
findcmd = "find #{DistroName}/_arx > /tmp/excludezip"
|
36
|
+
puts "#{findcmd}"
|
37
|
+
`#{findcmd}`
|
34
38
|
|
35
39
|
FileUtils.rm_rf("#{DistroTitle}.zip")
|
36
|
-
zipcreatecmd = "zip -r
|
40
|
+
zipcreatecmd = "zip -r #{DistroTitle}.zip #{DistroName} -x@/tmp/excludezip"
|
37
41
|
puts "#{zipcreatecmd}"
|
38
42
|
`#{zipcreatecmd}`
|
39
|
-
tarcreatecmd = "tar --gzip -cf #{DistroTitle}.tar.gz #{DistroName}"
|
43
|
+
tarcreatecmd = "tar --exclude-tag-all=++manifest --gzip -cf #{DistroTitle}.tar.gz #{DistroName}"
|
40
44
|
puts "#{tarcreatecmd}"
|
41
45
|
`#{tarcreatecmd}`
|
42
|
-
tarcreatecmd2 = "tar --bzip2 -cf #{DistroTitle}.tar.bz2 #{DistroName}"
|
46
|
+
tarcreatecmd2 = "tar --exclude-tag-all=++manifest --bzip2 -cf #{DistroTitle}.tar.bz2 #{DistroName}"
|
43
47
|
puts "#{tarcreatecmd2}"
|
44
48
|
`#{tarcreatecmd2}`
|
45
49
|
|
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.78"
|
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-09-
|
12
|
+
date: 2008-09-24 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -139,9 +139,10 @@ files:
|
|
139
139
|
- rwd_files/HowTo_Tinker.txt
|
140
140
|
- zips/rwdwgutenberg-0.09.zip
|
141
141
|
- zips/temp.rb
|
142
|
-
- zips/
|
143
|
-
- zips/
|
144
|
-
- zips/
|
142
|
+
- zips/rwdwfoldeditor-0.04.zip
|
143
|
+
- zips/rwdwcalc-0.62.zip
|
144
|
+
- zips/rwdwruby-1.06.zip
|
145
|
+
- zips/rwdwaddresses-1.06.zip
|
145
146
|
- zips/wrubyslippers-1.06.zip
|
146
147
|
- tests/rdep.rb
|
147
148
|
- tests/cleancnf.sh
|
data/zips/rwdwcalc-0.61.zip
DELETED
Binary file
|
data/zips/rwdwshell-1.04.zip
DELETED
Binary file
|