rwdtorrent 0.01 → 0.02

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,5 +1,5 @@
1
1
  def runtorrentwindow
2
- $torrenttodownload = $progdir + "/" + $rwdtorrentfilesdir + "/" + @a_viewtorrent + ".torrent"
2
+ $torrenttodownload = TorrentRootDir + $rwdtorrentfilesdir + "/" + @a_viewtorrent + ".torrent"
3
3
  rwdtorrentwindowtwo
4
4
  end
5
5
 
@@ -3,10 +3,15 @@
3
3
  # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
4
 
5
5
  # call the window
6
- def stoptorrentwindow
6
+ def stoptorrentwindow
7
7
  $temptorrentnumber = 0
8
+ begin
9
+ $bt.shutdown_all
8
10
  Process.kill("SIGHUP", $torrentpid)
9
11
  @rwd_window = "main"
10
12
  @rwd_tab = "superantcomtorrenttab"
11
- end
13
+ rescue Exception
14
+ $stderr.print "BitTorrent error"
15
+ end
16
+ end
12
17
 
@@ -2,13 +2,11 @@
2
2
 
3
3
  def viewtorrentfile
4
4
 
5
- commandtext = "ruby extras/aversa.rb --decode torrentfiles/" + @a_viewtorrent.to_s + ".torrent "
5
+ commandtext = "ruby extras/aversa.rb --decode " + $rwdtorrentfilesdir + "/" + @a_viewtorrent.to_s + ".torrent "
6
6
 
7
7
  begin # exception trapped block
8
8
 
9
-
10
-
11
-
9
+
12
10
  @a_torrentdata =`#{commandtext}`
13
11
 
14
12
  rescue SystemCallError, StandardError
@@ -1,4 +1,4 @@
1
- ##VERSION:0.01
1
+ ##VERSION:0.02
2
2
  ##NAME:$rwdtorrentfilesdir:0
3
3
  $rwdtorrentfilesdir="torrentfiles"
4
4
  ##NAME:$rwdtorrentdownloads:0
@@ -7,5 +7,8 @@ $rwdtorrentdownloads="downloads"
7
7
  $extrasdir="extras"
8
8
  ##NAME:TorrentListCmd:0
9
9
  TorrentListCmd="ls -s -1 -h -R "
10
+ ##NAME:TorrentRootDir:0
11
+ TorrentRootDir=$progdir + "/"
12
+
13
+ RwdTorrentVersion = "0.02"
10
14
 
11
- RwdTorrentVersion = "0.01"
@@ -132,6 +132,10 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
132
132
  Thanks, Steven Gibson
133
133
 
134
134
  == Changelog
135
+ Version 0.02
136
+ Correct GUI directory location
137
+ modify link to directory location of torrentfiles
138
+
135
139
  Version 0.01
136
140
  initial release
137
141
  view torrent metafile details
data/tests/makedist.rb CHANGED
@@ -1,32 +1,42 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #***********************************************************************
3
- #* Rwd/torrent -- A Ruby program for the RudyWebDialog.
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
4
  #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
5
  #* at "steven@superant.com".
6
6
  #***********************************************************************/
7
-
7
+ $progdir =""
8
8
  require 'fileutils'
9
- load 'configuration/rwdtorrent.dist'
9
+ DistroName = "rwdtorrent"
10
+ load "configuration/#{DistroName}.dist"
11
+ DistroVersion=RwdTorrentVersion
12
+
13
+ DistroTitle="#{DistroName}-#{DistroVersion}"
14
+
15
+
10
16
 
11
17
  $progdir = File::expand_path( File.dirname(__FILE__))
12
18
  results = " "
13
- puts "creating rwdtorrent distribution files version #{RwdTorrentVersion}"
19
+
20
+ puts "creating #{DistroName} distribution files version #{DistroVersion}"
14
21
  puts "cleaning conf files"
15
22
  `tests/cleancnf.sh`
16
23
  puts "moving up one directory"
17
24
  Dir.chdir("..")
18
25
 
19
- zipcreatecmd = "zip -r rwdtorrent-#{RwdTorrentVersion}.zip rwdtorrent"
26
+
27
+
28
+ FileUtils.rm_rf("#{DistroTitle}.zip")
29
+ zipcreatecmd = "zip -r #{DistroTitle}.zip #{DistroName}"
20
30
  puts "#{zipcreatecmd}"
21
31
  `#{zipcreatecmd}`
22
- tarcreatecmd = "tar --gzip -cf rwdtorrent-#{RwdTorrentVersion}.tar.gz rwdtorrent"
32
+ tarcreatecmd = "tar --gzip -cf #{DistroTitle}.tar.gz #{DistroName}"
23
33
  puts "#{tarcreatecmd}"
24
34
  `#{tarcreatecmd}`
25
- tarcreatecmd2 = "tar --bzip2 -cf rwdtorrent-#{RwdTorrentVersion}.tar.bz2 rwdtorrent"
35
+ tarcreatecmd2 = "tar --bzip2 -cf #{DistroTitle}.tar.bz2 #{DistroName}"
26
36
  puts "#{tarcreatecmd2}"
27
37
  `#{tarcreatecmd2}`
28
38
 
29
- gemspecfilename = "rwdtorrent-#{RwdTorrentVersion}.gemspec"
39
+ gemspecfilename = "#{DistroTitle}.gemspec"
30
40
  tobject = Time.now
31
41
  year = tobject.year.to_s
32
42
  month = tobject.mon.to_s
@@ -34,11 +44,15 @@ daydate = tobject.day.to_s
34
44
 
35
45
  fd = File.open(gemspecfilename,"w")
36
46
  fd.print("Gem::Specification.new do |s|\n")
37
- fd.print(" s.name = %q{rwdtorrent}\n")
38
- fd.print(" s.version = \"#{RwdTorrentVersion}\"\n")
47
+ fd.print(" s.name = %q{#{DistroName}}\n")
48
+ fd.print(" s.version = \"#{DistroVersion}\"\n")
39
49
  fd.print(" s.date = %q{#{year}-#{month}-#{daydate}}")
40
- load 'rwdtorrent/tests/gemspec'
50
+ load "#{DistroName}/tests/gemspec"
41
51
  fd.print($gemspecvar)
42
52
  fd.close
43
53
 
44
- print Dir["rwdtorrent*.{gz,bz2,deb,gem}"]
54
+ ListingCommand = "ls -1 -s -h #{DistroTitle}*"
55
+
56
+ puts `#{ListingCommand}`
57
+
58
+ print "Build finished\n"
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: rwdtorrent
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.01"
7
- date: 2005-03-26
6
+ version: "0.02"
7
+ date: 2005-03-27
8
8
  summary: rwdtorrent is a GUI front end for BitTorrent with rwdtinker and RubyWebDialogs features.
9
9
  require_paths:
10
10
  - "."
@@ -115,10 +115,11 @@ files:
115
115
  - lang/jp/rwdcore/languagefile.rb
116
116
  - lang/nl/rwdcore/languagefile.rb
117
117
  - gui/00coreguibegin/applicationguitop.rwd
118
- - gui/frontwindow0/10viewnote.rwd
119
- - gui/frontwindow0/30viewtorrent.rwd
120
- - gui/frontwindow0/67viewconfiguration.rwd
121
- - gui/frontwindow0/40rwdtorrentrefresh.rwd
118
+ - gui/frontwindow0/superant.com.rwdtorrent
119
+ - gui/frontwindow0/superant.com.rwdtorrent/10viewnote.rwd
120
+ - gui/frontwindow0/superant.com.rwdtorrent/30viewtorrent.rwd
121
+ - gui/frontwindow0/superant.com.rwdtorrent/40rwdtorrentrefresh.rwd
122
+ - gui/frontwindow0/superant.com.rwdtorrent/67viewconfiguration.rwd
122
123
  - gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
123
124
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
124
125
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd