picturehouse_uk 2.0.4 → 2.0.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: 7496bb5079646f70447620f7ba6d1903be703a47
4
- data.tar.gz: ebba379d88ef6779fdbb52039d817eeea0384d56
3
+ metadata.gz: f3c596d190d8b0e0453014e3f73950904b75582f
4
+ data.tar.gz: f4b17b74683cd8f29840c4b4005b8132312005e9
5
5
  SHA512:
6
- metadata.gz: fa06007e2a8adadf4cd3b23102a04290620b03fcfa757b9f8a10177337554f9dc41bd6037e0082131d6dfdb3acf4d991819658e967f0161bda7a857d30736f05
7
- data.tar.gz: 8c119283b3ee7d0547f1a5a48ccdb0ed69b0ff1ee7c27d4573f7e5e45678f609a949490738e0b463215719b256c8eb78edfa614f49806b1a792f4459d2d039fa
6
+ metadata.gz: 0099e2fa74f59ec702dea26248c800c2338112116965b563cf8c2652b67593f75c870edfd4bcf5fd545b16856f24727b9e0f27495f3565eb3893fe4314a640d5
7
+ data.tar.gz: 4e7ca06a8d4ef528d547e0bf19219cea236b36b525649fb202d18a7b6291013058cac323cb1833a2e7438da0fbf2ccc15f86ab131466cf7f5d2941bfaa399587
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## v.2.0.5 -2015-01-03
5
+
6
+ ### Added
7
+ - parents and babies screening title
8
+ - subtitled screening
9
+
4
10
  ## v.2.0.4 -2015-01-01
5
11
 
6
12
  ### Added
@@ -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
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.picturehouses.co.uk
2
- # @version 2.0.4
2
+ # @version 2.0.5
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = '2.0.4'
5
+ VERSION = '2.0.5'
6
6
  end
@@ -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
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-01 00:00:00.000000000 Z
11
+ date: 2015-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler