cineworld_uk 2.1.4 → 2.1.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: d3fa5ffb1775986af650dbeffa7c23542b66408d
4
- data.tar.gz: 7eba5d6f73af1baf82a49baf52e5bad368d66702
3
+ metadata.gz: c6a4844020442656ccc23c1063e79e0bd38b4c35
4
+ data.tar.gz: 3659a27955611b490f17ebb76c3e1f290e48adec
5
5
  SHA512:
6
- metadata.gz: 75d7b255e996c3e94593a814891cac3803956745aa0b9727541f5cff2a165796f387679339a75c08d4beee9e322ac36bdc17c3bcc270e65466df113d783b7dfe
7
- data.tar.gz: 399d7e9b9a7d8bf4012b5657009be07370edcc62f99b748aaa2ae5b7b625b7f91fe2956191d0e7bc817a2bc6c8d125be8d9d9f7123ff7648c5ff82164d1c869b
6
+ metadata.gz: 7394c1a316f767de140b486b4d4f3c8b6e4e07b847323d1487016888adce29c68994d61e37df10af5b3e2809020d95705b77a1f24c7142e0616ef831e92d8215
7
+ data.tar.gz: 06033b11e6ed36794545ec5de7e07e21ce23f8e5cded9f53a13d724d3cc04828ed7e385506c4a76f4ec176b5af6e14bed4712be45b1edcc7d44d1e65fe344a9c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 2.1.5 - 2015-02-18
6
+
7
+ - [FIXED] more defensive against closing cinemas
8
+
5
9
  ## 2.1.4 - 2015-01-03
6
10
 
7
11
  ### Added
@@ -131,6 +131,7 @@ module CineworldUk
131
131
  # #=> 'BN2 5UF'
132
132
  # @note Uses the standard method naming as at http://microformats.org/wiki/adr
133
133
  def postal_code
134
+ return unless last_adr_line_array[-2..-1]
134
135
  last_adr_line_array[-2..-1] * ' '
135
136
  end
136
137
 
@@ -185,7 +186,12 @@ module CineworldUk
185
186
  end
186
187
 
187
188
  def adr_parts
188
- @parts ||= adr_content.split('<br>')[-2].split(',').map(&:strip)
189
+ @parts ||= begin
190
+ return [] unless adr_content
191
+ out = adr_content.split('<br>')[-2]
192
+ return [] unless out
193
+ out.split(',').map(&:strip)
194
+ end
189
195
  end
190
196
 
191
197
  def adr_in_london?
@@ -197,6 +203,7 @@ module CineworldUk
197
203
  end
198
204
 
199
205
  def last_adr_line_array
206
+ return [] unless adr_parts[-1]
200
207
  adr_parts[-1].split(' ')
201
208
  end
202
209
 
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.cineworld.co.uk
2
- # @version 2.1.4
2
+ # @version 2.1.5
3
3
  module CineworldUk
4
4
  # Gem version
5
- VERSION = '2.1.4'
5
+ VERSION = '2.1.5'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cineworld_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.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-03 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler