rwdtinker 1.78 → 1.79

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.
@@ -1,4 +1,4 @@
1
- ##VERSION: (1.78)
1
+ ##VERSION: (1.79)
2
2
  #language selection file
3
3
  ##NAME: ($lang):(1.78)
4
4
  #$lang = "jp"
@@ -1,3 +1,3 @@
1
- ##VERSION: (1.78)
1
+ ##VERSION: (1.79)
2
2
  $rwdapplicationidentity = "rwdtinker main application"
3
3
 
@@ -1,4 +1,4 @@
1
- ##VERSION: (1.78)
1
+ ##VERSION: (1.79)
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.78"
14
+ RwdTinkerVersion = "1.79"
15
15
 
@@ -1,4 +1,4 @@
1
- ##VERSION: (1.78)
1
+ ##VERSION: (1.79)
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.78"
17
+ RwdTinkerWin2Version = "1.79"
18
18
 
data/lib/rwd/net.rb CHANGED
@@ -610,13 +610,14 @@ class Request < Hash
610
610
  @vars = RequestGet.new(@request.data.nil? ? "" : @request.data)
611
611
  when "POST"
612
612
  data = (@io.read(self["content-length"].to_i) or "")
613
- data = url_unescape(data)
613
+ # data = url_unescape(data)
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
617
  end
618
- $stderr.puts data
619
-
618
+ if $DEBUG
619
+ $stderr.puts data
620
+ end
620
621
  end
621
622
 
622
623
  @peeraddr = @io.peeraddr
data/lib/rwd/ruby.rb CHANGED
@@ -275,7 +275,7 @@ class String
275
275
  s.gsub!(/&#34;/ , "\"")
276
276
  s.gsub!(/&#180;/, "\'")
277
277
 
278
- s = CGI.unescapeHTML(self)
278
+ # s = CGI.unescapeHTML(self)
279
279
 
280
280
  if eolconversion
281
281
  s.gsub!(/<br>/, "\n")
data/lib/rwd/rwd.rb CHANGED
@@ -683,70 +683,70 @@ class RWDWindow
683
683
 
684
684
  vars = vars.deep_dup
685
685
 
686
- begin # error wrap
686
+ begin # error wrap
687
687
 
688
- vars.each do |key, value|
689
- if not key.empty?
690
- if value.respond_to? "to_s"
691
- @rwd.gsub!(/%%#{key}%%/, value.to_s)
692
- @rwd.gsub!(/%#{key}%/, value.to_s.to_html)
688
+ vars.each do |key, value|
689
+ if not key.empty?
690
+ if value.respond_to? "to_s"
691
+ @rwd.gsub!(/%%#{key}%%/, value.to_s)
692
+ @rwd.gsub!(/%#{key}%/, value.to_s.to_html)
693
693
 
694
- @helprwd.gsub!(/%%#{key}%%/, value.to_s)
695
- @helprwd.gsub!(/%#{key}%/, value.to_s.to_html)
694
+ @helprwd.gsub!(/%%#{key}%%/, value.to_s)
695
+ @helprwd.gsub!(/%#{key}%/, value.to_s.to_html)
696
696
 
697
- varshtml[key] = value.to_s.to_html
698
- varsstring[key] = value.to_s
699
- end
700
- end
701
- end
697
+ varshtml[key] = value.to_s.to_html
698
+ varsstring[key] = value.to_s
699
+ end
700
+ end
701
+ end
702
702
 
703
- windowobject = RWDTree.new(@rwd).children.dup.delete_if{|obj| obj.subtype != "window"}[0]
704
- helpobject = RWDTree.new(@helprwd).children.dup.delete_if{|obj| obj.subtype != "helpwindow"}[0]
703
+ windowobject = RWDTree.new(@rwd).children.dup.delete_if{|obj| obj.subtype != "window"}[0]
704
+ helpobject = RWDTree.new(@helprwd).children.dup.delete_if{|obj| obj.subtype != "helpwindow"}[0]
705
705
 
706
- tabsobj = windowobject.children.dup.delete_if{|obj| obj.subtype != "tabs"}[0]
706
+ tabsobj = windowobject.children.dup.delete_if{|obj| obj.subtype != "tabs"}[0]
707
707
 
708
- if not tabsobj.nil?
709
- tabs = tabsobj.children.dup.delete_if{|obj| (not obj.kind_of?(OpenTag)) or (obj.subtype != "tab")}
708
+ if not tabsobj.nil?
709
+ tabs = tabsobj.children.dup.delete_if{|obj| (not obj.kind_of?(OpenTag)) or (obj.subtype != "tab")}
710
710
 
711
- if tab.empty?
712
- tab = tabs[0].args["name"]
713
- end
711
+ if tab.empty?
712
+ tab = tabs[0].args["name"]
713
+ end
714
714
 
715
- tabsobj.children.delete_if{|obj| (obj.kind_of?(OpenTag)) and (obj.subtype == "tab") and obj.args["name"] != tab}
716
- end
715
+ tabsobj.children.delete_if{|obj| (obj.kind_of?(OpenTag)) and (obj.subtype == "tab") and obj.args["name"] != tab}
716
+ end
717
717
 
718
- if help
719
- helpobject.parsetree("prechildren", "postchildren", html, [""], [""], varshtml, varsstring, switches, false, oneormorefields, firstaction, tabs, tab, pda)
720
- else
721
- windowobject.parsetree("prechildren", "postchildren", html, [""], [""], varshtml, varsstring, switches, (not @helprwd.empty?), oneormorefields, firstaction, tabs, tab, pda)
722
- end
718
+ if help
719
+ helpobject.parsetree("prechildren", "postchildren", html, [""], [""], varshtml, varsstring, switches, false, oneormorefields, firstaction, tabs, tab, pda)
720
+ else
721
+ windowobject.parsetree("prechildren", "postchildren", html, [""], [""], varshtml, varsstring, switches, (not @helprwd.empty?), oneormorefields, firstaction, tabs, tab, pda)
722
+ end
723
723
 
724
- html = html.join("") # ???
724
+ html = html.join("") # ???
725
725
 
726
- html.gsub!(/%%*[[:alnum:]_\-]+%%*/, "") if not $rwd_debug
727
- html.gsub!(/%%/, "%")
728
- html.gsub!(/\n\n*/, "\n")
726
+ html.gsub!(/%%*[[:alnum:]_\-]+%%*/, "") if not $rwd_debug
727
+ html.gsub!(/%%/, "%")
728
+ html.gsub!(/\n\n*/, "\n")
729
729
 
730
- if oneormorefields.empty?
731
- focus = ""
732
- else
733
- focus = "document.bodyform.elements[0].focus();"
734
- end
730
+ if oneormorefields.empty?
731
+ focus = ""
732
+ else
733
+ focus = "document.bodyform.elements[0].focus();"
734
+ end
735
735
 
736
- firstaction = action if windowobject.args.keys.include?("refresh") unless action.nil?
736
+ firstaction = action if windowobject.args.keys.include?("refresh") unless action.nil?
737
737
 
738
- html.gsub!(/\$RWD_FIRSTACTION\$/ , firstaction)
739
- html.gsub!(/\$RWD_FOCUS\$/ , focus)
738
+ html.gsub!(/\$RWD_FIRSTACTION\$/ , firstaction)
739
+ html.gsub!(/\$RWD_FOCUS\$/ , focus)
740
740
 
741
- html
742
- end
741
+ html
742
+ end
743
743
 
744
744
  rescue
745
- if $DEBUG
745
+
746
746
  $stderr.puts "error in RWDWindow - render method"
747
747
  end
748
748
  end
749
- end
749
+
750
750
 
751
751
  class RWDMessage < RWDWindow
752
752
  def initialize(msg)
@@ -830,7 +830,9 @@ class RWDialog
830
830
 
831
831
  self
832
832
  end
833
+
833
834
 
835
+
834
836
  def render(res, path, post, download, downloadfile, pda, sessionid)
835
837
  # Avoid a timeout.
836
838
 
@@ -862,8 +864,13 @@ class RWDialog
862
864
 
863
865
  post.sort.each do |key, value|
864
866
  puts "Post: #{key} -> #{value.from_html.inspect}" if $rwd_debug
865
-
867
+ if $DEBUG
868
+ $stderr.puts "Post: #{key} -> #{value.from_html.inspect}\n"
869
+ end
866
870
  vars[key] = value.from_html
871
+ if $DEBUG
872
+ $stderr.puts " #{value.from_html}\n"
873
+ end
867
874
  end
868
875
 
869
876
  # Stack handling for rwd_action, rwd_window and rwd_tab.
@@ -931,7 +938,17 @@ class RWDialog
931
938
  # Copy vars from window to instance.
932
939
 
933
940
  vars.each do |k, v|
934
- instance_eval "@#{k} = vars['#{k}']" if ((not k.empty?) and k.scan(/^rwd_/).empty? and not @rwd_ignore_vars.include?("@#{k}"))
941
+ if $DEBUG
942
+ $stderr.puts "Post: #{k} -> #{v}\n"
943
+ end
944
+ if ((not k.empty?) and k.scan(/^rwd_/).empty? and not @rwd_ignore_vars.include?("@#{k}"))
945
+
946
+ instance_eval "@#{k} = ''"
947
+ instance_variable_set("@#{k}", vars.fetch("#{k}"))
948
+ if $DEBUG
949
+ $stderr.puts "Post: #{k} -> #{v}\n"
950
+ end
951
+ end
935
952
  end
936
953
 
937
954
  # Callback.
@@ -227,6 +227,13 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.79
231
+ edited net.rb to fix text editing
232
+
233
+ version 1.78
234
+ modify config files
235
+ modify rconftools.rb to handle \r\n dos vs unix
236
+
230
237
  Version 1.77
231
238
  Fixed zips location to be relative or absolute
232
239
  Made themes loadable
data/tests/makedist.rb CHANGED
@@ -15,7 +15,7 @@ require 'fileutils'
15
15
 
16
16
  DistroName = "rwdtinker"
17
17
 
18
- DistroVersion="1.78"
18
+ DistroVersion="1.79"
19
19
 
20
20
  DistroTitle="#{DistroName}.dist"
21
21
  load "configuration/#{DistroTitle}"
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.78"
4
+ version: "1.79"
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-24 00:00:00 -07:00
12
+ date: 2008-09-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -137,11 +137,12 @@ files:
137
137
  - rwd_files/HowTo_TinkerWin2.txt
138
138
  - rwd_files/RubyWebDialogs.html
139
139
  - rwd_files/HowTo_Tinker.txt
140
+ - zips/tinkerbellw-0.02.zip
140
141
  - zips/rwdwgutenberg-0.09.zip
141
142
  - zips/temp.rb
142
143
  - zips/rwdwfoldeditor-0.04.zip
143
144
  - zips/rwdwcalc-0.62.zip
144
- - zips/rwdwruby-1.06.zip
145
+ - zips/rwdwruby-1.07.zip
145
146
  - zips/rwdwaddresses-1.06.zip
146
147
  - zips/wrubyslippers-1.06.zip
147
148
  - tests/rdep.rb
Binary file