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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cineworld_uk/cinema.rb +8 -1
- data/lib/cineworld_uk/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6a4844020442656ccc23c1063e79e0bd38b4c35
|
4
|
+
data.tar.gz: 3659a27955611b490f17ebb76c3e1f290e48adec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7394c1a316f767de140b486b4d4f3c8b6e4e07b847323d1487016888adce29c68994d61e37df10af5b3e2809020d95705b77a1f24c7142e0616ef831e92d8215
|
7
|
+
data.tar.gz: 06033b11e6ed36794545ec5de7e07e21ce23f8e5cded9f53a13d724d3cc04828ed7e385506c4a76f4ec176b5af6e14bed4712be45b1edcc7d44d1e65fe344a9c
|
data/CHANGELOG.md
CHANGED
data/lib/cineworld_uk/cinema.rb
CHANGED
@@ -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 ||=
|
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
|
|
data/lib/cineworld_uk/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|