download_tv 2.0.5 → 2.0.6
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/download_tv/downloader.rb +2 -2
- data/lib/download_tv/version.rb +1 -1
- data/test/downloader_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0609cdca28acf2d4f0800aaf0b0534532838940
|
4
|
+
data.tar.gz: e1dcf35af5fd713796bf79d3281d44db5b14a45b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 280c785035e34c5b05c05a00cca09a2ac84dcc20c70bdc8515ad1bfa98414cfbcd91406f1ac9a587ba013b0c97b4e301ae2375c9dcc71b3e5306125c14402150
|
7
|
+
data.tar.gz: 1a82fccad76d549fd7afa47f51cb60a479aae2431b94cdf786f11adb880445814b142f812ceff21f975974dd6938114feb7e0c4f12a735d52c4c8e28d7e12d61
|
@@ -111,8 +111,8 @@ module DownloadTV
|
|
111
111
|
@config[:ignored].include?(i.split(" ")[0..-2].join(" "))
|
112
112
|
end
|
113
113
|
|
114
|
-
# Removes apostrophes and parens
|
115
|
-
s.map { |t| t.gsub(/ \(.+\)|[']/, "") }
|
114
|
+
# Removes apostrophes, colons and parens
|
115
|
+
s.map { |t| t.gsub(/ \(.+\)|[':]/, "") }
|
116
116
|
end
|
117
117
|
|
118
118
|
|
data/lib/download_tv/version.rb
CHANGED
data/test/downloader_test.rb
CHANGED
@@ -40,9 +40,9 @@ describe DownloadTV::Downloader do
|
|
40
40
|
config = {:ignored => ["Ignored"]}
|
41
41
|
dl = DownloadTV::Downloader.new(0, true, true, config)
|
42
42
|
|
43
|
-
it "should remove apostrophes and parens" do
|
44
|
-
shows = ["Mr. Foo S01E02", "Bar (UK) S00E22", "Let's S05E03"]
|
45
|
-
result = ["Mr. Foo S01E02", "Bar S00E22", "Lets S05E03"]
|
43
|
+
it "should remove apostrophes, colons and parens" do
|
44
|
+
shows = ["Mr. Foo S01E02", "Bar (UK) S00E22", "Let's S05E03", "Baz: The Story S05E22"]
|
45
|
+
result = ["Mr. Foo S01E02", "Bar S00E22", "Lets S05E03", "Baz The Story S05E22"]
|
46
46
|
dl.fix_names(shows).must_equal result
|
47
47
|
end
|
48
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: download_tv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- guille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|