miyuki 0.5.1 → 0.5.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 +0 -1
- data/features/step_definitions/tracker_step.rb +7 -0
- data/features/support/miyuki.conf +5 -0
- data/features/tracker.feature +4 -1
- data/lib/miyuki/tracker.rb +3 -1
- data/lib/miyuki/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a83b6eb0ce086c1fd625510a00d60726850c72ea
|
4
|
+
data.tar.gz: 4dda76256973bc0ef9c77b6a7f9adc28eb8d555d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec96d6c074f873f8b6f7ce52c4e210cc61fff546424a9073f46df063daa05c1be89115f2b3271beffa36b34a2252b70dfa256448342fa1f24e42c120f3cdd7fb
|
7
|
+
data.tar.gz: d44bcdfa45c08023098f40b5beac2400d59bbd4ee0c3f9fa082eb4695fe42c3ef79aee0efe7eeafaedbeaf2c62b00467254a0c780cd0a5df59b665d739cfcb0a
|
data/bin/miyuki
CHANGED
@@ -59,6 +59,13 @@ And(/there are (\d+) torrent files? that do not contain "(.+)"/) do |count, stri
|
|
59
59
|
expect(torrent_files.count).to be count.to_i
|
60
60
|
end
|
61
61
|
|
62
|
+
And(/there are some torrent files by "(.+)"/) do |fansub|
|
63
|
+
watch_dir = Miyuki.config['watchDir']
|
64
|
+
torrent_files = Dir["#{watch_dir}/*.torrent"].select { |f| f.include?("[#{fansub}]") }
|
65
|
+
|
66
|
+
expect(torrent_files.any?).to be_truthy
|
67
|
+
end
|
68
|
+
|
62
69
|
And(/I consider the currently downloaded torrent files/) do
|
63
70
|
watch_dir = Miyuki.config['watchDir']
|
64
71
|
@previous_torrent_files_ctime = Dir["#{watch_dir}/*.torrent"].map { |f| File.ctime(f) }
|
data/features/tracker.feature
CHANGED
@@ -12,7 +12,10 @@ Feature: Download new episodes
|
|
12
12
|
And I have not the episodes 1, 4, 8 of "Mekakucity"
|
13
13
|
And I have the episode 9, 10 of "Mekakucity"
|
14
14
|
And there are 0 torrent files containing "Nisekoi 720p"
|
15
|
-
And there are
|
15
|
+
And there are some torrent files by "Commie"
|
16
|
+
And I have the episodes 11, 12 of "Danna"
|
17
|
+
And I have not he episode 10 of "Danna"
|
18
|
+
And there are some torrent files by "Task-Force"
|
16
19
|
|
17
20
|
Scenario: Episodes already downloaded are ignored
|
18
21
|
When I set the configuration file path to "features/support/miyuki.conf"
|
data/lib/miyuki/tracker.rb
CHANGED
@@ -60,10 +60,12 @@ module Miyuki
|
|
60
60
|
@series.each do |series|
|
61
61
|
query = URI.encode_www_form_component(Parser.parse(series)) # TODO: move encode to yamazaki?
|
62
62
|
torrents = search(query)
|
63
|
+
torrents.each { |torrent| torrent.title.gsub!(/_/, ' ') }
|
64
|
+
|
63
65
|
|
64
66
|
episodes = series['episodes']
|
65
67
|
if episodes && episodes['from']
|
66
|
-
Parser.filter_episodes!(torrents, episodes['from'],
|
68
|
+
Parser.filter_episodes!(torrents, episodes['from'], episodes['skipIfNotSure'] == true)
|
67
69
|
end
|
68
70
|
|
69
71
|
@torrents.concat(torrents.reverse)
|
data/lib/miyuki/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miyuki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roxas Shadow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yamazaki
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.2.2
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Miyuki allows you to not miss any episode of anime you're watching
|