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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1b5cdd2ca3a7334fb2e26d3d487ebc3a3412da4
4
- data.tar.gz: ba67c450e2fd42b800e81563e83579f4fa8e46a7
3
+ metadata.gz: a83b6eb0ce086c1fd625510a00d60726850c72ea
4
+ data.tar.gz: 4dda76256973bc0ef9c77b6a7f9adc28eb8d555d
5
5
  SHA512:
6
- metadata.gz: db06c6faa82622ca30115340ea6c501910d4ef6e294b0c76290471a2dd98d4919732cd27a917d5c900627266085de1af6158face2a6de8e9c92bb972c461525c
7
- data.tar.gz: 8319890577375d7694bbecbfff86ce1e5fc0a0d52c9392e625b688bdad77a340c63d40c3ff36a67b91daa6005d8289e02a4694e2ca5e3da1d2d93569643f0e25
6
+ metadata.gz: ec96d6c074f873f8b6f7ce52c4e210cc61fff546424a9073f46df063daa05c1be89115f2b3271beffa36b34a2252b70dfa256448342fa1f24e42c120f3cdd7fb
7
+ data.tar.gz: d44bcdfa45c08023098f40b5beac2400d59bbd4ee0c3f9fa082eb4695fe42c3ef79aee0efe7eeafaedbeaf2c62b00467254a0c780cd0a5df59b665d739cfcb0a
data/bin/miyuki CHANGED
@@ -12,7 +12,6 @@
12
12
  #
13
13
  # 0. You just DO WHAT THE FUCK YOU WANT TO.
14
14
  ##
15
-
16
15
  require 'miyuki'
17
16
  require 'forever'
18
17
 
@@ -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) }
@@ -14,3 +14,8 @@ series:
14
14
  fansub: Commie
15
15
  res: 1080p
16
16
  pattern: "[$fansub] $name - Volume [BD $res AAC]"
17
+
18
+ - name: Danna ga Nani
19
+ fansub: Task-Force
20
+ episodes:
21
+ from: 11
@@ -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 0 torrent files that do not contain "[Commie]"
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"
@@ -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'], !!episodes['skipIfNotSure'])
68
+ Parser.filter_episodes!(torrents, episodes['from'], episodes['skipIfNotSure'] == true)
67
69
  end
68
70
 
69
71
  @torrents.concat(torrents.reverse)
@@ -13,5 +13,5 @@
13
13
  ##
14
14
 
15
15
  module Miyuki
16
- VERSION = '0.5.1'
16
+ VERSION = '0.5.2'
17
17
  end
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.1
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-25 00:00:00.000000000 Z
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.4.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