picturehouse_uk 2.0.2 → 2.0.3

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: 190e0e19a7e33fd30aa252d53617a8f3f6820ae2
4
- data.tar.gz: 0a8ed252dfbf2d9a564a042ee01806b00f52a914
3
+ metadata.gz: b41bf72e7e92e9bc46458cc4ad73544003d2b7dd
4
+ data.tar.gz: 84e8fe4057ec3d0f1dc975353b1147c0520d1adf
5
5
  SHA512:
6
- metadata.gz: bd685b9048d7a054fa0c712014f0d8fda32fb189ae180f0e1e890854fc0aed9eb0c6527333796a0f31933ffa2a91f5c3a34dafdb5dae73c7af76473631e102a7
7
- data.tar.gz: a0bbdda9c956e867e5863991f981fa862d6a8f5a85250e079bc3c373a503fa750112eef17fbc602a802f2af340604898e7158aad7fb0775f4e33363dccccecfc
6
+ metadata.gz: 5ca35d6efc09d23ade62bb50a88d6c6fa17c01ff7aa8e36dd61a98af037ed23ed041c69147b8c2884c346e95f8bd4fc602a91eab7ad8b44cd8ddbe78137051ab
7
+ data.tar.gz: 28426b91d4cd48b5d8a6654d82e71ef14bd35488bc9963033529aab519091127f0a29d2582764c67e6e5e1f93b5b4b885ca5d2a6d69e709237e119be5c7f81dc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## v.2.0.3 -2014-10-19
5
+
6
+ ### Added
7
+ - Better Q&A/panel removal from titles
8
+ - deal with various title edge cases
9
+ - remove years from titles
10
+
4
11
  ## v.2.0.2 -2014-10-19
5
12
 
6
13
  ### Added
@@ -20,7 +20,13 @@ module PicturehouseUk
20
20
  /\s*-?\s*Big Scream\s*-?\s*/i, # big scream
21
21
  /\*?HOH Subtitled\*?/i, # subtitled
22
22
  /\s*\-?\s*Reminiscence/i, # reminiscence
23
+ /\s*\-?\s*\(?Re\-issue\)?/i, # reissue
23
24
  /\s*-?\s*Kids\'? Club\s*-?\s*/, # kids club
25
+ /\s*plus Q\&A.*/i, # extended Q&A
26
+ /Cinemania\s*[\:\-]/i, # cinemania
27
+ /\@ komedia/i, # @ komedia
28
+ /\s*\+ panel.*/i, # panel
29
+ /\(.*\d{4}\)/, # year or captured year
24
30
  ]
25
31
 
26
32
  # regexes and their replacements
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.picturehouses.co.uk
2
- # @version 2.0.2
2
+ # @version 2.0.3
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = '2.0.2'
5
+ VERSION = '2.0.3'
6
6
  end
@@ -30,6 +30,14 @@ describe PicturehouseUk::Internal::TitleSanitizer do
30
30
  end
31
31
  end
32
32
 
33
+ describe 'with film release year' do
34
+ let(:title) { 'Miracle on 34th Street (1947)' }
35
+
36
+ it 'removes year' do
37
+ subject.must_equal('Miracle on 34th Street')
38
+ end
39
+ end
40
+
33
41
  describe 'with 3d in title' do
34
42
  let(:title) { 'Iron Man 3 3d' }
35
43
 
@@ -110,6 +118,46 @@ describe PicturehouseUk::Internal::TitleSanitizer do
110
118
  end
111
119
  end
112
120
 
121
+ describe 'with large Q+A' do
122
+ let(:title) { 'Luna Plus Q&A with Director and Artist Dave McKean' }
123
+
124
+ it 'removes suffix' do
125
+ subject.must_equal('Luna')
126
+ end
127
+ end
128
+
129
+ describe 'with panel discussion' do
130
+ let(:title) { 'A Dangerous Game + Panel Discussion' }
131
+
132
+ it 'removes suffix' do
133
+ subject.must_equal('A Dangerous Game')
134
+ end
135
+ end
136
+
137
+ describe 'cinemania film festival' do
138
+ let(:title) { 'Cinemania: The Imposter' }
139
+
140
+ it 'removes prefix' do
141
+ subject.must_equal('The Imposter')
142
+ end
143
+ end
144
+
145
+ describe '@ Komedia at the Little Thetre cinema' do
146
+ let(:title) { 'Gone Girl @ Komedia [18]' }
147
+
148
+ it 'removes suffix' do
149
+ subject.must_equal('Gone Girl')
150
+ end
151
+ end
152
+
153
+ describe 're-issue' do
154
+ let(:title) { 'Metropolis (Re-issue)' }
155
+
156
+ it 'removes suffix' do
157
+ subject.must_equal('Metropolis')
158
+ end
159
+ end
160
+
113
161
  describe 'with HOH Subtitled in the title' do
114
162
  let(:title) { "'71 *HOH Subtitled*" }
115
163
 
@@ -150,6 +198,14 @@ describe PicturehouseUk::Internal::TitleSanitizer do
150
198
  end
151
199
  end
152
200
 
201
+ describe 'Bolshoi with captured' do
202
+ let(:title) { 'Bolshoi: La Bayadere (Captured Live in 2012)' }
203
+
204
+ it 'removes suffix' do
205
+ subject.must_equal('Bolshoi: La Bayadere')
206
+ end
207
+ end
208
+
153
209
  describe 'Glyndebourne' do
154
210
  let(:title) do
155
211
  'Glyndebourne Tour 2014: The Cunning Little Vixen [CERT TBC]'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picturehouse_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll