saber 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +12 -8
- data/lib/saber/autofetcher/client.rb +8 -1
- data/lib/saber/task/generate.rb +1 -0
- data/lib/saber/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -99,12 +99,6 @@ Configure ~/.saberrc
|
|
99
99
|
host = nil
|
100
100
|
port = nil
|
101
101
|
|
102
|
-
And ~/.netrc, for ftp authenticate.
|
103
|
-
|
104
|
-
machine seedbox
|
105
|
-
login x
|
106
|
-
password y
|
107
|
-
|
108
102
|
Start saber-server at server side.
|
109
103
|
|
110
104
|
# ~/.rtorrent.rc
|
@@ -119,9 +113,16 @@ Start saber-client at client side.
|
|
119
113
|
|
120
114
|
$ saber client -V
|
121
115
|
|
116
|
+
Test if it works
|
117
|
+
|
118
|
+
(server) $ saber drb_add <rtorrent_file_hash_id> saber
|
119
|
+
(client) > aria2 should begin download file from ftp://seedbox/bt/<file>
|
120
|
+
|
122
121
|
Automatically fetch: when a file is finished download in rutorrent with label 'saber', then it'll add to aria2.
|
123
122
|
|
124
123
|
Manually fetch: right click 'Saber Fetch' in rutorrent web ui, then it'll add to aria2.
|
124
|
+
|
125
|
+
Or from command line, send a download file to client: `saber drb_add <hash_id> saber`
|
125
126
|
|
126
127
|
For ArchLinux, you can install `saber-server-daemon`, `user-saber-client-daemon`, `user-aria2-daemon` packages.
|
127
128
|
|
@@ -178,7 +179,7 @@ Configure ~/.saberrc
|
|
178
179
|
|
179
180
|
Send files to seedbox
|
180
181
|
|
181
|
-
$ saber
|
182
|
+
$ saber send1 hello.epub bt
|
182
183
|
> rsync -Phr hello.epub user@host:bt
|
183
184
|
|
184
185
|
#### Clean
|
@@ -199,7 +200,10 @@ Install
|
|
199
200
|
|
200
201
|
_Main article_: [Install Saber](https://github.com/GutenYe/saber/wiki/Install)
|
201
202
|
|
202
|
-
$
|
203
|
+
$ gem install saber
|
204
|
+
$ install it's dependencies
|
205
|
+
|
206
|
+
Archlinux: pacaur -S saber
|
203
207
|
|
204
208
|
Resources
|
205
209
|
---------
|
@@ -10,6 +10,7 @@ module Saber
|
|
10
10
|
client = Client.new
|
11
11
|
|
12
12
|
client.start
|
13
|
+
p Thread.list
|
13
14
|
|
14
15
|
Thread.list.each{|v| v.join}
|
15
16
|
end
|
@@ -27,7 +28,12 @@ module Saber
|
|
27
28
|
client.auth Rc.client.xmpp.password
|
28
29
|
|
29
30
|
at_exit do
|
30
|
-
|
31
|
+
pd Thread.current
|
32
|
+
begin
|
33
|
+
client.send Jabber::Presence.new.set_type(:unavaliable)
|
34
|
+
rescue IOError # closed stream
|
35
|
+
Saber.ui.error "closed stream (IOError)"
|
36
|
+
end
|
31
37
|
end
|
32
38
|
|
33
39
|
client.add_message_callback { |msg|
|
@@ -36,6 +42,7 @@ module Saber
|
|
36
42
|
Saber.ui.debug "RECV #{files}"
|
37
43
|
fetcher.add *files
|
38
44
|
end
|
45
|
+
pd "add done"
|
39
46
|
}
|
40
47
|
|
41
48
|
client.send Jabber::Iq.new_rosterget
|
data/lib/saber/task/generate.rb
CHANGED
data/lib/saber/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pd
|