lcbo 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/lcbo/pages/store_page.rb +53 -88
- data/lib/lcbo/version.rb +1 -1
- data/spec/pages/store_pages/1.html +433 -190
- data/spec/pages/store_pages/2.html +431 -189
- data/spec/pages/store_pages.yml +59 -34
- metadata +10 -10
data/spec/pages/store_pages.yml
CHANGED
@@ -7,7 +7,19 @@
|
|
7
7
|
:expectation:
|
8
8
|
:id: 444
|
9
9
|
:name: Kennedy & Sheppard
|
10
|
-
:tags:
|
10
|
+
:tags:
|
11
|
+
- kennedy
|
12
|
+
- sheppard
|
13
|
+
- '2356'
|
14
|
+
- road
|
15
|
+
- agincourt
|
16
|
+
- mall
|
17
|
+
- toronto
|
18
|
+
- scarborough
|
19
|
+
- toronto-scarborough
|
20
|
+
- torontoscarborough
|
21
|
+
- m1t
|
22
|
+
- 3h1
|
11
23
|
:address_line_1: 2356 Kennedy Road
|
12
24
|
:address_line_2: Agincourt Mall
|
13
25
|
:city: Toronto-Scarborough
|
@@ -16,8 +28,20 @@
|
|
16
28
|
:fax: (416) 291-0246
|
17
29
|
:latitude: 43.7838
|
18
30
|
:longitude: -79.2902
|
19
|
-
:
|
20
|
-
:
|
31
|
+
:sunday_open: 1440
|
32
|
+
:sunday_close: 1020
|
33
|
+
:monday_open: 600
|
34
|
+
:monday_close: 1320
|
35
|
+
:tuesday_open: 600
|
36
|
+
:tuesday_close: 1320
|
37
|
+
:wednesday_open: 600
|
38
|
+
:wednesday_close: 1320
|
39
|
+
:thursday_open: 600
|
40
|
+
:thursday_close: 1320
|
41
|
+
:friday_open: 600
|
42
|
+
:friday_close: 1320
|
43
|
+
:saturday_open: 600
|
44
|
+
:saturday_close: 1320
|
21
45
|
:has_wheelchair_accessability: true
|
22
46
|
:has_bilingual_services: false
|
23
47
|
:has_product_consultant: true
|
@@ -25,20 +49,8 @@
|
|
25
49
|
:has_beer_cold_room: false
|
26
50
|
:has_special_occasion_permits: true
|
27
51
|
:has_vintages_corner: true
|
28
|
-
:
|
29
|
-
:
|
30
|
-
:tuesday_open: 570
|
31
|
-
:tuesday_close: 1320
|
32
|
-
:wednesday_open: 570
|
33
|
-
:wednesday_close: 1320
|
34
|
-
:thursday_open: 570
|
35
|
-
:thursday_close: 1320
|
36
|
-
:friday_open: 570
|
37
|
-
:friday_close: 1320
|
38
|
-
:saturday_open: 570
|
39
|
-
:saturday_close: 1320
|
40
|
-
:sunday_open: 720
|
41
|
-
:sunday_close: 1020
|
52
|
+
:has_parking: true
|
53
|
+
:has_transit_access: true
|
42
54
|
- :file: 2.html
|
43
55
|
:desc: Store that is not open on some days
|
44
56
|
:uri: http://www.lcbo.com/lcbo-ear/jsp/storeinfo.jsp?STORE=610&language=EN
|
@@ -47,30 +59,43 @@
|
|
47
59
|
:id: 610
|
48
60
|
:expectation:
|
49
61
|
:id: 610
|
50
|
-
:monday_open:
|
51
|
-
:monday_close:
|
52
|
-
:tuesday_open: 570
|
53
|
-
:tuesday_close: 1080
|
54
|
-
:wednesday_open: 570
|
55
|
-
:wednesday_close: 1080
|
56
|
-
:thursday_open: 570
|
57
|
-
:thursday_close: 1080
|
58
|
-
:friday_open: 570
|
59
|
-
:friday_close: 1080
|
60
|
-
:saturday_open: 570
|
61
|
-
:saturday_close: 1080
|
62
|
-
:sunday_open:
|
63
|
-
:sunday_close:
|
64
62
|
:name: Industrial Road & Clinton Street
|
65
|
-
:tags:
|
66
|
-
|
67
|
-
|
63
|
+
:tags:
|
64
|
+
- industrial
|
65
|
+
- road
|
66
|
+
- clinton
|
67
|
+
- street
|
68
|
+
- '1'
|
69
|
+
- unit
|
70
|
+
- b
|
71
|
+
- po
|
72
|
+
- box
|
73
|
+
- '239'
|
74
|
+
- teeswater
|
75
|
+
- n0g
|
76
|
+
- 2s0
|
77
|
+
:address_line_1: 1 Industrial Road, Unit B
|
78
|
+
:address_line_2: P.O. Box 239
|
68
79
|
:city: Teeswater
|
69
80
|
:postal_code: N0G 2S0
|
70
81
|
:telephone: (519) 392-6837
|
71
82
|
:fax: (519) 392-8481
|
72
83
|
:latitude: 44.0017
|
73
84
|
:longitude: -81.2876
|
85
|
+
:sunday_open:
|
86
|
+
:sunday_close:
|
87
|
+
:monday_open:
|
88
|
+
:monday_close:
|
89
|
+
:tuesday_open: 600
|
90
|
+
:tuesday_close: 1080
|
91
|
+
:wednesday_open: 600
|
92
|
+
:wednesday_close: 1080
|
93
|
+
:thursday_open: 600
|
94
|
+
:thursday_close: 1080
|
95
|
+
:friday_open: 600
|
96
|
+
:friday_close: 1080
|
97
|
+
:saturday_open: 600
|
98
|
+
:saturday_close: 1080
|
74
99
|
:has_wheelchair_accessability: true
|
75
100
|
:has_bilingual_services: false
|
76
101
|
:has_product_consultant: false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lcbo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
16
|
-
requirement: &
|
16
|
+
requirement: &70113831282440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70113831282440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: nokogiri
|
27
|
-
requirement: &
|
27
|
+
requirement: &70113831281760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.5.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70113831281760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: unicode_utils
|
38
|
-
requirement: &
|
38
|
+
requirement: &70113831280960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.2.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70113831280960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: stringex
|
49
|
-
requirement: &
|
49
|
+
requirement: &70113831280180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.3.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70113831280180
|
58
58
|
description: Request and parse product, store, inventory, and product search pages
|
59
59
|
directly from the official LCBO website.
|
60
60
|
email:
|