rwdtorrent 0.06 → 0.08

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/Readme.txt +20 -7
  2. data/code/01rwdcore/02helptexthashbegin.rb +10 -0
  3. data/code/01rwdcore/03helptexthash.rb +18 -20
  4. data/code/01rwdcore/openhelpwindow.rb +1 -1
  5. data/code/01rwdcore/runopentinkerdocument.rb +1 -1
  6. data/code/01rwdcore/rwdtinkerversion.rb +1 -1
  7. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +89 -158
  8. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +10 -8
  9. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
  10. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
  11. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -1
  12. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +1 -1
  13. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
  14. data/code/superant.com.rwdtorrent/0uninstallapplet.rb +7 -1
  15. data/code/superant.com.rwdtorrent/helptexthashload.rb +21 -0
  16. data/code/superant.com.rwdtorrent/loadconfigurationrecord.rb +2 -2
  17. data/code/superant.com.rwdtorrent/loadconfigurationvariables.rb +2 -3
  18. data/code/superant.com.rwdtorrent/runtorrentwindow.rb +5 -3
  19. data/code/superant.com.rwdtorrent/saveconfigurationrecord.rb +1 -1
  20. data/code/superant.com.rwdtorrent/stoptorrentdownload.rb +4 -1
  21. data/code/superant.com.rwdtorrent/viewtorrentmetafile.rb +5 -4
  22. data/configuration/rwdtinker.dist +5 -8
  23. data/configuration/rwdwtorrent.dist +25 -0
  24. data/configuration/tinkerwin2variables.dist +13 -7
  25. data/downloads/nodownloads.txt +1 -0
  26. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  27. data/gui/frontwindow0/{viewlogo/cc0openphoto.rwd → cc0openphoto.rwd} +0 -0
  28. data/gui/{frontwindowselectionbegin/selectiontabbegin → frontwindowselections}/00selectiontabbegin.rwd +0 -0
  29. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  30. data/gui/{frontwindowselectionzend/viewselectionzend → frontwindowselections}/wwselectionend.rwd +0 -0
  31. data/gui/{frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd → frontwindowtdocuments/00documentbegin.rwd} +0 -0
  32. data/gui/frontwindowtdocuments/{superant.com.documents/tinkerdocuments.rwd → tinkerdocuments.rwd} +0 -0
  33. data/gui/{helpaboutbegin/superant.com.helpaboutbegin → frontwindowtdocuments}/zzdocumentend.rwd +0 -0
  34. data/gui/helpaboutbegin/{superant.com.helpaboutbegin/zzzrwdlasttab.rwd → zzzrwdlasttab.rwd} +0 -0
  35. data/gui/helpaboutbegin/{superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd → zzzzhelpscreenstart.rwd} +0 -0
  36. data/gui/{helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd → helpaboutbegin/zzzzzzhelpabouttab.rwd} +0 -0
  37. data/gui/helpaboutzend/{superant.com.helpaboutend/helpscreenend.rwd → helpscreenend.rwd} +0 -0
  38. data/gui/helpaboutzend/{superant.com.helpaboutend/zhelpscreenstart2.rwd → zhelpscreenstart2.rwd} +0 -0
  39. data/gui/helpaboutzend/{superant.com.helpaboutend/zzzzhelpabout2.rwd → zzzzhelpabout2.rwd} +0 -0
  40. data/gui/helpaboutzend/{superant.com.helpaboutend/zzzzhelpscreen2end.rwd → zzzzhelpscreen2end.rwd} +0 -0
  41. data/gui/tinkerbackwindows/superant.com.slideshow/10appletbegin.rwd +4 -0
  42. data/gui/tinkerbackwindows/superant.com.slideshow/11viewnamedata.rwd +19 -0
  43. data/gui/tinkerbackwindows/superant.com.slideshow/13listnamerecordfiles.rwd +21 -0
  44. data/gui/tinkerbackwindows/superant.com.slideshow/16editrecord.rwd +39 -0
  45. data/gui/tinkerbackwindows/superant.com.slideshow/17viewvcardrecord.rwd +32 -0
  46. data/gui/tinkerbackwindows/superant.com.slideshow/18contactutilities.rwd +34 -0
  47. data/gui/{frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd → tinkerbackwindows/superant.com.slideshow/81jumplinkcommands.rwd} +2 -0
  48. data/gui/tinkerbackwindows/superant.com.slideshow/9end.rwd +6 -0
  49. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
  50. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +1 -1
  51. data/gui/zzcoreguiend/{tinkerapplicationguiend/yy9rwdend.rwd → yy9rwdend.rwd} +0 -0
  52. data/init.rb +61 -165
  53. data/installed/{rwdwtorrent-0.06.inf → rwdwtorrent.inf} +4 -4
  54. data/lang/en/rwdcore/en.po +166 -0
  55. data/lang/es/rwdcore/es.po +172 -0
  56. data/lang/fr/rwdcore/fr.po +166 -0
  57. data/lang/hi/rwdcore/hi.po +170 -0
  58. data/lang/ja/rwdcore/ja.po +168 -0
  59. data/lang/nl/rwdcore/nl.po +166 -0
  60. data/{extras → lib}/rconftool.rb +13 -6
  61. data/{extras → lib}/rubytorrent.rb +6 -6
  62. data/{extras → lib}/rubytorrent/bencoding.rb +0 -0
  63. data/{extras → lib}/rubytorrent/controller.rb +0 -0
  64. data/{extras → lib}/rubytorrent/message.rb +0 -0
  65. data/{extras → lib}/rubytorrent/metainfo.rb +1 -1
  66. data/{extras → lib}/rubytorrent/package.rb +0 -0
  67. data/{extras → lib}/rubytorrent/peer.rb +1 -1
  68. data/{extras → lib}/rubytorrent/server.rb +3 -3
  69. data/{extras → lib}/rubytorrent/tracker.rb +1 -1
  70. data/{extras → lib}/rubytorrent/typedstruct.rb +1 -1
  71. data/{extras → lib}/rubytorrent/util.rb +0 -0
  72. data/{ev → lib/rwd}/browser.rb +2 -2
  73. data/{ev → lib/rwd}/ftools.rb +0 -0
  74. data/{ev → lib/rwd}/mime.rb +0 -0
  75. data/{ev → lib/rwd}/net.rb +18 -7
  76. data/{ev → lib/rwd}/ruby.rb +1 -1
  77. data/{ev → lib/rwd}/rwd.rb +108 -625
  78. data/{ev → lib/rwd}/sgml.rb +1 -1
  79. data/{ev → lib/rwd}/thread.rb +1 -1
  80. data/{ev → lib/rwd}/tree.rb +2 -2
  81. data/{ev → lib/rwd}/xml.rb +1 -1
  82. data/lib/rwdthemes/default.rwd +317 -0
  83. data/lib/rwdthemes/pda.rwd +72 -0
  84. data/lib/rwdthemes/windowslike.rwd +171 -0
  85. data/lib/rwdtinker/rwdcodedir.rb +56 -0
  86. data/lib/rwdtinker/rwdguidir.rb +57 -0
  87. data/lib/rwdtinker/rwdlangdir.rb +60 -0
  88. data/lib/rwdtinker/rwdtinkertools.rb +25 -0
  89. data/{extras → lib}/zip/ioextras.rb +0 -0
  90. data/{extras → lib}/zip/stdrubyext.rb +0 -0
  91. data/{extras → lib}/zip/tempfile_bugfixed.rb +0 -0
  92. data/{extras → lib}/zip/zip.rb +2 -2
  93. data/{extras → lib}/zip/zipfilesystem.rb +0 -0
  94. data/{extras → lib}/zip/ziprequire.rb +0 -0
  95. data/rwd_files/HowTo_Tinker.txt +73 -7
  96. data/rwd_files/HowTo_Torrent.txt +4 -0
  97. data/rwd_files/Tinkerhelptexthash.txt +81 -0
  98. data/rwd_files/log/rwdtinker.log +11883 -0
  99. data/{code/superant.com.rwdtorrent/helptesthashrwdtorrent.rb → rwd_files/rwdtorrenthelpfiles.txt} +10 -8
  100. data/rwdconfig.dist +14 -13
  101. data/{lib/temp.rb → rwdtinker.rb} +0 -0
  102. data/rwdziprwdwtorrent-0.08.gemspec +16 -0
  103. data/tests/makedist-rwdwtorrent.rb +6 -4
  104. data/tests/makedist.rb +2 -2
  105. data/torrentfiles/{Google Chrome Comic Book [mininova].torrent → GoogleChromeComicBook.torrent} +0 -0
  106. data/torrentfiles/dsl-4.4.6-syslinux.torrent +0 -0
  107. data/zips/rwdwcalc-0.63.zip +0 -0
  108. data/zips/rwdwdialogmap-0.02.zip +0 -0
  109. data/zips/rwdwfoldeditor-0.06.zip +0 -0
  110. data/zips/rwdwmovies-0.98.zip +0 -0
  111. data/zips/rwdwruby-1.08.zip +0 -0
  112. data/zips/rwdwschedule-1.05.zip +0 -0
  113. data/zips/rwdwtorrent-0.08.zip +0 -0
  114. data/zips/tinkerbellw-0.03.zip +0 -0
  115. data/zips/wrubyslippers-1.08.zip +0 -0
  116. metadata +90 -67
  117. data/code/01rwdcore/04helptextend.rb +0 -6
  118. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
  119. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +0 -27
  120. data/configuration/language.dist +0 -8
  121. data/configuration/rwdapplicationidentity.dist +0 -3
  122. data/configuration/rwdwtorrent-0.06.dist +0 -23
  123. data/lang/en/rwdcore/languagefile.rb +0 -58
  124. data/lang/es/rwdcore/languagefile-es.rb +0 -62
  125. data/lang/fr/rwdcore/languagefile.rb +0 -64
  126. data/lang/jp/rwdcore/languagefile.rb +0 -72
  127. data/lang/nl/rwdcore/languagefile.rb +0 -75
  128. data/rwdtorrent.rb +0 -1
