picturehouse_uk 3.0.4 → 3.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 +7 -0
- data/lib/picturehouse_uk/internal/parser/screenings.rb +4 -3
- data/lib/picturehouse_uk/version.rb +2 -2
- data/test/fixtures/cinema/Duke_Of_Yorks.html +1770 -763
- data/test/fixtures/cinema/Dukes_At_Komedia.html +1641 -1362
- data/test/fixtures/cinema/Phoenix_Picturehouse.html +2166 -1328
- data/test/fixtures/home.html +128 -62
- data/test/fixtures/info/Duke_Of_Yorks.html +104 -29
- data/test/fixtures/info/Dukes_At_Komedia.html +104 -27
- data/test/fixtures/info/Phoenix_Picturehouse.html +102 -26
- data/test/lib/picturehouse_uk/cinema_test.rb +2 -2
- data/test/lib/picturehouse_uk/internal/website_test.rb +1 -1
- data/test/lib/picturehouse_uk/screening_test.rb +1 -1
- 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: 48db81f62906361c68ef521dff2f9b4668b883f4
|
|
4
|
+
data.tar.gz: 43d45b30b4f1dd2185146ba160cd18c99afce899
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e13f651a48470f3383bc7a1802bae9c88cab312a5ee4b853a69849ff24dda87d9116073a373a53633a027a3c66e9fe1e605986706913021137a890a6cce183d
|
|
7
|
+
data.tar.gz: 5b8f043e26f6e76153002c9d66a37e0806afb26fd61c008bbd06d110f208eff3c02a056482f9cc492389076949b10735a4af1bf68febd1e9f167e9e3f2d09f5c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [3.0.5] - 2015-03-19
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
- tests for website class
|
|
8
|
+
- updated fixtures
|
|
9
|
+
- loosened parsers to allow for sold out performances
|
|
10
|
+
|
|
4
11
|
## [3.0.4] - 2015-02-17
|
|
5
12
|
|
|
6
13
|
### Fixed
|
|
@@ -9,7 +9,7 @@ module PicturehouseUk
|
|
|
9
9
|
LISTINGS = '#this-week .listings > li, #further-ahead .listings > li'
|
|
10
10
|
|
|
11
11
|
# parse the cinema page into an array of screenings attributes
|
|
12
|
-
# @return [Array<Hash>]
|
|
12
|
+
# @return [Array<Hash>]
|
|
13
13
|
def to_a
|
|
14
14
|
date = nil
|
|
15
15
|
doc.css(LISTINGS).each_with_object([]) do |node, result|
|
|
@@ -69,9 +69,10 @@ module PicturehouseUk
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# variants can have multiple screenings
|
|
72
73
|
class Variant < Struct.new(:node, :date)
|
|
73
|
-
SHOWTIMES = '
|
|
74
|
-
|
|
74
|
+
SHOWTIMES = '.btn'
|
|
75
|
+
VARIANT = '.film-type-desc'
|
|
75
76
|
|
|
76
77
|
def to_a
|
|
77
78
|
node.css(SHOWTIMES).map do |node|
|