cineworld_uk 1.0.1 → 1.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2U0MGM3ZjlkNTc1OGNiMmY2YTM0Yjg1MGQ0ZDY3MTA4ZjY4YzNjMw==
4
+ NTQyOWQ5NWNkY2ViOGY2YTVkMzRmMWJhYWIxYzkxNjNjMGU3NjI2ZA==
5
5
  data.tar.gz: !binary |-
6
- YjQwMWJjZmM4YTE5OWM5YWM0NTNjOWM3NzNjMmY2NTAyZTEyZmNhYQ==
6
+ YjAxNjI2ZGZkZjNjNDg5YmM5YmZmZDg0ZTVlOTVkY2ExNjk1MWExNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGZhMTk0ZWM4OTJmZjc4MmVmODEwY2U0ZDQ0ODVmNGViMTU5OWM2ZmI0NjUx
10
- Y2JjZjNhNmViNDYyMGZmNjhkMDc2ZTY1MmFiMjU0NzQ2NmE2ZmI0MTJiZDI4
11
- YWE3ODUzOTgxM2MwZTRhZTA2NGQ5MzgwOGZiMzNjZDA4NDFkZDk=
9
+ MmQwMTIzZmYwYTMyZGEwNDNkOTk4NGQ3YzYwZDFkMzBhODQ3MjU2Yjk3YzNm
10
+ NjhhZjg1YzNjOTFmMWQ1YTUyZGUxMTgwMGU3ZWNkMjViYjJjNDU3MGRmODI5
11
+ MGExNjI5NjczN2I0YTk5N2IxOGUxOTczYmFjYTA0ZThjMjZhY2U=
12
12
  data.tar.gz: !binary |-
13
- ODQyMTFmZTU0ODgxZTkwNTIzZjNlYjE3NmVmNmRiZTdhYzQ0MmI5NjQ2MDhj
14
- M2EzYmU3NjAwZjIxZjRkODdhMDBjNjM1ODc1NjBhMDEyNWQ0NGExMjM5ZDg0
15
- NmE0NGRlNjhjMmUzMzg4NGY0OTg1YjMwYjdjMGMzYzE2OTU3MDQ=
13
+ NGE2OThjZWZhMmJlZmMxODI5ZWU3NWRjYTIwMzQ2OGNlYTBmY2NlZDRmYmFl
14
+ MjBiMjc3MTExMjM1NzJhYzAwNzJlYTU3YmZhM2ZhOWRmNDZjZmFlMzA3NDMw
15
+ NTAxYzU4ZDllNjY1YTU0M2E5YzUyNDg5MTJmYmVjMTQ2MDkwYmY=
@@ -15,7 +15,7 @@ module CineworldUk
15
15
  # The film name
16
16
  # @return [String]
17
17
  def film_name
18
- name = @nokogiri_html.css('.span5 h1 a,.span7 h1 a, .span7 h1').children[0].to_s
18
+ name = original_name
19
19
 
20
20
  # screening types
21
21
  name = name.gsub 'Take 2 Thursday - ', '' # take 2 thursday
@@ -94,6 +94,14 @@ module CineworldUk
94
94
  node.css('.tooltip-box .icon-service-imax').count > 0
95
95
  end
96
96
 
97
+ def hfr?(node)
98
+ node.css('.tooltip-box .icon-service-hfr').count > 0
99
+ end
100
+
101
+ def original_name
102
+ @original_name ||= @nokogiri_html.css('.span5 h1 a,.span7 h1 a, .span7 h1').children[0].to_s
103
+ end
104
+
97
105
  def performance_date_array(node)
98
106
  if has_bookable_link_node?(node)
99
107
  match = performance_link_text(node).match(/date\=(\d{4})(\d{2})(\d{2})/)
@@ -121,7 +129,7 @@ module CineworldUk
121
129
  end
122
130
 
123
131
  def performance_variant(node)
124
- dimension(node) + "#{ ' D-BOX' if dbox?(node) }#{ ' IMAX' if imax?(node) }"
132
+ dimension(node) + "#{ ' D-BOX' if dbox?(node) }#{ ' IMAX' if imax?(node) }#{ ' HFR' if hfr?(node) }"
125
133
  end
126
134
  end
127
135
  end
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.cineworld.co.uk
2
- # @version 1.0.1
2
+ # @version 1.0.2
3
3
  module CineworldUk
4
4
  # Gem version
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
@@ -0,0 +1,764 @@
1
+ <div class="row">
2
+ <div class="span2">
3
+ <div class="poster">
4
+ <a href="/whatson/6557?cinema=79&amp;date=all">
5
+ <div class="image"><img src="/cw/assets/images/whatson/film.placeholder.poster.jpg" data-original="/assets/media/films/6557_poster_large.jpg" width="140" alt="Poster for Film The Hobbit - The Desolation of Smaug" /></div>
6
+ </a>
7
+ </div>
8
+ </div>
9
+
10
+ <div class="span7">
11
+ <h1>
12
+ <a href="/whatson/6557?cinema=79&amp;date=all">The Hobbit - The Desolation of Smaug</a>
13
+ <a class="classification gb-12a tooltip" href="/classification" title="No-one younger than 12 may see a '12A' film in a cinema unless accompanied by an adult. Responsibility for allowing under-12s to view lies with the accompanying or supervising adult." data-classification="12A" data-territory="GB">(12A)</a>
14
+ </h1>
15
+
16
+ <div class="inline-children">
17
+ <h3>Release date:</h3>
18
+ <p>13th December 2013</p>
19
+ </div>
20
+
21
+ <div class="inline-children">
22
+ <h3>Running time:</h3> <p>161 mins</p>
23
+ </div>
24
+
25
+ <h3>Synopsis:</h3>
26
+ <p>Bilbo and the dwarves' epic and eventful dragon slaying quest continues in part two of Peter Jackson's stunning new trilogy.</p>
27
+
28
+
29
+
30
+ <h3>Available screening types</h3>
31
+
32
+ <ul class="unstyled">
33
+ <li class="icon-service-twod"></li>
34
+
35
+ <li class="icon-service-dbox"></li>
36
+ <li class="icon-service-thrd"></li>
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ </ul>
45
+
46
+ <a class="action primary" title="Find out more about The Hobbit - The Desolation of Smaug" href="/whatson/6557?cinema=79&amp;date=all">Find out more</a>
47
+
48
+ </div>
49
+ </div>
50
+
51
+ <br />
52
+ <p><strong>Select a showtime and book to save 10% on your tickets with <span class="icon-logo-mycineworld ">mycineworld</span>
53
+ </strong></p>
54
+
55
+ <div class="schedule row">
56
+ <div class="span9">
57
+ <div class="date row">
58
+ <div class="span2">
59
+ <h3>Thursday 2nd Jan</h3>
60
+ </div>
61
+
62
+ <div class="span7">
63
+ <ol class="performances">
64
+ <li>
65
+ <a class="tooltip performance action" title="16:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=16:20" rel="nofollow">16:20</a>
66
+ <div class="tooltip-box performance">
67
+ <h2>Available screening types:</h2>
68
+
69
+ <hr class="thin" />
70
+
71
+ <ul class="unstyled">
72
+ <li class="icon-service-twod">2D</li>
73
+ </ul>
74
+ </div>
75
+ </li>
76
+ <li>
77
+ <a class="tooltip performance action" title="17:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=17:00" rel="nofollow">17:00</a>
78
+ <div class="tooltip-box performance">
79
+ <h2>Available screening types:</h2>
80
+
81
+ <hr class="thin" />
82
+
83
+ <ul class="unstyled">
84
+ <li class="icon-service-thrd">3D</li>
85
+ <li class="icon-service-dbox">DBOX</li>
86
+ </ul>
87
+ </div>
88
+ </li>
89
+ <li>
90
+ <a class="tooltip performance action" title="18:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=18:40" rel="nofollow">18:40</a>
91
+ <div class="tooltip-box performance">
92
+ <h2>Available screening types:</h2>
93
+
94
+ <hr class="thin" />
95
+
96
+ <ul class="unstyled">
97
+ <li class="icon-service-twod">2D</li>
98
+ </ul>
99
+ </div>
100
+ </li>
101
+ <li>
102
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=19:20" rel="nofollow">19:20</a>
103
+ <div class="tooltip-box performance">
104
+ <h2>Available screening types:</h2>
105
+
106
+ <hr class="thin" />
107
+
108
+ <ul class="unstyled">
109
+ <li class="icon-service-thrd">3D</li>
110
+ <li class="icon-service-hfr">HFR</li>
111
+ </ul>
112
+ </div>
113
+ </li>
114
+ <li>
115
+ <a class="tooltip performance action" title="20:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=20:00" rel="nofollow">20:00</a>
116
+ <div class="tooltip-box performance">
117
+ <h2>Available screening types:</h2>
118
+
119
+ <hr class="thin" />
120
+
121
+ <ul class="unstyled">
122
+ <li class="icon-service-twod">2D</li>
123
+ </ul>
124
+ </div>
125
+ </li>
126
+ <li>
127
+ <a class="tooltip performance action" title="20:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140102&amp;time=20:40" rel="nofollow">20:40</a>
128
+ <div class="tooltip-box performance">
129
+ <h2>Available screening types:</h2>
130
+
131
+ <hr class="thin" />
132
+
133
+ <ul class="unstyled">
134
+ <li class="icon-service-thrd">3D</li>
135
+ <li class="icon-service-dbox">DBOX</li>
136
+ </ul>
137
+ </div>
138
+ </li>
139
+ </ol>
140
+ </div>
141
+ </div>
142
+ <div class="date row">
143
+ <div class="span2">
144
+ <h3>Friday 3rd Jan</h3>
145
+ </div>
146
+
147
+ <div class="span7">
148
+ <ol class="performances">
149
+ <li>
150
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=12:00" rel="nofollow">12:00</a>
151
+ <div class="tooltip-box performance">
152
+ <h2>Available screening types:</h2>
153
+
154
+ <hr class="thin" />
155
+
156
+ <ul class="unstyled">
157
+ <li class="icon-service-twod">2D</li>
158
+ </ul>
159
+ </div>
160
+ </li>
161
+ <li>
162
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=13:00" rel="nofollow">13:00</a>
163
+ <div class="tooltip-box performance">
164
+ <h2>Available screening types:</h2>
165
+
166
+ <hr class="thin" />
167
+
168
+ <ul class="unstyled">
169
+ <li class="icon-service-thrd">3D</li>
170
+ <li class="icon-service-dbox">DBOX</li>
171
+ </ul>
172
+ </div>
173
+ </li>
174
+ <li>
175
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=15:40" rel="nofollow">15:40</a>
176
+ <div class="tooltip-box performance">
177
+ <h2>Available screening types:</h2>
178
+
179
+ <hr class="thin" />
180
+
181
+ <ul class="unstyled">
182
+ <li class="icon-service-twod">2D</li>
183
+ </ul>
184
+ </div>
185
+ </li>
186
+ <li>
187
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=16:40" rel="nofollow">16:40</a>
188
+ <div class="tooltip-box performance">
189
+ <h2>Available screening types:</h2>
190
+
191
+ <hr class="thin" />
192
+
193
+ <ul class="unstyled">
194
+ <li class="icon-service-thrd">3D</li>
195
+ <li class="icon-service-dbox">DBOX</li>
196
+ </ul>
197
+ </div>
198
+ </li>
199
+ <li>
200
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=19:20" rel="nofollow">19:20</a>
201
+ <div class="tooltip-box performance">
202
+ <h2>Available screening types:</h2>
203
+
204
+ <hr class="thin" />
205
+
206
+ <ul class="unstyled">
207
+ <li class="icon-service-twod">2D</li>
208
+ </ul>
209
+ </div>
210
+ </li>
211
+ <li>
212
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=20:20" rel="nofollow">20:20</a>
213
+ <div class="tooltip-box performance">
214
+ <h2>Available screening types:</h2>
215
+
216
+ <hr class="thin" />
217
+
218
+ <ul class="unstyled">
219
+ <li class="icon-service-thrd">3D</li>
220
+ <li class="icon-service-dbox">DBOX</li>
221
+ </ul>
222
+ </div>
223
+ </li>
224
+ <li>
225
+ <a class="tooltip performance action" title="22:50" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140103&amp;time=22:50" rel="nofollow">22:50</a>
226
+ <div class="tooltip-box performance">
227
+ <h2>Available screening types:</h2>
228
+
229
+ <hr class="thin" />
230
+
231
+ <ul class="unstyled">
232
+ <li class="icon-service-twod">2D</li>
233
+ </ul>
234
+ </div>
235
+ </li>
236
+ </ol>
237
+ </div>
238
+ </div>
239
+ <div class="date row">
240
+ <div class="span2">
241
+ <h3>Saturday 4th Jan</h3>
242
+ </div>
243
+
244
+ <div class="span7">
245
+ <ol class="performances">
246
+ <li>
247
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=12:00" rel="nofollow">12:00</a>
248
+ <div class="tooltip-box performance">
249
+ <h2>Available screening types:</h2>
250
+
251
+ <hr class="thin" />
252
+
253
+ <ul class="unstyled">
254
+ <li class="icon-service-twod">2D</li>
255
+ </ul>
256
+ </div>
257
+ </li>
258
+ <li>
259
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=13:00" rel="nofollow">13:00</a>
260
+ <div class="tooltip-box performance">
261
+ <h2>Available screening types:</h2>
262
+
263
+ <hr class="thin" />
264
+
265
+ <ul class="unstyled">
266
+ <li class="icon-service-thrd">3D</li>
267
+ <li class="icon-service-dbox">DBOX</li>
268
+ </ul>
269
+ </div>
270
+ </li>
271
+ <li>
272
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=15:40" rel="nofollow">15:40</a>
273
+ <div class="tooltip-box performance">
274
+ <h2>Available screening types:</h2>
275
+
276
+ <hr class="thin" />
277
+
278
+ <ul class="unstyled">
279
+ <li class="icon-service-twod">2D</li>
280
+ </ul>
281
+ </div>
282
+ </li>
283
+ <li>
284
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=16:40" rel="nofollow">16:40</a>
285
+ <div class="tooltip-box performance">
286
+ <h2>Available screening types:</h2>
287
+
288
+ <hr class="thin" />
289
+
290
+ <ul class="unstyled">
291
+ <li class="icon-service-thrd">3D</li>
292
+ <li class="icon-service-dbox">DBOX</li>
293
+ </ul>
294
+ </div>
295
+ </li>
296
+ <li>
297
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=19:20" rel="nofollow">19:20</a>
298
+ <div class="tooltip-box performance">
299
+ <h2>Available screening types:</h2>
300
+
301
+ <hr class="thin" />
302
+
303
+ <ul class="unstyled">
304
+ <li class="icon-service-twod">2D</li>
305
+ </ul>
306
+ </div>
307
+ </li>
308
+ <li>
309
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=20:20" rel="nofollow">20:20</a>
310
+ <div class="tooltip-box performance">
311
+ <h2>Available screening types:</h2>
312
+
313
+ <hr class="thin" />
314
+
315
+ <ul class="unstyled">
316
+ <li class="icon-service-thrd">3D</li>
317
+ <li class="icon-service-dbox">DBOX</li>
318
+ </ul>
319
+ </div>
320
+ </li>
321
+ <li>
322
+ <a class="tooltip performance action" title="22:50" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140104&amp;time=22:50" rel="nofollow">22:50</a>
323
+ <div class="tooltip-box performance">
324
+ <h2>Available screening types:</h2>
325
+
326
+ <hr class="thin" />
327
+
328
+ <ul class="unstyled">
329
+ <li class="icon-service-twod">2D</li>
330
+ </ul>
331
+ </div>
332
+ </li>
333
+ </ol>
334
+ </div>
335
+ </div>
336
+ <div class="date row">
337
+ <div class="span2">
338
+ <h3>Sunday 5th Jan</h3>
339
+ </div>
340
+
341
+ <div class="span7">
342
+ <ol class="performances">
343
+ <li>
344
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=12:00" rel="nofollow">12:00</a>
345
+ <div class="tooltip-box performance">
346
+ <h2>Available screening types:</h2>
347
+
348
+ <hr class="thin" />
349
+
350
+ <ul class="unstyled">
351
+ <li class="icon-service-twod">2D</li>
352
+ </ul>
353
+ </div>
354
+ </li>
355
+ <li>
356
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=13:00" rel="nofollow">13:00</a>
357
+ <div class="tooltip-box performance">
358
+ <h2>Available screening types:</h2>
359
+
360
+ <hr class="thin" />
361
+
362
+ <ul class="unstyled">
363
+ <li class="icon-service-thrd">3D</li>
364
+ <li class="icon-service-dbox">DBOX</li>
365
+ </ul>
366
+ </div>
367
+ </li>
368
+ <li>
369
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=15:40" rel="nofollow">15:40</a>
370
+ <div class="tooltip-box performance">
371
+ <h2>Available screening types:</h2>
372
+
373
+ <hr class="thin" />
374
+
375
+ <ul class="unstyled">
376
+ <li class="icon-service-twod">2D</li>
377
+ </ul>
378
+ </div>
379
+ </li>
380
+ <li>
381
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=16:40" rel="nofollow">16:40</a>
382
+ <div class="tooltip-box performance">
383
+ <h2>Available screening types:</h2>
384
+
385
+ <hr class="thin" />
386
+
387
+ <ul class="unstyled">
388
+ <li class="icon-service-thrd">3D</li>
389
+ <li class="icon-service-dbox">DBOX</li>
390
+ </ul>
391
+ </div>
392
+ </li>
393
+ <li>
394
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=19:20" rel="nofollow">19:20</a>
395
+ <div class="tooltip-box performance">
396
+ <h2>Available screening types:</h2>
397
+
398
+ <hr class="thin" />
399
+
400
+ <ul class="unstyled">
401
+ <li class="icon-service-twod">2D</li>
402
+ </ul>
403
+ </div>
404
+ </li>
405
+ <li>
406
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140105&amp;time=20:20" rel="nofollow">20:20</a>
407
+ <div class="tooltip-box performance">
408
+ <h2>Available screening types:</h2>
409
+
410
+ <hr class="thin" />
411
+
412
+ <ul class="unstyled">
413
+ <li class="icon-service-thrd">3D</li>
414
+ <li class="icon-service-dbox">DBOX</li>
415
+ </ul>
416
+ </div>
417
+ </li>
418
+ </ol>
419
+ </div>
420
+ </div>
421
+ <div class="date row">
422
+ <div class="span2">
423
+ <h3>Monday 6th Jan</h3>
424
+ </div>
425
+
426
+ <div class="span7">
427
+ <ol class="performances">
428
+ <li>
429
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=12:00" rel="nofollow">12:00</a>
430
+ <div class="tooltip-box performance">
431
+ <h2>Available screening types:</h2>
432
+
433
+ <hr class="thin" />
434
+
435
+ <ul class="unstyled">
436
+ <li class="icon-service-twod">2D</li>
437
+ </ul>
438
+ </div>
439
+ </li>
440
+ <li>
441
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=13:00" rel="nofollow">13:00</a>
442
+ <div class="tooltip-box performance">
443
+ <h2>Available screening types:</h2>
444
+
445
+ <hr class="thin" />
446
+
447
+ <ul class="unstyled">
448
+ <li class="icon-service-thrd">3D</li>
449
+ <li class="icon-service-dbox">DBOX</li>
450
+ </ul>
451
+ </div>
452
+ </li>
453
+ <li>
454
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=15:40" rel="nofollow">15:40</a>
455
+ <div class="tooltip-box performance">
456
+ <h2>Available screening types:</h2>
457
+
458
+ <hr class="thin" />
459
+
460
+ <ul class="unstyled">
461
+ <li class="icon-service-twod">2D</li>
462
+ </ul>
463
+ </div>
464
+ </li>
465
+ <li>
466
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=16:40" rel="nofollow">16:40</a>
467
+ <div class="tooltip-box performance">
468
+ <h2>Available screening types:</h2>
469
+
470
+ <hr class="thin" />
471
+
472
+ <ul class="unstyled">
473
+ <li class="icon-service-thrd">3D</li>
474
+ <li class="icon-service-dbox">DBOX</li>
475
+ </ul>
476
+ </div>
477
+ </li>
478
+ <li>
479
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=19:20" rel="nofollow">19:20</a>
480
+ <div class="tooltip-box performance">
481
+ <h2>Available screening types:</h2>
482
+
483
+ <hr class="thin" />
484
+
485
+ <ul class="unstyled">
486
+ <li class="icon-service-twod">2D</li>
487
+ </ul>
488
+ </div>
489
+ </li>
490
+ <li>
491
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140106&amp;time=20:20" rel="nofollow">20:20</a>
492
+ <div class="tooltip-box performance">
493
+ <h2>Available screening types:</h2>
494
+
495
+ <hr class="thin" />
496
+
497
+ <ul class="unstyled">
498
+ <li class="icon-service-thrd">3D</li>
499
+ <li class="icon-service-dbox">DBOX</li>
500
+ </ul>
501
+ </div>
502
+ </li>
503
+ </ol>
504
+ </div>
505
+ </div>
506
+ <div class="date row">
507
+ <div class="span2">
508
+ <h3>Tuesday 7th Jan</h3>
509
+ </div>
510
+
511
+ <div class="span7">
512
+ <ol class="performances">
513
+ <li>
514
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=12:00" rel="nofollow">12:00</a>
515
+ <div class="tooltip-box performance">
516
+ <h2>Available screening types:</h2>
517
+
518
+ <hr class="thin" />
519
+
520
+ <ul class="unstyled">
521
+ <li class="icon-service-twod">2D</li>
522
+ </ul>
523
+ </div>
524
+ </li>
525
+ <li>
526
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=13:00" rel="nofollow">13:00</a>
527
+ <div class="tooltip-box performance">
528
+ <h2>Available screening types:</h2>
529
+
530
+ <hr class="thin" />
531
+
532
+ <ul class="unstyled">
533
+ <li class="icon-service-thrd">3D</li>
534
+ <li class="icon-service-dbox">DBOX</li>
535
+ </ul>
536
+ </div>
537
+ </li>
538
+ <li>
539
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=15:40" rel="nofollow">15:40</a>
540
+ <div class="tooltip-box performance">
541
+ <h2>Available screening types:</h2>
542
+
543
+ <hr class="thin" />
544
+
545
+ <ul class="unstyled">
546
+ <li class="icon-service-twod">2D</li>
547
+ </ul>
548
+ </div>
549
+ </li>
550
+ <li>
551
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=16:40" rel="nofollow">16:40</a>
552
+ <div class="tooltip-box performance">
553
+ <h2>Available screening types:</h2>
554
+
555
+ <hr class="thin" />
556
+
557
+ <ul class="unstyled">
558
+ <li class="icon-service-thrd">3D</li>
559
+ <li class="icon-service-dbox">DBOX</li>
560
+ </ul>
561
+ </div>
562
+ </li>
563
+ <li>
564
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=19:20" rel="nofollow">19:20</a>
565
+ <div class="tooltip-box performance">
566
+ <h2>Available screening types:</h2>
567
+
568
+ <hr class="thin" />
569
+
570
+ <ul class="unstyled">
571
+ <li class="icon-service-twod">2D</li>
572
+ </ul>
573
+ </div>
574
+ </li>
575
+ <li>
576
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140107&amp;time=20:20" rel="nofollow">20:20</a>
577
+ <div class="tooltip-box performance">
578
+ <h2>Available screening types:</h2>
579
+
580
+ <hr class="thin" />
581
+
582
+ <ul class="unstyled">
583
+ <li class="icon-service-thrd">3D</li>
584
+ <li class="icon-service-dbox">DBOX</li>
585
+ </ul>
586
+ </div>
587
+ </li>
588
+ </ol>
589
+ </div>
590
+ </div>
591
+ <div class="date row">
592
+ <div class="span2">
593
+ <h3>Wednesday 8th Jan</h3>
594
+ </div>
595
+
596
+ <div class="span7">
597
+ <ol class="performances">
598
+ <li>
599
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=12:00" rel="nofollow">12:00</a>
600
+ <div class="tooltip-box performance">
601
+ <h2>Available screening types:</h2>
602
+
603
+ <hr class="thin" />
604
+
605
+ <ul class="unstyled">
606
+ <li class="icon-service-twod">2D</li>
607
+ </ul>
608
+ </div>
609
+ </li>
610
+ <li>
611
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=13:00" rel="nofollow">13:00</a>
612
+ <div class="tooltip-box performance">
613
+ <h2>Available screening types:</h2>
614
+
615
+ <hr class="thin" />
616
+
617
+ <ul class="unstyled">
618
+ <li class="icon-service-thrd">3D</li>
619
+ <li class="icon-service-dbox">DBOX</li>
620
+ </ul>
621
+ </div>
622
+ </li>
623
+ <li>
624
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=15:40" rel="nofollow">15:40</a>
625
+ <div class="tooltip-box performance">
626
+ <h2>Available screening types:</h2>
627
+
628
+ <hr class="thin" />
629
+
630
+ <ul class="unstyled">
631
+ <li class="icon-service-twod">2D</li>
632
+ </ul>
633
+ </div>
634
+ </li>
635
+ <li>
636
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=16:40" rel="nofollow">16:40</a>
637
+ <div class="tooltip-box performance">
638
+ <h2>Available screening types:</h2>
639
+
640
+ <hr class="thin" />
641
+
642
+ <ul class="unstyled">
643
+ <li class="icon-service-thrd">3D</li>
644
+ <li class="icon-service-dbox">DBOX</li>
645
+ </ul>
646
+ </div>
647
+ </li>
648
+ <li>
649
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=19:20" rel="nofollow">19:20</a>
650
+ <div class="tooltip-box performance">
651
+ <h2>Available screening types:</h2>
652
+
653
+ <hr class="thin" />
654
+
655
+ <ul class="unstyled">
656
+ <li class="icon-service-twod">2D</li>
657
+ </ul>
658
+ </div>
659
+ </li>
660
+ <li>
661
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140108&amp;time=20:20" rel="nofollow">20:20</a>
662
+ <div class="tooltip-box performance">
663
+ <h2>Available screening types:</h2>
664
+
665
+ <hr class="thin" />
666
+
667
+ <ul class="unstyled">
668
+ <li class="icon-service-thrd">3D</li>
669
+ <li class="icon-service-dbox">DBOX</li>
670
+ </ul>
671
+ </div>
672
+ </li>
673
+ </ol>
674
+ </div>
675
+ </div>
676
+ <div class="date row">
677
+ <div class="span2">
678
+ <h3>Thursday 9th Jan</h3>
679
+ </div>
680
+
681
+ <div class="span7">
682
+ <ol class="performances">
683
+ <li>
684
+ <a class="tooltip performance action" title="12:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=12:00" rel="nofollow">12:00</a>
685
+ <div class="tooltip-box performance">
686
+ <h2>Available screening types:</h2>
687
+
688
+ <hr class="thin" />
689
+
690
+ <ul class="unstyled">
691
+ <li class="icon-service-twod">2D</li>
692
+ </ul>
693
+ </div>
694
+ </li>
695
+ <li>
696
+ <a class="tooltip performance action" title="13:00" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=13:00" rel="nofollow">13:00</a>
697
+ <div class="tooltip-box performance">
698
+ <h2>Available screening types:</h2>
699
+
700
+ <hr class="thin" />
701
+
702
+ <ul class="unstyled">
703
+ <li class="icon-service-thrd">3D</li>
704
+ <li class="icon-service-dbox">DBOX</li>
705
+ </ul>
706
+ </div>
707
+ </li>
708
+ <li>
709
+ <a class="tooltip performance action" title="15:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=15:40" rel="nofollow">15:40</a>
710
+ <div class="tooltip-box performance">
711
+ <h2>Available screening types:</h2>
712
+
713
+ <hr class="thin" />
714
+
715
+ <ul class="unstyled">
716
+ <li class="icon-service-twod">2D</li>
717
+ </ul>
718
+ </div>
719
+ </li>
720
+ <li>
721
+ <a class="tooltip performance action" title="16:40" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=16:40" rel="nofollow">16:40</a>
722
+ <div class="tooltip-box performance">
723
+ <h2>Available screening types:</h2>
724
+
725
+ <hr class="thin" />
726
+
727
+ <ul class="unstyled">
728
+ <li class="icon-service-thrd">3D</li>
729
+ <li class="icon-service-dbox">DBOX</li>
730
+ </ul>
731
+ </div>
732
+ </li>
733
+ <li>
734
+ <a class="tooltip performance action" title="19:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=19:20" rel="nofollow">19:20</a>
735
+ <div class="tooltip-box performance">
736
+ <h2>Available screening types:</h2>
737
+
738
+ <hr class="thin" />
739
+
740
+ <ul class="unstyled">
741
+ <li class="icon-service-twod">2D</li>
742
+ </ul>
743
+ </div>
744
+ </li>
745
+ <li>
746
+ <a class="tooltip performance action" title="20:20" href="/booking?cinema=79&amp;filmEdi=41971&amp;date=20140109&amp;time=20:20" rel="nofollow">20:20</a>
747
+ <div class="tooltip-box performance">
748
+ <h2>Available screening types:</h2>
749
+
750
+ <hr class="thin" />
751
+
752
+ <ul class="unstyled">
753
+ <li class="icon-service-thrd">3D</li>
754
+ <li class="icon-service-dbox">DBOX</li>
755
+ </ul>
756
+ </div>
757
+ </li>
758
+ </ol>
759
+ </div>
760
+ </div>
761
+
762
+ <a class="action secondary light" href="/whatson/6557?cinema=79&amp;date=all">View all dates</a>
763
+ </div>
764
+ </div>
@@ -190,6 +190,29 @@ describe CineworldUk::Internal::FilmWithScreeningsParser do
190
190
  subject['2D IMAX'].last[0].must_equal Time.utc(2013, 11, 28, 20, 40, 0)
191
191
  end
192
192
  end
193
+
194
+ describe 'passed valid film html with H(obbity)FR' do
195
+ let(:film_html) { read_film_html('the-o2-greenwich/the-hobbit-desolation-of-smaug') }
196
+
197
+ it 'returns the correct number of Times' do
198
+ subject.keys.sort.must_equal ['2D', '3D D-BOX', '3D HFR']
199
+ subject['2D'].count.must_equal 26
200
+ subject['3D HFR'].count.must_equal 1
201
+ subject['3D D-BOX'].count.must_equal 23
202
+ end
203
+
204
+ it 'returns Times in UTC' do
205
+ subject['2D'].first[0].must_equal Time.utc(2014, 1, 2, 16, 20, 0)
206
+ subject['2D'].last[0].must_equal Time.utc(2014, 1, 9, 19, 20, 0)
207
+
208
+ subject['3D HFR'].first[0].must_equal Time.utc(2014, 1, 2, 19, 20, 0)
209
+ subject['3D HFR'].last[0].must_equal Time.utc(2014, 1, 2, 19, 20, 0)
210
+
211
+ subject['3D D-BOX'].first[0].must_equal Time.utc(2014, 1, 2, 17, 0, 0)
212
+ subject['3D D-BOX'].last[0].must_equal Time.utc(2014, 1, 9, 20, 20, 0)
213
+ end
214
+ end
215
+
193
216
  end
