picturehouse_uk 3.0.5 → 3.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 926e1de55d97c7c7b1750e67359813b688b75240
|
|
4
|
+
data.tar.gz: 540e7199bd4a492deda5e92d2db00c7311132461
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43dfcb481595194080001d757f89855bd5cce187937d805f42270d8b68af2ae937aa937ba1e5175ae96fd6835363a1eeba907c4cb17116f1463a46f254ae9fee
|
|
7
|
+
data.tar.gz: b2b563ff2bc455dfcbe44fa757d1682fd7f7ecdc056144d107842504cefc729e595010869f73ceb76bca636e2c1780d1102cc25a8d5f0ff19053bdaf05aef15f
|
data/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,13 @@ module PicturehouseUk
|
|
|
6
6
|
# strings and regex to be removed
|
|
7
7
|
REMOVE = [
|
|
8
8
|
/\s\[(AS LIVE:\s*)?[ACPGU1258]+\]/, # regular certificate
|
|
9
|
+
/\s\[R18\]/, # R18
|
|
9
10
|
/\s+\(?[23][dD]\)?/, # 2d or 3d from title
|
|
10
11
|
/\bIMAX\b/i, # imax from title
|
|
11
12
|
/\s\[NO CERT\]/, # no certificate
|
|
12
13
|
/\s\[TBC\]/, # tbc
|
|
14
|
+
/\s\[N\/A\]/i, # n/a
|
|
15
|
+
/\s\(Theatre\)/i, # (theatre)
|
|
13
16
|
/\s\[\]/, # blank certificate
|
|
14
17
|
/ourscreen\: /, # ourscreen
|
|
15
18
|
/\s\(Re(\: \d{0,4})?\)/i, # Re-release
|
|
@@ -359,5 +359,29 @@ describe PicturehouseUk::Internal::TitleSanitizer do
|
|
|
359
359
|
subject.must_equal('The Living Room with Gavin Clark')
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
|
+
|
|
363
|
+
describe 'remove [N/A] certificate' do
|
|
364
|
+
let(:title) { 'Woman In Gold [N/A]' }
|
|
365
|
+
|
|
366
|
+
it 'removes tbc cert' do
|
|
367
|
+
subject.must_equal('Woman In Gold')
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
describe 'remove (Theatre) designation' do
|
|
372
|
+
let(:title) { 'Maxine Peake As Hamlet (Theatre)' }
|
|
373
|
+
|
|
374
|
+
it 'removes tbc cert' do
|
|
375
|
+
subject.must_equal('Maxine Peake As Hamlet')
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
describe 'remove [R18] certificate' do
|
|
380
|
+
let(:title) { "Dr Sketchy's Anti-Art School [R18]" }
|
|
381
|
+
|
|
382
|
+
it 'removes tbc cert' do
|
|
383
|
+
subject.must_equal("Dr Sketchy's Anti-Art School")
|
|
384
|
+
end
|
|
385
|
+
end
|
|
362
386
|
end
|
|
363
387
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: picturehouse_uk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Croll
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|