picturehouse_uk 2.0.3 → 2.0.4

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: b41bf72e7e92e9bc46458cc4ad73544003d2b7dd
4
- data.tar.gz: 84e8fe4057ec3d0f1dc975353b1147c0520d1adf
3
+ metadata.gz: 7496bb5079646f70447620f7ba6d1903be703a47
4
+ data.tar.gz: ebba379d88ef6779fdbb52039d817eeea0384d56
5
5
  SHA512:
6
- metadata.gz: 5ca35d6efc09d23ade62bb50a88d6c6fa17c01ff7aa8e36dd61a98af037ed23ed041c69147b8c2884c346e95f8bd4fc602a91eab7ad8b44cd8ddbe78137051ab
7
- data.tar.gz: 28426b91d4cd48b5d8a6654d82e71ef14bd35488bc9963033529aab519091127f0a29d2582764c67e6e5e1f93b5b4b885ca5d2a6d69e709237e119be5c7f81dc
6
+ metadata.gz: fa06007e2a8adadf4cd3b23102a04290620b03fcfa757b9f8a10177337554f9dc41bd6037e0082131d6dfdb3acf4d991819658e967f0161bda7a857d30736f05
7
+ data.tar.gz: 8c119283b3ee7d0547f1a5a48ccdb0ed69b0ff1ee7c27d4573f7e5e45678f609a949490738e0b463215719b256c8eb78edfa614f49806b1a792f4459d2d039fa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## v.2.0.4 -2015-01-01
5
+
6
+ ### Added
7
+ - remove imax from film title
8
+ - remove 'Discover Tuesday' from film title
9
+ - remove 'toddler time' from film title
10
+ - remove 'singalong' from film title
11
+
4
12
  ## v.2.0.3 -2014-10-19
5
13
 
6
14
  ### Added
@@ -7,6 +7,7 @@ module PicturehouseUk
7
7
  REMOVE = [
8
8
  /\s\[(AS LIVE:\s*)?[ACPGU1258]+\]/, # regular certificate
9
9
  /\s+\(?[23][dD]\)?/, # 2d or 3d from title
10
+ /\bIMAX\b/i, # imax from title
10
11
  /\s\[NO CERT\]/, # no certificate
11
12
  /\s\[\]/, # blank certificate
12
13
  /ourscreen\: /, # ourscreen
@@ -15,7 +16,7 @@ module PicturehouseUk
15
16
  /\s?\-\s?autism.*ing\s?/i, # austim screening
16
17
  /\s?\+\s?Q\&A\.?/i, # +Q&A
17
18
  /KIDS CLUB\s*/i, # kids club
18
- /DISCOVER TUE\s*/i, # discover tue
19
+ /DISCOVER TUE(sday\:)*\s*/i, # discover tue
19
20
  /FREE Screening\s*-\s*/i, # free screening
20
21
  /\s*-?\s*Big Scream\s*-?\s*/i, # big scream
21
22
  /\*?HOH Subtitled\*?/i, # subtitled
@@ -24,9 +25,11 @@ module PicturehouseUk
24
25
  /\s*-?\s*Kids\'? Club\s*-?\s*/, # kids club
25
26
  /\s*plus Q\&A.*/i, # extended Q&A
26
27
  /Cinemania\s*[\:\-]/i, # cinemania
27
- /\@ komedia/i, # @ komedia
28
+ /\@\s*komedia/i, # @ komedia
28
29
  /\s*\+ panel.*/i, # panel
30
+ /toddler time\s*\:*\-*/i, # toddler time
29
31
  /\(.*\d{4}\)/, # year or captured year
32
+ /\bsingalong\b/i, # singalong
30
33
  ]
31
34
 
32
35
  # regexes and their replacements
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.picturehouses.co.uk
2
- # @version 2.0.3
2
+ # @version 2.0.4
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = '2.0.3'
5
+ VERSION = '2.0.4'
6
6
  end
@@ -94,6 +94,22 @@ describe PicturehouseUk::Internal::TitleSanitizer do
94
94
  end
95
95
  end
96
96
 
97
+ describe 'with Discover Tuesday in title' do
98
+ let(:title) { 'Discover Tuesday: Manakamana [U]' }
99
+
100
+ it 'remove rogue screening type' do
101
+ subject.must_equal('Manakamana')
102
+ end
103
+ end
104
+
105
+ describe 'with Singalong' do
106
+ let(:title) { 'Frozen Singalong [PG]' }
107
+
108
+ it 'remove rogue screening type' do
109
+ subject.must_equal('Frozen')
110
+ end
111
+ end
112
+
97
113
  describe 'with free screening' do
98
114
  let(:title) { 'FREE Screening - Withnail & I' }
99
115
 
@@ -150,6 +166,22 @@ describe PicturehouseUk::Internal::TitleSanitizer do
150
166
  end
151
167
  end
152
168
 
169
+ describe '@ Komedia at the Little Thetre cinema' do
170
+ let(:title) { 'Paddington@Komedia' }
171
+
172
+ it 'removes suffix' do
173
+ subject.must_equal('Paddington')
174
+ end
175
+ end
176
+
177
+ describe 'imax' do
178
+ let(:title) { 'Dinosaurs Alive! IMAX' }
179
+
180
+ it 'removes suffix' do
181
+ subject.must_equal('Dinosaurs Alive!')
182
+ end
183
+ end
184
+
153
185
  describe 're-issue' do
154
186
  let(:title) { 'Metropolis (Re-issue)' }
155
187
 
@@ -272,6 +304,14 @@ describe PicturehouseUk::Internal::TitleSanitizer do
272
304
  end
273
305
  end
274
306
 
307
+ describe 'toddler time' do
308
+ let(:title) { 'TODDLER TIME: Timmy Time Programme 15' }
309
+
310
+ it 'removes rerelease notice' do
311
+ subject.must_equal('Timmy Time Programme 15')
312
+ end
313
+ end
314
+
275
315
  describe 'Royal Opera House screening' do
276
316
  let(:title) { 'Royal Shakespeare Company: Richard II [NO CERT]' }
277
317
 
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.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-19 00:00:00.000000000 Z
11
+ date: 2015-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler