nyaa_anime 0.3.4.1 → 0.3.5

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: a52bfc035bda7f1220ab8c86c359ecfc053e3474
4
- data.tar.gz: b1ca6df26c1cba2f858e463b9fa85b512f43d784
3
+ metadata.gz: f518b15ce69ec5f31737ea1397faf9bb06e03474
4
+ data.tar.gz: b27f33dfc42a5f04ab623af6360a3a31629d58da
5
5
  SHA512:
6
- metadata.gz: df29efebb086c4c59cdd09fd87a7813044fd9e91e4810890863e3210361adc587270cee277a88e5ba856d51f8b4f638e9866c93f2db12b6d1531615781d94488
7
- data.tar.gz: 97a9f3de4e0079968746e64fde8d081daff3f881b05c93db653d52297cb7ef86ac167366031c88bef00aa3efea219ee549625e0595af0186b72c8235287771fc
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
 
@@ -1,3 +1,3 @@
1
1
  class NyaaAnime
2
- VERSION = "0.3.4.1"
2
+ VERSION = "0.3.5"
3
3
  end
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 Nyaa Torrents anime " <<
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.1
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 Nyaa Torrents anime
136
- command-line tool. Search for and download anime torrents and open them automatically.
137
- Results are color-coded - green for new episodes of previously downloaded torrents,
138
- cyan (blue) for previously downloaded torrents. Automatically find and downloaded
139
- new episodes of previously downloaded anime with `$ nyaa-get`!"
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: