georgboe-ucli 0.2.0 → 0.2.1
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.
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/bin/ucli +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -29,10 +29,10 @@ The output will look like this:
|
|
29
29
|
| Torrentname | Uploaded | Ratio |
|
30
30
|
+-----------------------------------------------------------+----------+-------+
|
31
31
|
| ubuntu-8.10-desktop-i386.iso | 1.24 GB| 1.82|
|
32
|
-
|
|
32
|
+
| (34%) ubuntu-8.10-server-i386.iso | 0.00 KB| 0.00|
|
33
33
|
+-----------------------------------------------------------+----------+-------+
|
34
34
|
|
35
|
-
The
|
35
|
+
The percent in front the last torrent indicates how much is downloaded so far.
|
36
36
|
|
37
37
|
#### Uploading torrents
|
38
38
|
|
data/Rakefile
CHANGED
data/bin/ucli
CHANGED
@@ -54,7 +54,7 @@ if opts[:list]
|
|
54
54
|
Utilities.print_separator(TORRENTNAME_WIDTH)
|
55
55
|
puts "| #{'Torrentname'.ljust(TORRENTNAME_WIDTH)}|#{'Uploaded'.center(10)}|#{'Ratio'.center(7)}|"
|
56
56
|
Utilities.print_separator(TORRENTNAME_WIDTH)
|
57
|
-
Torrent.all.sort { |x,y| x.name <=> y.name }.each { |x| x.name = "
|
57
|
+
Torrent.all.sort { |x,y| x.name <=> y.name }.each { |x| x.name = "(%d%%) #{x.name}" % x.done unless x.done == 100.0 }.each do |torrent|
|
58
58
|
puts "| #{Utilities.cut_string(torrent.name, TORRENTNAME_WIDTH).ljust(TORRENTNAME_WIDTH)}|#{torrent.uploaded.to_s.rjust(10)}|#{torrent.ratio.to_s.rjust(7)}|"
|
59
59
|
end
|
60
60
|
Utilities.print_separator(TORRENTNAME_WIDTH)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: georgboe-ucli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Georg Alexander B\xC3\xB8e"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-08 00:00:00 -07:00
|
13
13
|
default_executable: ucli
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|