picturehouse_uk 2.0.4 → 2.0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3c596d190d8b0e0453014e3f73950904b75582f
|
|
4
|
+
data.tar.gz: f4b17b74683cd8f29840c4b4005b8132312005e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0099e2fa74f59ec702dea26248c800c2338112116965b563cf8c2652b67593f75c870edfd4bcf5fd545b16856f24727b9e0f27495f3565eb3893fe4314a640d5
|
|
7
|
+
data.tar.gz: 4e7ca06a8d4ef528d547e0bf19219cea236b36b525649fb202d18a7b6291013058cac323cb1833a2e7438da0fbf2ccc15f86ab131466cf7f5d2941bfaa399587
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,8 @@ module PicturehouseUk
|
|
|
30
30
|
/toddler time\s*\:*\-*/i, # toddler time
|
|
31
31
|
/\(.*\d{4}\)/, # year or captured year
|
|
32
32
|
/\bsingalong\b/i, # singalong
|
|
33
|
+
/\s+\-?\s*Parents \& Babies/i, # parents and babies
|
|
34
|
+
/Subtitled\:*\s*/i, # subtitled
|
|
33
35
|
]
|
|
34
36
|
|
|
35
37
|
# regexes and their replacements
|
|
@@ -327,5 +327,21 @@ describe PicturehouseUk::Internal::TitleSanitizer do
|
|
|
327
327
|
subject.must_equal('Royal Opera House: Swan Lake')
|
|
328
328
|
end
|
|
329
329
|
end
|
|
330
|
+
|
|
331
|
+
describe 'parent and babies screening' do
|
|
332
|
+
let(:title) { 'Paddington - Parents & Babies' }
|
|
333
|
+
|
|
334
|
+
it 'removes suffix' do
|
|
335
|
+
subject.must_equal('Paddington')
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
describe 'subtitled screening' do
|
|
340
|
+
let(:title) { 'Subtitled: The Hobbit: The Battle of the Five Armies' }
|
|
341
|
+
|
|
342
|
+
it 'removes prefix' do
|
|
343
|
+
subject.must_equal('The Hobbit: The Battle of the Five Armies')
|
|
344
|
+
end
|
|
345
|
+
end
|
|
330
346
|
end
|
|
331
347
|
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: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
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-01-
|
|
11
|
+
date: 2015-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|