addic7ed_downloader 0.1.2 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc85a21ccc66665f2bf28228748d05d60a4339f
|
4
|
+
data.tar.gz: 6be27f833387ee0233d30ebe0e42bfd8605c5d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7021f4a337497712c2869a395d48cde95c3db6e780f672d98db798dce9ab84ae5590f15dbb3a24e4cb2bde8e3301a00934c509373600db66bb004c85c5b344eb
|
7
|
+
data.tar.gz: d64063f420440ad2e1b614587e347d8459830d36c9673584ad7bf8498213acd94fb2c95bd6c2610a7e0e8c507ae34e76eb4b9f478f49a4b9599b9384dbc6cc9e
|
@@ -47,10 +47,9 @@ module Addic7edDownloader
|
|
47
47
|
return if results.empty?
|
48
48
|
|
49
49
|
# We can refine the search with tags
|
50
|
-
# Only version match
|
51
50
|
unless @tags.empty?
|
52
51
|
results.each do |subtitle|
|
53
|
-
return subtitle if @tags.
|
52
|
+
return subtitle if @tags.any? { |tag| subtitle.works_with?(tag) }
|
54
53
|
end
|
55
54
|
end
|
56
55
|
|
@@ -102,7 +101,9 @@ module Addic7edDownloader
|
|
102
101
|
list << Subtitle.new(subtitle) if subtitle.at('.NewsTitle')
|
103
102
|
end
|
104
103
|
|
105
|
-
subtitles
|
104
|
+
# We return the completed subtitles, ordered by downloads desc
|
105
|
+
# Using bang methods for memory performance
|
106
|
+
subtitles.select(&:completed?).sort!.reverse!
|
106
107
|
end
|
107
108
|
end
|
108
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addic7ed_downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Marchante
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|