picturehouse_uk 3.0.5 → 3.0.6

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: 48db81f62906361c68ef521dff2f9b4668b883f4
4
- data.tar.gz: 43d45b30b4f1dd2185146ba160cd18c99afce899
3
+ metadata.gz: 926e1de55d97c7c7b1750e67359813b688b75240
4
+ data.tar.gz: 540e7199bd4a492deda5e92d2db00c7311132461
5
5
  SHA512:
6
- metadata.gz: 4e13f651a48470f3383bc7a1802bae9c88cab312a5ee4b853a69849ff24dda87d9116073a373a53633a027a3c66e9fe1e605986706913021137a890a6cce183d
7
- data.tar.gz: 5b8f043e26f6e76153002c9d66a37e0806afb26fd61c008bbd06d110f208eff3c02a056482f9cc492389076949b10735a4af1bf68febd1e9f167e9e3f2d09f5c
6
+ metadata.gz: 43dfcb481595194080001d757f89855bd5cce187937d805f42270d8b68af2ae937aa937ba1e5175ae96fd6835363a1eeba907c4cb17116f1463a46f254ae9fee
7
+ data.tar.gz: b2b563ff2bc455dfcbe44fa757d1682fd7f7ecdc056144d107842504cefc729e595010869f73ceb76bca636e2c1780d1102cc25a8d5f0ff19053bdaf05aef15f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [3.0.6] - 2015-03-20
5
+
6
+ ### Added
7
+ - title sanitization for R18, N/A and (Theatre)
8
+
4
9
  ## [3.0.5] - 2015-03-19
5
10
 
6
11
  ### Fixed
@@ -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
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.picturehouses.co.uk
2
- # @version 3.0.5
2
+ # @version 3.0.6
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = '3.0.5'
5
+ VERSION = '3.0.6'
6
6
  end
@@ -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.5
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-19 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler