odeon_uk 2.0.3 → 2.0.4
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/odeon_uk/cinema.rb +3 -0
- data/lib/odeon_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: cb0f0e0ede5e635b08ea320250268c0788e200cf
|
4
|
+
data.tar.gz: 997af2dfe1fb2d36ac715f807ae996d105c868d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38beb6721c4ec3c38ea9764177cd08836d18ab6cb8f9325f3fdb1a0c17206a219933cd4c27db44cb2b688c6224c27e2de6dd644ba82f73218be7469f1a6df660
|
7
|
+
data.tar.gz: e70416c3e33a8e0600fcdf62bce224fd3cbc7a4f3c9a8241f7dc7fc27b53a61a6197dbb9809ee1fb87ef2d425fd84d7a30336a51ba0951e2c62cb101ba920e7b
|
data/CHANGELOG.md
CHANGED
data/lib/odeon_uk/cinema.rb
CHANGED
@@ -88,6 +88,7 @@ module OdeonUk
|
|
88
88
|
# cinema.locality
|
89
89
|
# #=> 'Brighton'
|
90
90
|
def locality
|
91
|
+
return unless address_node
|
91
92
|
address_node.text.match(/\w+(\s\w+){0,}\s+(\w+(\s\w+){0,})/)[2]
|
92
93
|
end
|
93
94
|
|
@@ -98,6 +99,7 @@ module OdeonUk
|
|
98
99
|
# cinema.postal_code
|
99
100
|
# #=> 'BN1 2RE'
|
100
101
|
def postal_code
|
102
|
+
return unless address_node
|
101
103
|
address_node.text.match(/[A-Z]{1,2}\d{1,2}[A-Z]?\s\d{1,2}[A-Z]{1,2}/)[0]
|
102
104
|
end
|
103
105
|
|
@@ -133,6 +135,7 @@ module OdeonUk
|
|
133
135
|
# cinema.street_address
|
134
136
|
# #=> 'Kingswest'
|
135
137
|
def street_address
|
138
|
+
return unless address_node
|
136
139
|
address_node.text.match(/\A\s+(\w+(\s\w+){0,})/)[1]
|
137
140
|
end
|
138
141
|
|
data/lib/odeon_uk/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.4
|
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: rake
|