cineworld_uk 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cineworld_uk/cinema.rb +2 -1
- data/lib/cineworld_uk/version.rb +2 -2
- data/test/lib/cineworld_uk/cinema_test.rb +10 -10
- 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: 057f14d21c241b1d950ee5e92297cc793fb1e3fb
|
|
4
|
+
data.tar.gz: df72907051519d650f718e3f603f1ee2eaa75c02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 708aa20499b6747c0a7c0b87d6e33fac094831318dde391377c52af4278f41bb8e79a0145798832ba9f203dfac2d17b02814857023ca48dd06d2e4ea1f2c5be8
|
|
7
|
+
data.tar.gz: 4140cf7f75d6f3820346fb5392804a016732238a879758afc2bc0c10ab7568e1820542d9ffd04d36cdb9b53868a758213a74d450daf8cca87db69cda647995ab
|
data/CHANGELOG.md
CHANGED
data/lib/cineworld_uk/cinema.rb
CHANGED
|
@@ -206,7 +206,8 @@ module CineworldUk
|
|
|
206
206
|
|
|
207
207
|
def information_doc
|
|
208
208
|
@information_doc ||= begin
|
|
209
|
-
|
|
209
|
+
info = CineworldUk::Internal::Website.new.cinema_information(@id)
|
|
210
|
+
Nokogiri::HTML(info)
|
|
210
211
|
end
|
|
211
212
|
end
|
|
212
213
|
|
data/lib/cineworld_uk/version.rb
CHANGED
|
@@ -75,7 +75,7 @@ describe CineworldUk::Cinema do
|
|
|
75
75
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
76
76
|
|
|
77
77
|
before do
|
|
78
|
-
website.expect(:
|
|
78
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
it 'returns the address hash' do
|
|
@@ -96,7 +96,7 @@ describe CineworldUk::Cinema do
|
|
|
96
96
|
let(:cinema) { CineworldUk::Cinema.new('4', 'Bristol') }
|
|
97
97
|
|
|
98
98
|
before do
|
|
99
|
-
website.expect(:
|
|
99
|
+
website.expect(:cinema_information, information_html('bristol'), [4])
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
it 'returns the address hash' do
|
|
@@ -121,7 +121,7 @@ describe CineworldUk::Cinema do
|
|
|
121
121
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
122
122
|
|
|
123
123
|
before do
|
|
124
|
-
website.expect(:
|
|
124
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
it 'returns nil' do
|
|
@@ -135,7 +135,7 @@ describe CineworldUk::Cinema do
|
|
|
135
135
|
let(:cinema) { CineworldUk::Cinema.new('4', 'Bristol') }
|
|
136
136
|
|
|
137
137
|
before do
|
|
138
|
-
website.expect(:
|
|
138
|
+
website.expect(:cinema_information, information_html('bristol'), [4])
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
it 'returns the second line' do
|
|
@@ -183,7 +183,7 @@ describe CineworldUk::Cinema do
|
|
|
183
183
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
184
184
|
|
|
185
185
|
before do
|
|
186
|
-
website.expect(:
|
|
186
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
it 'returns the town/city' do
|
|
@@ -197,7 +197,7 @@ describe CineworldUk::Cinema do
|
|
|
197
197
|
let(:cinema) { CineworldUk::Cinema.new('4', 'Bristol') }
|
|
198
198
|
|
|
199
199
|
before do
|
|
200
|
-
website.expect(:
|
|
200
|
+
website.expect(:cinema_information, information_html('bristol'), [4])
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
it 'returns the town/city' do
|
|
@@ -215,7 +215,7 @@ describe CineworldUk::Cinema do
|
|
|
215
215
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
216
216
|
|
|
217
217
|
before do
|
|
218
|
-
website.expect(:
|
|
218
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
it 'returns the post code' do
|
|
@@ -233,7 +233,7 @@ describe CineworldUk::Cinema do
|
|
|
233
233
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
234
234
|
|
|
235
235
|
before do
|
|
236
|
-
website.expect(:
|
|
236
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
it 'returns the county' do
|
|
@@ -247,7 +247,7 @@ describe CineworldUk::Cinema do
|
|
|
247
247
|
let(:cinema) { CineworldUk::Cinema.new('4', 'Bristol') }
|
|
248
248
|
|
|
249
249
|
before do
|
|
250
|
-
website.expect(:
|
|
250
|
+
website.expect(:cinema_information, information_html('bristol'), [4])
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
it 'returns nil' do
|
|
@@ -275,7 +275,7 @@ describe CineworldUk::Cinema do
|
|
|
275
275
|
let(:cinema) { CineworldUk::Cinema.new('3', 'Brighton') }
|
|
276
276
|
|
|
277
277
|
before do
|
|
278
|
-
website.expect(:
|
|
278
|
+
website.expect(:cinema_information, information_html('brighton'), [3])
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
it 'returns the street address' do
|
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.0.
|
|
4
|
+
version: 2.0.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: 2014-09-
|
|
11
|
+
date: 2014-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|