data/Readme.txt CHANGED
@@ -19,13 +19,6 @@ ruby init.rb
19
19
  Then point your web browser to:
20
20
  http://localhost:7705/
21
21
 
22
- Change language at:
23
-
24
- configuration/language.dist
25
-
26
- Change to Windows XP directory structure at:
27
- configuration/tinkerwin2variables.dist
28
-
29
22
  == Viewing installed Applets:
30
23
 
31
24
  Go to "List Scripts" tab
@@ -234,6 +227,26 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
234
227
  Thanks, Steven Gibson
235
228
 
236
229
  == Changelog
230
+ Version 1.77
231
+ Fixed zips location to be relative or absolute
232
+ Made themes loadable
233
+
234
+ Version 1.76
235
+ Move rwd code files into lib directory - bug - 21886
236
+ change tab name list applets - bug - 21864
237
+ change extra folder to be lib folder - bug 21887
238
+ remove duplicate intall applet code - bug 21885
239
+ On Menu tab/Selection Tab - add help button - bug 21884
240
+ clean up directory structure in gui directory - bug 21882
241
+
242
+ Version 1.75
243
+ change rwd.rb to use UTF-8 for web pages
244
+ add language load for applets
245
+
246
+ Version 1.74
247
+ remove remote control from help
248
+ more dependable gui loading for applets
249
+
237
250
  Version 1.73
238
251
  more debug info in initiateapplet
239
252
  remove gutenberg lang translations
@@ -2,3 +2,13 @@
2
2
 
3
3
  Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
4
4
  helpmessage = {
5
+ :general_help => "You can work with Applets: go to 'Selection tab', <br>
6
+ On that back screen you will find:<br>
7
+ List Applets: you can see and delete installed applets<br>
8
+ List Zips: you can see lists of applets that you can install<br>
9
+ Edit Configuration: You can view the rwdtinker configuration and change it<br>
10
+ Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
11
+ "
12
+
13
+ }
14
+ helpmessage.each { |kk, vv| Helptext[kk] = vv }
@@ -1,23 +1,21 @@
1
- # Help files for RwdTinker core
1
+ # this code loads the help text
2
2
 
3
-
4
- :general_help => "You can work with Applets: go to 'Selection tab', <br>
5
- On that back screen you will find:<br>
6
- List Applets: you can see and delete installed applets<br>
7
- List Zips: you can see lists of applets that you can install<br>
8
- Edit Configuration: You can view the rwdtinker configuration and change it<br>
9
- Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
10
- ",
11
- :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
12
- init.rb file to something like:\n<br>
13
- RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
14
- Then you should be able to login at: http://yourhostname:8080",
3
+
4
+ tmphelpfilename = "Tinkerhelptexthash.txt"
5
+ tmphelpdir = "rwd_files"
6
+
7
+ begin # exception trapped block
8
+
9
+
10
+ fileName = File.join(tmphelpdir ,tmphelpfilename )
11
+
12
+
13
+ fd = File.open(fileName,"r")
14
+ tmphelptext = fd.read
15
+ fd.close
16
+ eval tmphelptext
17
+ rescue SystemCallError, StandardError
18
+ $rwdtinkerlog.error "Tinkerbell help file load: system call error: "
19
+ end # exception rescue
15
20
 
