rwdtinker 1.65 → 1.66

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.txt CHANGED
@@ -227,6 +227,10 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ Version 1.66
231
+ Fixed directory layout
232
+ increased size of config edit screen
233
+
230
234
  Version 1.65
231
235
  Changed documents listing screen - now using hash
232
236
  Changed helpabout screen - now using hash
@@ -3,14 +3,14 @@
3
3
  # For information see http://www.rubyforge.net/projects/rwdapplications
4
4
 
5
5
  # return the version constant defined in the config file
6
- def rwdtinkerhelpaboutsetup
6
+ def tinkerhelpaboutsetup
7
7
  return ["RwdTinker","(c) 2004 Steven Gibson ","Version #{RwdTinkerVersion}"]
8
8
  end
9
9
 
10
10
  def runrwdtinkerversion
11
11
  @rwd_window = "applicationversion"
12
12
  helpaboutinput = @a_helpaboutinput.downcase
13
- versionarraysetup = "rwd#{helpaboutinput}helpaboutsetup"
13
+ versionarraysetup = "#{helpaboutinput}helpaboutsetup"
14
14
  versionarray= self.send(versionarraysetup)
15
15
 
16
16
  @versionappnamedisplay = versionarray[0].to_s
@@ -13,7 +13,7 @@ def findzipfiles(d)
13
13
  if(!test(?d,x))
14
14
  # only zip files
15
15
  if x =~ /\.zip/
16
- puts "#{x}" #opens the file thats in fileName as read only
16
+ #opens the file thats in fileName as read only
17
17
  $zipsarray = $zipsarray | ["#{x}"]
18
18
  end
19
19
  end
@@ -16,7 +16,7 @@ def listzipfilestoinstall
16
16
  a.each do |x|
17
17
  # only zip files
18
18
  if x =~ /\.zip/
19
- # puts "#{x}" #adds the file to the array to display on the screen
19
+ #adds the file to the array to display on the screen
20
20
  $zipsarraylocal = $zipsarraylocal | ["#{x}"]
21
21
  end
22
22
 
@@ -12,24 +12,7 @@ def loadconfigurationrecord
12
12
  fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName)
13
13
 
14
14
  fd = File.open(fileName,"r")
15
- @a_configline1= fd.readline.chomp
16
- @a_configline2 = fd.readline.chomp
17
- @a_configline3 = fd.readline.chomp
18
- @a_configline4 = fd.readline.chomp
19
- @a_configline5 = fd.readline.chomp
20
- @a_configline6 = fd.readline.chomp
21
- @a_configline7 =fd.readline.chomp
22
- @a_configline8 = fd.readline.chomp
23
- @a_configline9 = fd.readline.chomp
24
- @a_configline10 = fd.readline.chomp
25
- @a_configline11 =fd.readline.chomp
26
- @a_configline12 = fd.readline.chomp
27
- @a_configline13 =fd.readline.chomp
28
- @a_configline14 = fd.readline.chomp
29
-
30
- while ! fd.eof?
31
- @extraconfigdatadisplay = fd.readline
32
- end
15
+ @a_configurationfile = fd.read
33
16
  fd.close
34
17
  rescue SystemCallError, StandardError
35
18
  $stderr.print "system call error: " + $!
@@ -3,12 +3,9 @@ def saveconfigurationrecord
3
3
  require 'fileutils'
4
4
  if @a_configurationfilename
5
5
  newname = "%s" % [@a_configurationfilename] # grab the filename to create
6
- newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s +
7
- "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n" +
8
- @a_configline9.to_s + "\n" + @a_configline10.to_s + "\n" + @a_configline11.to_s + "\n" +
9
- @a_configline12.to_s + "\n" + @a_configline13.to_s + "\n" + @a_configline14.to_s + "\n"
6
+ newdata =@a_configurationfile
10
7
 
11
- begin # exception trapped block
8
+ begin # exception trapped block
12
9
  fileName = File.join( ConfigurationDir, newname )
13
10
  fd = File.open(fileName,"w")
14
11
  fd.print(newdata) # save the record info to the file
@@ -1,3 +1,3 @@
1
- ##VERSION:1.63
1
+ ##VERSION:1.66
2
2
  $rwdapplicationidentity = "rwdtinker main application"
3
3
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.65
1
+ ##VERSION:1.66
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"
@@ -12,9 +12,8 @@ LangDir = "lang"
12
12
  $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
13
13
  $port = 7705
14
14
  $rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
15
- $tinkerhelpaboutarray = ["Tinker"]
16
15
  Browser_Exe = 'mozilla '
17
- $tinkerdocumentsarray =["COPYING","HowTo_Tinker.txt","rwdapplications.html","RubyWebDialogs.html"]
18
- RwdTinkerVersion = "1.65"
16
+ $tinkerdocumentsarray +=["COPYING","HowTo_Tinker.txt","rwdapplications.html","RubyWebDialogs.html"]
17
+ RwdTinkerVersion = "1.66"
19
18
 
20
19
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.63
1
+ ##VERSION:1.66
2
2
  TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
3
3
  ##NAME:$zipslocation:0
4
4
  $zipslocation = "zips" # location of applets to add
@@ -1,4 +1,4 @@
1
1
  $rwdguivar=
2
2
  "<application>
3
- <window name=\"main\" title=\"Tinker - RubyWebDialogs\">
3
+ <window name=\"main\" title=\"RwdTinker - RubyWebDialogs\">
4
4
  <tabs>"
@@ -1,6 +1,6 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=\"selectiontab\" caption=#{Message[:selection_panel]}>
3
+ <tab name=\"selectiontab\" caption=\"Menu Panel\">
4
4
 
5
5
  <table>
6
6
  <row> <p align=\"right\">Open a new location </row>
@@ -16,21 +16,7 @@ $rwdguivar=
16
16
 
17
17
  </horizontal>
18
18
  <table>
19
- <row> <p align=\"right\" >FileName:</p> <text size=70 name=\"a_configurationfilename\"/> </row>
20
- <row> <p align=\"right\">1:</p> <text size=70 name=\"a_configline1\"/> </row>
21
- <row> <p align=\"right\">2:</p> <text size=70 name=\"a_configline2\"/> </row>
22
- <row> <p align=\"right\">3:</p> <text size=70 name=\"a_configline3\"/> </row>
23
- <row> <p align=\"right\">4:</p> <text size=70 name=\"a_configline4\"/> </row>
24
- <row> <p align=\"right\">5:</p> <text size=70 name=\"a_configline5\"/> </row>
25
- <row> <p align=\"right\">6:</p> <text size=70 name=\"a_configline6\"/> </row>
26
- <row> <p align=\"right\">7:</p> <text size=70 name=\"a_configline7\"/> </row>
27
- <row> <p align=\"right\">8:</p> <text size=70 name=\"a_configline8\"/> </row>
28
- <row> <p align=\"right\">9:</p> <text size=70 name=\"a_configline9\"/> </row>
29
- <row> <p align=\"right\">10:</p> <text size=70 name=\"a_configline10\"/> </row>
30
- <row> <p align=\"right\">11:</p> <text size=70 name=\"a_configline11\"/> </row>
31
- <row> <p align=\"right\">12:</p> <text size=70 name=\"a_configline12\"/> </row>
32
- <row> <p align=\"right\">13:</p> <text size=70 name=\"a_configline13\"/> </row>
33
- <row> <p align=\"right\">14:</p> <text size=70 name=\"a_configline14\"/> </row>
19
+ <textarea name=\"a_configurationfile\"/>
34
20
 
35
21
 
36
22
  </table>
@@ -227,6 +227,10 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ Version 1.66
231
+ Fixed directory layout
232
+ increased size of config edit screen
233
+
230
234
  Version 1.65
231
235
  Changed documents listing screen - now using hash
232
236
  Changed helpabout screen - now using hash
data/rwdconfig.dist CHANGED
@@ -1,4 +1,4 @@
1
- ##VERSION:1.65
1
+ ##VERSION:1.66
2
2
  # rwdtinker core configuration file
3
3
  ##NAME: ConfigLocation:0
4
4
  ConfigLocation=""
@@ -10,6 +10,8 @@ $testharnessarray = ["rwdtinker_all_tests"]
10
10
  TestNow=false # turning this on will run the unit tests
11
11
  ##NAME:$testharness:0
12
12
  $testharness=true
13
+ ##NAME:$tinkerhelpaboutarray:0
14
+ $tinkerhelpaboutarray = ["Tinker"]
13
15
  ##NAME:$tinkerdocumentsarray:0
14
16
  $tinkerdocumentsarray = ["Readme.txt"]
15
17
 
data/tests/makedist.rb CHANGED
@@ -6,6 +6,7 @@
6
6
  #***********************************************************************/
7
7
  $progdir =""
8
8
  require 'fileutils'
9
+ load 'rwdconfig.dist'
9
10
  DistroName = "rwdtinker"
10
11
  load "configuration/#{DistroName}.dist"
11
12
  DistroVersion=RwdTinkerVersion
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/ruby -w
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
+ #* at "steven@superant.com".
6
+ #***********************************************************************/
7
+ $progdir =""
8
+ require 'fileutils'
9
+
10
+ DistroName = "rwdwaddresses-1.04"
11
+
12
+ $progdir = File::expand_path( File.dirname(__FILE__))
13
+ results = " "
14
+
15
+ puts "creating #{DistroName} applet distribution files "
16
+ sourcedir = "../rwdaddresses/"
17
+
18
+
19
+ fileName = "installed/" + "#{DistroName}" + ".inf"
20
+
21
+ fd = File.open(fileName,"r")
22
+ @@displaytext = " "
23
+ temp = fd.readline.chomp
24
+ while ! fd.eof?
25
+
26
+ @@displaytext = fd.readline.chomp
27
+ lastslash = @@displaytext.rindex('/')
28
+ @@pathaddress = @@displaytext.slice(0..lastslash)
29
+ puts @@pathaddress
30
+ sourcefile = sourcedir + @@displaytext
31
+ puts @@displaytext
32
+ FileUtils.mkdir_p(@@pathaddress)
33
+ @@copycommand = "cp -v -r -f -a #{sourcefile} #{@@pathaddress}"
34
+
35
+ puts `#{@@copycommand}`
36
+ end
37
+ fd.close
38
+
39
+
40
+ ListingCommand = "ls -1 -s -h *"
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: rwdtinker
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.65"
7
- date: 2005-04-15
6
+ version: "1.66"
7
+ date: 2005-04-18
8
8
  summary: rwdtinker application is a framework to program for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -46,7 +46,6 @@ files:
46
46
  - code/01rwdcore/setuptinkerdocuments.rb
47
47
  - code/01rwdcore/setuphelpaboutoptions.rb
48
48
  - code/01rwdcore/runopentinkerdocument.rb
49
- - code/dd0viewphoto/dd0viewphoto.rb
50
49
  - code/superant.com.rwdtinkerbackwindow/controlclient.rb
51
50
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
52
51
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
@@ -71,6 +70,7 @@ files:
71
70
  - code/superant.com.rwdtinkerbackwindow/listgemzips.rb
72
71
  - code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb
73
72
  - code/zz0applicationend/zz0end.rb
73
+ - code/dd0viewphoto/dd0viewphoto.rb
74
74
  - configuration/tinkerwin2variables.dist
75
75
  - configuration/rwdtinker.dist
76
76
  - configuration/language.dist
@@ -148,9 +148,10 @@ files:
148
148
  - tests/rdep.rb
149
149
  - tests/checkdepends.sh
150
150
  - tests/makedist.rb
151
+ - tests/makerwdwaddresses-1.04.rb
151
152
  - init.rb
152
- - Readme.txt
153
153
  - rwdconfig.dist
154
+ - Readme.txt
154
155
  test_files: []
155
156
  rdoc_options:
156
157
  - "--main"