nyaa_anime 0.3.4.1 → 0.3.5
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 +4 -4
- data/lib/nyaa_anime.rb +5 -5
- data/lib/nyaa_anime/version.rb +1 -1
- data/nyaa_anime.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f518b15ce69ec5f31737ea1397faf9bb06e03474
|
|
4
|
+
data.tar.gz: b27f33dfc42a5f04ab623af6360a3a31629d58da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b6d5d9abda47b9e4c24445f0d7d86a9b8cf755b8b13a8bac4af54143f498bc330270dfdbab77eda4e14b42f54d9fea55c986207b482c8bb6f2c14e603922312
|
|
7
|
+
data.tar.gz: cba7241454d0c8783aec120290cdef9e1efcbca67e4d0a464182b36a87c86523c16602abaf33f6cef046eee8ffda4baaeb2f60081549090e54f26e8b67dd955a
|
data/lib/nyaa_anime.rb
CHANGED
|
@@ -36,8 +36,8 @@ class NyaaAnime
|
|
|
36
36
|
offset += THREAD_COUNT
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
|
-
titles = titles.reduce { |a, b| b ? a.concat(b) : a }
|
|
40
|
-
dl_urls = dl_urls.reduce { |a, b| b ? a.concat(b) : a }
|
|
39
|
+
titles = titles.reduce(nil) { |a, b| b ? a.concat(b) : a }
|
|
40
|
+
dl_urls = dl_urls.reduce(nil) { |a, b| b ? a.concat(b) : a }
|
|
41
41
|
return if titles.empty?
|
|
42
42
|
titles.each_with_index { |t, i| @downloads[t] = dl_urls[i] }
|
|
43
43
|
@titles = titles.sort!
|
|
@@ -56,8 +56,8 @@ class NyaaAnime
|
|
|
56
56
|
new_titles[i] = n.new_titles
|
|
57
57
|
new_downloads[i] = n.downloads.select { |ti, dl| n.new_titles.include? ti }
|
|
58
58
|
end
|
|
59
|
-
new_titles = new_titles.reduce { |a, b| b ? a.merge(b) : a }
|
|
60
|
-
new_downloads = new_downloads.reduce { |a, b| b ? a.merge(b) : a }
|
|
59
|
+
new_titles = new_titles.reduce(nil) { |a, b| b ? a.merge(b) : a }
|
|
60
|
+
new_downloads = new_downloads.reduce(nil) { |a, b| b ? a.merge(b) : a }
|
|
61
61
|
@new_titles = new_titles
|
|
62
62
|
@titles = new_titles.to_a.sort!
|
|
63
63
|
@downloads = new_downloads
|
|
@@ -138,7 +138,7 @@ class NyaaAnime
|
|
|
138
138
|
|
|
139
139
|
def stripped_episodeless_downloaded_titles
|
|
140
140
|
dls = Set.new
|
|
141
|
-
downloaded_torrents.each { |t| dls.add NyaaAnime.stripped_title(t)[/\A.+-/] }
|
|
141
|
+
downloaded_torrents.each { |t| dls.add NyaaAnime.stripped_title(t)[/\A.+-/] || NyaaAnime.stripped_title(t) }
|
|
142
142
|
dls
|
|
143
143
|
end
|
|
144
144
|
|
data/lib/nyaa_anime/version.rb
CHANGED
data/nyaa_anime.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Joshua Tsubaki Wu"]
|
|
10
10
|
spec.email = ["wujoshuawu@gmail.com"]
|
|
11
11
|
spec.summary = %q{the painless NyaaTorrents anime command-line tool}
|
|
12
|
-
spec.description = "`nyaa` (short for `nyaa_anime`) is the painless
|
|
12
|
+
spec.description = "`nyaa` (short for `nyaa_anime`) is the painless NyaaTorrents anime " <<
|
|
13
13
|
"command-line tool. Search for and download anime torrents and open " <<
|
|
14
14
|
"them automatically. Results are color-coded - green for new episodes of " <<
|
|
15
15
|
"previously downloaded torrents, cyan (blue) for previously downloaded " <<
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nyaa_anime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Tsubaki Wu
|
|
@@ -132,11 +132,11 @@ dependencies:
|
|
|
132
132
|
- - "~>"
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
|
-
description: "`nyaa` (short for `nyaa_anime`) is the painless
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
description: "`nyaa` (short for `nyaa_anime`) is the painless NyaaTorrents anime command-line
|
|
136
|
+
tool. Search for and download anime torrents and open them automatically. Results
|
|
137
|
+
are color-coded - green for new episodes of previously downloaded torrents, cyan
|
|
138
|
+
(blue) for previously downloaded torrents. Automatically find and downloaded new
|
|
139
|
+
episodes of previously downloaded anime with `$ nyaa-get`!"
|
|
140
140
|
email:
|
|
141
141
|
- wujoshuawu@gmail.com
|
|
142
142
|
executables:
|