rwdtorrent 0.05 → 0.06

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/Readme.txt +375 -70
  2. data/bin/rwdtorrent +0 -0
  3. data/code/01rwdcore/01rwdcore.rb +4 -0
  4. data/code/01rwdcore/03helptexthash.rb +13 -21
  5. data/code/01rwdcore/jumplinkcommand.rb +1 -1
  6. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  7. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +239 -0
  8. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +3 -1
  9. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +17 -4
  10. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +1 -5
  11. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +19 -6
  12. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  13. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +4 -0
  14. data/code/superant.com.rwdtorrent/0uninstallapplet.rb +13 -0
  15. data/code/superant.com.rwdtorrent/loadconfigurationrecord.rb +2 -2
  16. data/code/superant.com.rwdtorrent/loadconfigurationvariables.rb +3 -2
  17. data/code/superant.com.rwdtorrent/returntomain.rb +2 -2
  18. data/code/superant.com.rwdtorrent/runeditconfiguration.rb +1 -1
  19. data/code/superant.com.rwdtorrent/runtorrentwindow.rb +2 -2
  20. data/code/superant.com.rwdtorrent/rwdtinkerversion.rb +10 -0
  21. data/code/superant.com.rwdtorrent/saveconfigurationrecord.rb +1 -1
  22. data/code/superant.com.rwdtorrent/test_cases.rb +1 -2
  23. data/code/superant.com.rwdtorrent/viewtorrentmetafile.rb +3 -1
  24. data/configuration/language.dist +2 -1
  25. data/configuration/rwdapplicationidentity.dist +1 -1
  26. data/configuration/rwdtinker.dist +5 -7
  27. data/configuration/{rwdtorrent.dist → rwdwtorrent-0.06.dist} +7 -2
  28. data/configuration/tinkerwin2variables.dist +3 -3
  29. data/ev/net.rb +2 -2
  30. data/ev/rwd.rb +31 -11
  31. data/extras/zip/zip.rb +3 -2
  32. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  33. data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +22 -0
  34. data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +1 -1
  35. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +2 -2
  36. data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +2 -2
  37. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +1 -1
  38. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +1 -1
  39. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +2 -2
  40. data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +1 -1
  41. data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +2 -2
  42. data/gui/tinkerbackwindows/superant.com.rwdtorrent/10appletbegin.rwd +4 -0
  43. data/gui/tinkerbackwindows/superant.com.rwdtorrent/81jumplinkcommands.rwd +17 -0
  44. data/gui/tinkerbackwindows/superant.com.rwdtorrent/9end.rwd +6 -0
  45. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +1 -1
  46. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
  47. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +5 -5
  48. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +9 -9
  49. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +2 -2
  50. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
  51. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +3 -3
  52. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +1 -1
  53. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +2 -2
  54. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +3 -3
  55. data/init.rb +5 -5
  56. data/installed/rwdwtorrent-0.06.inf +14 -0
  57. data/installed/temp.rb +1 -0
  58. data/lang/en/rwdcore/languagefile.rb +57 -15
  59. data/lang/es/rwdcore/languagefile-es.rb +61 -13
  60. data/lang/fr/rwdcore/languagefile.rb +64 -0
  61. data/lang/jp/rwdcore/languagefile.rb +69 -6
  62. data/lang/nl/rwdcore/languagefile.rb +56 -0
  63. data/rwd_files/HowTo_Tinker.txt +6 -0
  64. data/rwd_files/HowTo_Torrent.txt +3 -0
  65. data/rwdconfig.dist +7 -3
  66. data/rwdtorrent.rb +1 -0
  67. data/tests/cleancnf.sh +2 -1
  68. data/tests/makedist-rwdwtorrent.rb +56 -0
  69. data/tests/makedist.rb +12 -8
  70. data/torrentfiles/Google Chrome Comic Book [mininova].torrent +0 -0
  71. data/zips/temp.rb +1 -0
  72. metadata +69 -52
  73. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -96
  74. data/configuration/rwdtorrenthelpabout.rb +0 -14
  75. data/downloads/nodownloads.txt +0 -1
  76. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +0 -33
  77. data/installed/rwdviewlogo-0.4.inf +0 -4
  78. data/torrentfiles/knoppix-std-0.1.iso.torrent +0 -0
  79. data/zips/rwdahelloworld-0.5.zip +0 -0
  80. /data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdtorrent/10viewnote.rwd +0 -0
  81. /data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdtorrent/30viewtorrent.rwd +0 -0
  82. /data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdtorrent/40rwdtorrentrefresh.rwd +0 -0
  83. /data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdtorrent/67viewconfiguration.rwd +0 -0
@@ -0,0 +1,239 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "smalllinux@gmail.com".
22
+ #***********************************************************************/
23
+
24
+
25
+
26
+ # integrate the new configuration files
27
+ def initiateapplet(nametextlocal)
28
+
29
+ debuginitiate = 0
30
+
31
+ if $DEBUG
32
+ $stderr.puts "starting config load with: #{nametextlocal}"
33
+ end
34
+
35
+
36
+ Dir.chdir($progdir ) #changes the current working directory
37
+
38
+ @confignew = "configuration/" + "#{nametextlocal}.cnf"
39
+ @configdist = "configuration/" + "#{nametextlocal}.dist"
40
+ Rconftool::install(@configdist,@confignew)
41
+
42
+ begin
43
+
44
+ configfileload = File.open(@configdist){|f| f.read}
45
+
46
+ eval configfileload #load config file
47
+
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
+ rescue
55
+
56
+ if $DEBUG
57
+ $stderr.puts "error in initiateapplets - config load"
58
+ end
59
+ debuginitiate += 1
60
+ end
61
+ tempguistorage = $rwd_gui_tinker # if gui load fails restore old
62
+ begin # error trap
63
+
64
+ # build the actual GUI from the gui parts
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
94
+
95
+ $rwd_gui_tinker = $tempdoc
96
+
97
+
98
+ rescue
99
+ $rwd_gui_tinker = tempguistorage # restore old gui
100
+ if $DEBUG
101
+ $stderr.puts "error in initiateapplets - gui building"
102
+ end
103
+
104
+ debuginitiate += 1
105
+ end
106
+
107
+ begin # error trap
108
+ # now load in the code files
109
+
110
+ $tempdoc = ""
111
+ tempcodeinstallline = ""
112
+
113
+ @fileName = "installed/" + nametextlocal + ".inf"
114
+
115
+ tmpfilearray = File.readlines(@fileName)
116
+
117
+ tmpfilearray.each do |line|
118
+
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
130
+
131
+ rescue
132
+ if $DEBUG
133
+ $stderr.puts "error in initiateapplets - code building"
134
+ end
135
+ debuginitiate += 1
136
+
137
+
138
+ end
139
+
140
+ if debuginitiate > 0
141
+ return " initiateapplet .."
142
+ else
143
+ return " initiateapplet success"
144
+ end
145
+
146
+ end
147
+
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
+
236
+
237
+ =end
238
+
239
+
@@ -12,10 +12,12 @@ def installapplet
12
12
 
13
13
  zf = Zip::ZipFile.new(fileName)
14
14
  zf.sort.each {
15
+
15
16
  |entry|
16
17
  zf.extract(entry.to_s, entry.to_s)
17
18
  }
18
- @installapplettext = Message[:applet_installed]
19
+ @returninitateresults = initiateapplet(nametext)
20
+ @installapplettext = Message[:applet_installed] + " " + @returninitateresults
19
21
 
20
22
  rescue
21
23
  @installapplettext = "unzip error - applet may not be installed correctly"
@@ -12,10 +12,23 @@ def installgemapplet
12
12
  |entry|
13
13
  zf.extract(entry.to_s, entry.to_s)
14
14
  }
15
- @installapplettext = Message[:applet_installed]
16
-
17
- rescue
18
- @installapplettext = "unzip error - applet may not be installed correctly"
15
+
16
+ rescue
17
+
18
+ if $DEBUG
19
+ $stderr.puts "unzip error - applet may not be installed correctly"
20
+ end
21
+ @installapplettext = " .. "
22
+
19
23
  end # exception rescue
24
+
25
+ @nametextbase = File.basename(nametext)
26
+ @returninitateresults = initiateapplet(@nametextbase)
27
+ @installapplettext = Message[:applet_installed] + " " + @returninitateresults
28
+
29
+
30
+ RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
31
+
32
+
20
33
  end
21
34
 
@@ -18,11 +18,7 @@ def runhelpwindowtinkerwin2
18
18
  end
19
19
  if @rwd_tab == "editconfigurationfile"
20
20
  $help_topic = "applet_tinkerbackeditconfiguration"
21
-
22
- end
23
- if @rwd_tab == "rwdremotecontrol"
24
- $help_topic = "remote_control"
25
-
21
+
26
22
  end
27
23
  if @rwd_tab == "superantcomremotezipsinstall"
28
24
  $help_topic = "remotegemapplet_install"
@@ -3,8 +3,17 @@ def removeapplet
3
3
  require 'fileutils'
4
4
  nametext = "%s" % [@a_removeapplet]
5
5
 
6
+ fileName = "installed/" + nametext + ".inf"
7
+ @appletremoveresult = removeappletvariables(nametext)
8
+
9
+ setuphelpaboutoptions # update the help about list
10
+ setuptinkerdocuments # update the document pull down list
11
+ runhelpwindow # update the help menu
12
+ showjumplinkoptions # update the application link menu
13
+ runrwdtinkerbackwindow # back to applet window
14
+
6
15
  begin # exception trapped block
7
- fileName = "installed/" + nametext + ".inf"
16
+
8
17
  count = 0
9
18
  fd = File.open(fileName,"r")
10
19
 
@@ -19,14 +28,18 @@ def removeapplet
19
28
  count = 1
20
29
  }
21
30
  fd.close
31
+
32
+
22
33
 
23
34
  FileUtils.rm_rf( fileName)
24
-
25
-
26
- @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
27
-
35
+
36
+
37
+ @removeapplettext = "applet files removed!" + " " + @appletremoveresult
38
+
39
+ runbackwindowappletremove
40
+
28
41
  rescue
29
- @removeapplettext = "\n" + "error"
42
+ @removeapplettext = " removeapplet" + " .."
30
43
 
31
44
  end # exception rescue
32
45
 
@@ -0,0 +1,52 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "steven@superant.com".
22
+ #***********************************************************************/
23
+
24
+ def removeappletvariables(tempremovename)
25
+
26
+ begin # exception trapped block
27
+ if $DEBUG
28
+ $stderr.puts "in removeappletvariables"
29
+ end
30
+ # removefileinf = File.open(tempremove){|f| f.read}
31
+
32
+ temp = tempremovename.gsub("-","_")
33
+ removemethod = temp.gsub(".","_")
34
+
35
+
36
+ send "#{removemethod}"
37
+
38
+ tmpremoveapplet = " successfull applet variable removal "
39
+
40
+ rescue
41
+
42
+ tmpremoveapplet = " removeappletvariables .."
43
+
44
+ end # exception rescue
45
+
46
+ return tmpremoveapplet
47
+
48
+ end
49
+
50
+
51
+
52
+
@@ -9,3 +9,7 @@ def runrwdtinkerbackwindow
9
9
  @rwd_tab = "rwdzipslister"
10
10
  end
11
11
 
12
+ def runbackwindowappletremove
13
+ @rwd_window = "tinkerbackwindow"
14
+ @rwd_tab = "filelister"
15
+ end
@@ -0,0 +1,13 @@
1
+
2
+ def rwdwtorrent_0_06()
3
+
4
+ $tinkerdocumentsarray.delete_if {|x| x == "HowTo_Torrent.txt"}
5
+ $tinkerhelpaboutarray.delete_if {|x| x == "RwdTorrent"}
6
+ $testharnessarray.delete_if {|x| x == "rwdtorrent_all_tests"}
7
+ Helptext.delete_if {|key, value| key == :torrent_help}
8
+ Helptext.delete_if {|key, value| key == :torrentsize_help }
9
+ Helptext.delete_if {|key, value| key == :rwdtorrent_generalhelp }
10
+ Helptext.delete_if {|key, value| key == :rwdtorrent_configuration }
11
+ $rwdjumplink.delete_if {|x| x == "RwdTorrent"}
12
+
13
+ end
@@ -3,13 +3,13 @@
3
3
 
4
4
  require 'fileutils'
5
5
 
6
- @a_torrentconfigurationfilename = "rwdtorrent.cnf"
6
+ @a_torrentconfigurationfilename = "rwdwtorrent-" + RwdTorrentVersion + ".cnf"
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  Dir.chdir($progdir)
12
- fileName = File.join(ConfigurationDir, "rwdtorrent.cnf")
12
+ fileName = File.join(ConfigurationDir, @a_torrentconfigurationfilename)
13
13
 
14
14
 
15
15
  fd = File.open(fileName,"r")
@@ -1,7 +1,8 @@
1
1
  # this method loads the on screen variables into the running class
2
2
  def loadrwdtorrentconfigurationvariables
3
-
4
- configfiletoload = File.join(ConfigurationDir,"rwdtorrent.cnf")
3
+
4
+ tmpfilename = "rwdwtorrent-" + RwdTorrentVersion + ".cnf"
5
+ configfiletoload = File.join(ConfigurationDir, tmpfilename)
5
6
  begin
6
7
  load configfiletoload
7
8
  @extratorrentconfigdatadisplay = ""
@@ -3,8 +3,8 @@
3
3
  # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
4
 
5
5
  # call the window
6
- def returntomaintorrent
7
- @rwd_window = "main"
6
+ def runmaintorrentwindow
7
+ @rwd_window = "rwdtorrentwindow"
8
8
  @rwd_tab = "superantcomtorrenttab"
9
9
  end
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # call the window
6
6
  def runedittorrentconfiguration
7
- @rwd_window = "main"
7
+ @rwd_window = "rwdtorrentwindow"
8
8
  @rwd_tab = "viewrwdtorrentconfiguration"
9
9
  end
10
10
 
@@ -100,7 +100,7 @@ def rwdtorrentwindowtwo
100
100
 
101
101
 
102
102
  @display_use_rate = true
103
- @display_start_timer
103
+ # @display_start_timer
104
104
  num_pieces = 0
105
105
  start = Time.now
106
106
  every = 10
@@ -181,7 +181,7 @@ end
181
181
  $bt.on_event(self, :trying_peer) { |s, p| display_untried_peers -= 1 unless display_untried_peers == 0 }
182
182
 
183
183
  display_total = $bt.total_bytes
184
- @display_start_timer
184
+ #@display_start_timer
185
185
 
186
186
  if true
187
187
 
@@ -0,0 +1,10 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # return the version constant defined in the config file
6
+ def rwdgutenberghelpaboutsetup
7
+ return ["RwdTorrent","(c) 2004-2008 Steven Gibson ","Version #{RwdTorrentVersion}"]
8
+ end
9
+
10
+
@@ -2,7 +2,7 @@
2
2
  def saverwdtorrentconfiguration
3
3
  require 'fileutils'
4
4
 
5
- newname = "rwdtorrent.cnf" # grab the filename to create
5
+ newname = "rwdwtorrent-" + RwdTorrentVersion + ".cnf" # grab the filename to create
6
6
  newdata =@a_torrentconfiglines.to_s
7
7
 
8
8
  begin # exception trapped block
@@ -3,8 +3,7 @@
3
3
 
4
4
  require 'test/unit/testcase'
5
5
  require 'test/unit/assertions'
6
- include Test::Unit::Assertions
7
- include Test::Unit
6
+
8
7
  def rwdtorrent_all_tests
9
8
  print "in rwdtorrent all tests\n"
10
9
  $testrwdtorrenttestcase = TestSuite.new
@@ -1,5 +1,7 @@
1
1
  # show torrent metafile details on screen
2
- require 'extras/rubytorrent'
2
+
3
+ require 'extras/rubytorrent'
4
+
3
5
  def viewtorrentfile
4
6
 
5
7
  if ! @a_viewtorrent.to_s.empty?
@@ -1,7 +1,8 @@
1
- ##VERSION:1.62
1
+ ##VERSION:1.69
2
2
  #language selection file
3
3
  ##NAME:$lang:0
4
4
  #$lang = "jp"
5
5
  $lang= "en"
6
6
  #$lang= "nl"
7
7
  #$lang= "es"
8
+ #$lang= "fr"
@@ -1,3 +1,3 @@
1
- ##VERSION:1.63
1
+ ##VERSION:1.69
2
2
  $rwdapplicationidentity = "rwdtinker main application"
3
3
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.66
1
+ ##VERSION:1.74
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"
@@ -9,12 +9,10 @@ LangDir = "lang"
9
9
  $help_topic = "general_help"
10
10
  $helptopicsarray = [ "general_help","network_help"]
11
11
  $prevouswindow ="main"
12
- $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
12
+ $rwdcontrolports =["13713","13714","13715","13716","13717","13718"] # remote control code not actived 2007
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.66"
19
-
20
-
16
+ $tinkerdocumentsarray +=["HowTo_Tinker.txt","rwdapplications.html","RubyWebDialogs.html"]
17
+ RwdTinkerVersion = "1.74"
18
+
@@ -1,4 +1,4 @@
1
- ##VERSION:0.05
1
+ ##VERSION:0.06
2
2
  ##NAME:$rwdtorrentfilesdir:0
3
3
  $rwdtorrentfilesdir="torrentfiles"
4
4
  ##NAME:$rwdtorrentdownloads:0
@@ -13,6 +13,11 @@ TorrentRootDir=$progdir + "/"
13
13
  $testharnessarray += ["rwdtorrent_all_tests"]
14
14
  $tinkerdocumentsarray += ["HowTo_Torrent.txt"]
15
15
  $tinkerhelpaboutarray += ["RwdTorrent"]
16
- RwdTorrentVersion = "0.05"
16
+ ##NAME: $rwdjumplink:0
17
+ $rwdjumplink += ["RwdTorrent"]
18
+ ##NAME: JumpLink:0
19
+ JumpLink.update(:RwdTorrent=>"runmaintorrentwindow")
20
+ ##NAME:RwdGutenbergVersion:0
21
+ RwdTorrentVersion = "0.06"
17
22
 
18
23
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.63
1
+ ##VERSION:1.69
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
@@ -7,11 +7,11 @@ $zipslocation = "zips" # location of applets to add
7
7
  $xpcommand = " " # Linux machines
8
8
  # $xpcommand = "cmd /C " # XP machines with cmd shell
9
9
  ##NAME:$gemdirectory_withgemfiles:0
10
- $gemdirectory_withgemfiles = "/usr/lib/ruby/gems/1.8/gems"
10
+ $gemdirectory_withgemfiles = "/var/lib/gems/1.8/gems"
11
11
  # $gemdirectory_withgemfiles = "c:\\ruby\\lib\\ruby\\gems\\1.8\\gems" # XP machine
12
12
  ##NAME:$geminstalled_directory:0
13
13
  # $geminstalled_directory = "/ruby/lib/ruby/gems/1.8/gems" # XP machine
14
- $geminstalled_directory = "/usr/lib/ruby/gems/1.8/gems" # Debian Linux
14
+ $geminstalled_directory = "/var/lib/gems/1.8/gems" # Debian Linux
15
15
 
16
16
  RwdTinkerWin2Version = "0.8"
17
17
 
data/ev/net.rb CHANGED
@@ -784,8 +784,8 @@ class HTTPServer
784
784
  end
785
785
 
786
786
  if (not remote) or (remote and (auth.nil? or auth.empty? or authenticate(auth, realm, req, resp)))
787
- $stderr.puts "#{count2} #{Time.new.strftime("%Y-%m-%d %H:%M:%S")} #{ip} #{req.user} #{req.request.to_s.strip}"
788
-
787
+ # $stderr.puts "#{count2} #{Time.new.strftime("%Y-%m-%d %H:%M:%S")} #{ip} #{req.user} #{req.request.to_s.strip}"
788
+ 1 == 1
789
789
  begin
790
790
  yield(req, resp)
791
791
  rescue Exception => e