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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd88d671bc69dcee56c936d14f317feaaa415760
4
- data.tar.gz: 2b807730f5b28367e73c0b9aec62f4ddb485f858
3
+ metadata.gz: e0609cdca28acf2d4f0800aaf0b0534532838940
4
+ data.tar.gz: e1dcf35af5fd713796bf79d3281d44db5b14a45b
5
5
  SHA512:
6
- metadata.gz: 83f01a44a0b2395b30c268cada25937f3b16e4134b1b35aff08ddb8312f1ceb7f3cd3c5849c4c261f49b21150931db18f5cdf13ca4c7ceda28a47d175a6609ce
7
- data.tar.gz: cd47f6d44228bcc7cd23905fbe7393cff6456930ca1809488a3cb53418d371dcbfb5c48c013b74132d9affd752bfaa29a40f478169d33b58d6d0be4ae20b7e92
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
 
@@ -1,3 +1,3 @@
1
1
  module DownloadTV
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
@@ -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.5
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-06-16 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler