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.
Files changed (4) hide show
  1. data/README.md +2 -2
  2. data/Rakefile +1 -1
  3. data/bin/ucli +1 -1
  4. 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
- | *ubuntu-8.10-server-i386.iso* | 0.00 KB| 0.00|
32
+ | (34%) ubuntu-8.10-server-i386.iso | 0.00 KB| 0.00|
33
33
  +-----------------------------------------------------------+----------+-------+
34
34
 
35
- The stars surrounding the last torrent means that the downloading has not completed yet.
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
@@ -5,7 +5,7 @@ require 'rake'
5
5
  require 'rake/gempackagetask'
6
6
 
7
7
  GEM = "ucli"
8
- GEM_VERSION = "0.2.0"
8
+ GEM_VERSION = "0.2.1"
9
9
  SUMMARY = "Commandline interface to uTorrent WebUI 0.361"
10
10
  AUTHOR = "Georg Alexander Bøe"
11
11
  EMAIL = "georg.boe@gmail.com"
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 = "*#{x.name}*" unless x.done == 100.0 }.each do |torrent|
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.0
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-04-14 00:00:00 -07:00
12
+ date: 2009-05-08 00:00:00 -07:00
13
13
  default_executable: ucli
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency