miyuki 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fdcac097c9d3917dec96b1bb17e8a9b54506ce4
4
- data.tar.gz: 71339d1b70ee0d22806b32033d92e0c6bd46ed50
3
+ metadata.gz: 49ce37e33393def966916d5ca1881a2ec36acaf4
4
+ data.tar.gz: 7fdb4d5e4ce03722a1d5c9a7344746d026276f7c
5
5
  SHA512:
6
- metadata.gz: 4626c25ba964c18ac3022450ef96f140f28444a9bef94ce052e3d975f74b2be96a7f1512de62f2b25842b899abbe6aaadb04f657c23abb94e953e887fc434ec5
7
- data.tar.gz: 5e3ea75842fb0627ef7ff6c018f111a9963321ae8f9289e9aa9454d807877c7416b2b7b423f39c353bec2e499b7213e260edc2161e831cc80effccba336a94ac
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 work.' unless File.exists?(ARGV[0])
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!
@@ -32,7 +32,7 @@ module Miyuki
32
32
  @torrents = []
33
33
 
34
34
  fetch_torrents
35
- @torrents.reverse.each { |torrent| Yamazaki.download_torrent(torrent.title, torrent.link) }
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.each do |torrent|
44
- @torrents << torrent
45
- end
43
+ @torrents.concat(torrents)
46
44
  end
47
45
  end
48
46
 
@@ -13,5 +13,5 @@
13
13
  ##
14
14
 
15
15
  module Miyuki
16
- VERSION = '0.1.1'
16
+ VERSION = '0.1.2'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miyuki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roxas Shadow