miyuki 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/miyuki +1 -1
- data/lib/miyuki/tracker.rb +2 -4
- data/lib/miyuki/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49ce37e33393def966916d5ca1881a2ec36acaf4
|
4
|
+
data.tar.gz: 7fdb4d5e4ce03722a1d5c9a7344746d026276f7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9beb6a9deafab601d1bada8f2e34096c3dae96c6a56b4f64a69383e9c781f75f67543a1eefe0ede3eba825a847505756aa55e430852b0ba3ea8ece0b5d45fe1
|
7
|
+
data.tar.gz: 4665c5c9ef29a6babb513bb758c3526ed7397c0f4daae66eaa433571a4d0df0f7e8a4ffd78c851208df394f27a5a8d881b938364693ae2ceb756e6760c55f4ad
|
data/bin/miyuki
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
require 'miyuki'
|
17
17
|
|
18
18
|
abort 'Please provide a configuration file.' if ARGV.empty?
|
19
|
-
abort 'Given configuration file does not
|
19
|
+
abort 'Given configuration file does not exist.' unless File.exists?(ARGV[0])
|
20
20
|
|
21
21
|
Miyuki.config = File.expand_path(ARGV[0])
|
22
22
|
Miyuki.track!
|
data/lib/miyuki/tracker.rb
CHANGED
@@ -32,7 +32,7 @@ module Miyuki
|
|
32
32
|
@torrents = []
|
33
33
|
|
34
34
|
fetch_torrents
|
35
|
-
@torrents.
|
35
|
+
@torrents.each { |torrent| Yamazaki.download_torrent(torrent.title, torrent.link) }
|
36
36
|
end
|
37
37
|
|
38
38
|
def fetch_torrents
|
@@ -40,9 +40,7 @@ module Miyuki
|
|
40
40
|
pattern = pattern_of(series)
|
41
41
|
torrents = search(pattern)
|
42
42
|
|
43
|
-
torrents.
|
44
|
-
@torrents << torrent
|
45
|
-
end
|
43
|
+
@torrents.concat(torrents)
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
data/lib/miyuki/version.rb
CHANGED