16
-
17
- :documents_rwdtinker => "<b>Documents:
18
- <p>
19
21
 
20
- when you click on a document name, the document should pop up in a <br>
21
- browser window, or in another browser tab.</b>
22
- "
23
-
@@ -1,6 +1,6 @@
1
1
  # this code is to call the help window
2
2
  def runhelpwindow
3
- $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration","remote_control"]
3
+ $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration"]
4
4
 
5
5
  if @rwd_window == "main"
6
6
  if @rwd_tab == "documentsrwdtinkerone"
@@ -1,7 +1,7 @@
1
1
  # open document for rwdtinker application
2
2
  def runopentinkerdocument
3
3
 
4
- tinkerdocumenturl = "http://localhost:7705/" + @a_tinkerdocumentinput
4
+ tinkerdocumenturl = "http://localhost:#{$port}/" + @a_tinkerdocumentinput
5
5
  Thread.new( tinkerdocumenturl){ |t| `#{Browser_Exe} #{tinkerdocumenturl}` }
6
6
  end
7
7
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # return the version constant defined in the config file
6
6
  def tinkerhelpaboutsetup
7
- return ["RwdTinker","(c) 2004 Steven Gibson ","Version #{RwdTinkerVersion}"]
7
+ return ["RwdTinker","(c) 2004-2008 Steven Gibson ","Version #{RwdTinkerVersion}"]
8
8
  end
9
9
 
10
10
  def runrwdtinkerversion
@@ -28,10 +28,7 @@ def initiateapplet(nametextlocal)
28
28
 
29
29
  debuginitiate = 0
30
30
 
31
- if $DEBUG
32
- $stderr.puts "starting config load with: #{nametextlocal}"
33
- end
34
-
31
+ $rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
35
32
 
36
33
  Dir.chdir($progdir ) #changes the current working directory
37
34
 
@@ -45,98 +42,105 @@ begin
45
42
 
46
43
  eval configfileload #load config file
47
44
 
48
- setuphelpaboutoptions # update the help about list
49
- setuptinkerdocuments # update the document pull down list
50
- runhelpwindow # update the help menu
51
- showjumplinkoptions # update the application link menu
52
- runrwdtinkerbackwindow # back to applet window
53
-
54
45
  rescue
55
-
56
- if $DEBUG
57
- $stderr.puts "error in initiateapplets - config load"
58
- end
46
+
47
+ $rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
48
+
59
49
  debuginitiate += 1
60
- end
61
- tempguistorage = $rwd_gui_tinker # if gui load fails restore old
62
- begin # error trap
50
+ end
51
+ $tempdoc = " "
63
52
 
64
- # build the actual GUI from the gui parts
53
+ Dir.chdir($progdir) # change back to top program directory
54
+
55
+ # build the English Language hash file from the parts
56
+ require 'lib/rwdtinker/rwdlangdir'
57
+
58
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
59
+
60
+ #writes the contents of doc into the languagehashvariable
61
+
62
+ languagehashvariable = tempdoc
63
+
64
+ # END of en Lang building
65
65
  $tempdoc = " "
66
- #get a list of the files and subdirectories on the starting directory only
67
- a = Array.new(Dir[GuiDir].entries.sort)
68
- #loop through the list, ignore the files and add all new directories found
69
- a.each do |x|
70
- #if a directory...
71
- if(test(?d,x))
72
- #use this new dir find to add to the original list of directories
73
- @@root = x + "/**"
74
- #adds the new ones to the array
75
- b = Dir[@@root].entries.sort
76
- b.each do |x|
77
- if(test(?d,x))
78
- a.push(x) #appends to the end of the array...
79
- end
80
- end
81
- end
82
- end
83
- a.each do |x|
84
- #if it is a file...
85
- if(!test(?d,x))
86
- a.delete(x)
87
-
88
- else #it is a directory...
89
- loadguifile(x + "/**")
90
-
91
-
92
- end
93
- end
66
+ Dir.chdir($progdir) # change back to top program directory
67
+
68
+ # build the local Language hash file from the parts
69
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
70
+
71
+ #writes the contents of doc into the variable
72
+
73
+ languagehashvariable = languagehashvariable + tempdoc
94
74
 
95
- $rwd_gui_tinker = $tempdoc
75
+ Dir.chdir($progdir) # change back to top program directory
76
+
77
+ temp = eval( languagehashvariable )
96
78
 
97
79
 
80
+ tempguistorage = $rwd_gui_tinker # if gui load fails restore old
81
+ begin # error trap
82
+
83
+ # build the actual GUI from the gui parts
84
+ tempdoc = " "
85
+
86
+ require 'lib/rwdtinker/rwdguidir'
87
+
88
+ tempdoc = RwdtinkerTools.findguifiles(GuiDir)
89
+
90
+ $rwd_gui_tinker = tempdoc
91
+
98
92
  rescue
99
93
  $rwd_gui_tinker = tempguistorage # restore old gui
100
- if $DEBUG
101
- $stderr.puts "error in initiateapplets - gui building"
102
- end
94
+
95
+ $rwdtinkerlog.error "error in initiateapplets - gui building"
103
96
 
104
97
  debuginitiate += 1
105
98
  end
106
99
 
107
100
  begin # error trap
108
- # now load in the code files
101
+ # now load in the code files
109
102
 
110
- $tempdoc = ""
111
- tempcodeinstallline = ""
103
+ $tempdoc = ""
104
+ tempcodeinstallline = ""
112
105
 
113
- @fileName = "installed/" + nametextlocal + ".inf"
106
+ @fileName = "installed/" + nametextlocal + ".inf"
107
+
108
+ $rwdtinkerlog.debug "initateapplets: loading file: #{@fileName}"
114
109
 
115
- tmpfilearray = File.readlines(@fileName)
110
+ tmpfilearray = File.readlines(@fileName)
116
111
 
117
- tmpfilearray.each do |line|
112
+ tmpfilearray.each do |line|
118
113
 
119
- tempcodeinstallline = line.chomp
120
- if tempcodeinstallline.include?('code/')
121
- findfiles(tempcodeinstallline + "/**")
122
- tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
123
- end
124
- end
125
-
126
- # resultend = tempcodeinstallline .index("\n",resultstart)
127
- tempresult = @fileName
128
-
129
- return " applet loading successful " + tempresult
114
+ tempcodeinstallline = line.chomp
115
+ if tempcodeinstallline.include?('code/')
116
+ findfiles(tempcodeinstallline + "/**")
117
+ tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
118
+ end
119
+ end
120
+
130
121
 
131
122
  rescue
132
- if $DEBUG
133
- $stderr.puts "error in initiateapplets - code building"
134
- end
123
+
124
+ $rwdtinkerlog.error "error in initiateapplets - code building"
125
+
135
126
  debuginitiate += 1
136
127
 
137
128
 
138
129
  end
139
130
 
131
+ setuphelpaboutoptions # update the help about list
132
+ setuptinkerdocuments # update the document pull down list
133
+ runhelpwindow # update the help menu
134
+ showjumplinkoptions # update the application link menu
135
+ runrwdtinkerbackwindow # back to applet window
136
+
137
+ # resultend = tempcodeinstallline .index("\n",resultstart)
138
+ tempresult = @fileName
139
+
140
+ return " applet loading successful " + tempresult
141
+
142
+
143
+
140
144
  if debuginitiate > 0
141
145
  return " initiateapplet .."
142
146
  else
@@ -145,95 +149,22 @@ return " applet loading successful " + tempresult
145
149
 
146
150
  end
147
151
 
148
- =begin
149
-
150
-
151
- Dir.chdir($progdir) # change back to top program directory
152
-
153
- # build the English Language hash file from the parts
154
- languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
155
- langmessage = {' + "\n"
156
- startlangdir = File.join(LangDir,"en")
157
- #get a list of the files and subdirectories on the starting directory only
158
- alanghash = Array.new(Dir[startlangdir].entries.sort)
159
- #loop through the list, ignore the files and add all new directories found
160
- alanghash.each do |x|
161
- #if a directory...
162
- if(test(?d,x))
163
- # add to the original list of directories
164
- @@tmproot = x + "/**"
165
- #adds the new ones to the array
166
- blanghash = Dir[@@tmproot].entries.sort
167
- blanghash.each do |x|
168
- if(test(?d,x))
169
- alanghash.push(x) #appends to the end of the array...
170
- end
171
- end
172
- end
173
- end
174
- alanghash.each do |x|
175
- #if it is a file...
176
- if(!test(?d,x))
177
- alanghash.delete(x)
178
- else #it is a directory...
179
- findfiles(x + "/**")
180
- end
181
- end
182
-
183
-
184
- #writes the contents of doc into the languagehashvariable
185
- languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
186
-
187
- # END of en Lang building
188
- $tempdoc = " "
189
- Dir.chdir($progdir) # change back to top program directory
190
-
191
- # build the local Language hash file from the parts
192
- startlangdir = File.join(LangDir,$lang)
193
- #get a list of the files and subdirectories on the starting directory only
194
- alanghash = Array.new(Dir[startlangdir].entries.sort)
195
- #loop through the list, ignore the files and add all new directories found
196
- alanghash.each do |x|
197
- #if a directory...
198
- if(test(?d,x))
199
- # add to the original list of directories
200
- @@tmproot = x + "/**"
201
- #adds the new ones to the array
202
- blanghash = Dir[@@tmproot].entries.sort
203
- blanghash.each do |x|
204
- if(test(?d,x))
205
- alanghash.push(x) #appends to the end of the array...
206
- end
207
- end
208
- end
209
- end
210
- alanghash.each do |x|
211
- #if it is a file...
212
- if(!test(?d,x))
213
- alanghash.delete(x)
214
- else #it is a directory...
215
- findfiles(x + "/**")
216
- end
217
- end
218
-
219
-
220
- #writes the contents of doc into the variable
221
- languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
222
-
223
-
224
- $tempdoc = " "
225
-
226
- Dir.chdir($progdir) # change back to top program directory
227
-
228
- temp = eval( languagehashvariable )
229
-
230
- $tempdoc = " "
231
-
232
-
233
-
234
-
235
152
 
153
+ def findfiles(d)
154
+ a = Array.new(Dir[d].entries.sort)
155
+ #loop through and get the files names
156
+ a.each do |x|
157
+ #adjust the filters to the files you want to see...
158
+ if(!test(?d,x))
159
+ # only rwd files
160
+ if x =~ /rb|rwd|txt/
161
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
162
+ $tempdoc+=fileA.read #reads the file into the doc string
163
+ fileA.close
164
+ end
165
+ end
166
+ end
167
+ end
236
168
 
237
- =end
238
169
 
239
170
 
@@ -1,7 +1,7 @@
1
1
  # install rwdtinker applet from a long directory location
2
2
  def installgemapplet
3
3
  require 'fileutils'
4
- require 'extras/zip/zip'
4
+ require 'lib/zip/zip'
5
5
  nametext = "%s" % [@a_installapplet]
6
6
 
7
7
  begin # exception trapped block
@@ -13,16 +13,18 @@ def installgemapplet
13
13
  zf.extract(entry.to_s, entry.to_s)
14
14
  }
15
15
 
16
- rescue
16
+ rescue
17
17
 
18
- if $DEBUG
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
- end # exception rescue
20
+ @installapplettext = " .. "
24
21
 
25
- @nametextbase = File.basename(nametext)
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