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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 725ac69a8440abff20e4240fcc21c1038ee6b169
4
- data.tar.gz: 4512bf51aa9c21a801487e1fed5f413b538ad481
3
+ metadata.gz: cb0f0e0ede5e635b08ea320250268c0788e200cf
4
+ data.tar.gz: 997af2dfe1fb2d36ac715f807ae996d105c868d3
5
5
  SHA512:
6
- metadata.gz: 2cd883c62ff7826084095e20c6ab549eaee0ae7e40799d665dc1177b148378deb95791fe400e120791bfadeff749a205848b35d4929cb8dacd2870d3ebd0f564
7
- data.tar.gz: e72b2d797e8bb7692e705dd468f0d4d07086d6da4384feecef701bb60c74ee820e6136869422dc14099dcb27da05e7e4c8fd219b2a756ecfdfe80aef4a117ed0
6
+ metadata.gz: 38beb6721c4ec3c38ea9764177cd08836d18ab6cb8f9325f3fdb1a0c17206a219933cd4c27db44cb2b688c6224c27e2de6dd644ba82f73218be7469f1a6df660
7
+ data.tar.gz: e70416c3e33a8e0600fcdf62bce224fd3cbc7a4f3c9a8241f7dc7fc27b53a61a6197dbb9809ee1fb87ef2d425fd84d7a30336a51ba0951e2c62cb101ba920e7b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.0.4 - 2015-02-18
2
+
3
+ - protect against unopened cinemas
4
+
1
5
  ## 2.0.3, _3rd January 2015_
2
6
 
3
7
  - singalong sanitization
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.odeon.co.uk
2
- # @version 2.0.3
2
+ # @version 2.0.4
3
3
  module OdeonUk
4
4
  # Gem version
5
- VERSION = '2.0.3'
5
+ VERSION = '2.0.4'
6
6
  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.3
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-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: rake