odeon_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: d3d16f7f642faa963c3829500de332dbeab66295
4
- data.tar.gz: c6a6786d1e5806e404368dec1f00c3968be66351
3
+ metadata.gz: 725ac69a8440abff20e4240fcc21c1038ee6b169
4
+ data.tar.gz: 4512bf51aa9c21a801487e1fed5f413b538ad481
5
5
  SHA512:
6
- metadata.gz: 00acae1ade12b3914743175fab852f66ebc5e6f5ab0a258c343a3b476c63ca8c9b042f18d145b249428a339683d9500af8f8411841aadce51c16ef98db0dc1ef
7
- data.tar.gz: 716533b7ac7ce4f7c74a49a2b433f38bfd4c73c356b82f0ade7666694bd18e85f5f4d938dc1014ca3280b49ed2501ef1f8401d503694f61d5570b6e8a4f7e297
6
+ metadata.gz: 2cd883c62ff7826084095e20c6ab549eaee0ae7e40799d665dc1177b148378deb95791fe400e120791bfadeff749a205848b35d4929cb8dacd2870d3ebd0f564
7
+ data.tar.gz: e72b2d797e8bb7692e705dd468f0d4d07086d6da4384feecef701bb60c74ee820e6136869422dc14099dcb27da05e7e4c8fd219b2a756ecfdfe80aef4a117ed0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.0.3, _3rd January 2015_
2
+
3
+ - singalong sanitization
4
+
1
5
  ## 2.0.2, _28th September 2014_
2
6
 
3
7
  - Default to 2d for IMAX film tech
@@ -12,6 +12,7 @@ module OdeonUk
12
12
  /\(encore.+\)/i, # encore for NT Live
13
13
  /\(live\)/i, # live in brackets
14
14
  'UKJFF -', # UK Jewish festival prefix
15
+ /\bsing\-?a\-?long\b/i, # singalong
15
16
  ]
16
17
 
17
18
  # regexes and their replacements
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.odeon.co.uk
2
- # @version 2.0.2
2
+ # @version 2.0.3
3
3
  module OdeonUk
4
4
  # Gem version
5
- VERSION = '2.0.2'
5
+ VERSION = '2.0.3'
6
6
  end
@@ -101,5 +101,13 @@ describe OdeonUk::Internal::TitleSanitizer do
101
101
  subject.must_equal('From Cable Street To Brick Lane')
102
102
  end
103
103
  end
104
+
105
+ describe 'singalong screeening' do
106
+ let(:title) { 'Frozen Sing-a-long' }
107
+
108
+ it 'removes prefix' do
109
+ subject.must_equal('Frozen')
110
+ end
111
+ end
104
112
  end
105
113
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odeon_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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-28 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: rake