194
217
 
195
218
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cineworld_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll
@@ -144,6 +144,7 @@ files:
144
144
  - test/fixtures/whatson/glasgow-imax-at-gsc/the-hunger-games-catching-fire.html
145
145
  - test/fixtures/whatson/the-o2-greenwich.html
146
146
  - test/fixtures/whatson/the-o2-greenwich/gravity.html
147
+ - test/fixtures/whatson/the-o2-greenwich/the-hobbit-desolation-of-smaug.html
147
148
  - test/fixtures/whatson/wandsworth.html
148
149
  - test/fixtures/whatson/wandsworth/arrambam-tamil.html
149
150
  - test/fixtures/whatson/wandsworth/bolshoi-ballet-live-lost-illusions.html
@@ -200,6 +201,7 @@ test_files:
200
201
  - test/fixtures/whatson/glasgow-imax-at-gsc/the-hunger-games-catching-fire.html
201
202
  - test/fixtures/whatson/the-o2-greenwich.html
202
203
  - test/fixtures/whatson/the-o2-greenwich/gravity.html
204
+ - test/fixtures/whatson/the-o2-greenwich/the-hobbit-desolation-of-smaug.html
203
205
  - test/fixtures/whatson/wandsworth.html
204
206
  - test/fixtures/whatson/wandsworth/arrambam-tamil.html
205
207
  - test/fixtures/whatson/wandsworth/bolshoi-ballet-live-lost-illusions.html
@@ -216,3 +218,4 @@ test_files:
216
218
  - test/lib/cineworld_uk/screening_test.rb
217
219
  - test/lib/cineworld_uk/version_test.rb
218
220
  - test/test_helper.rb
221
+ has_rdoc: