picturehouse_uk 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +1 -0
- data/lib/picturehouse_uk/cinema.rb +113 -3
- data/lib/picturehouse_uk/screening.rb +10 -4
- data/lib/picturehouse_uk/version.rb +2 -2
- data/test/fixtures/abbeygate-contact-us.html +1026 -0
- data/test/fixtures/dukes-at-komedia-contact-us.html +1019 -0
- data/test/fixtures/hackney-contact-us.html +998 -0
- data/test/lib/picturehouse_uk/cinema_test.rb +266 -0
- data/test/lib/picturehouse_uk/screening_test.rb +13 -4
- metadata +29 -23
@@ -61,6 +61,114 @@ describe PicturehouseUk::Cinema do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe '#adr' do
|
65
|
+
subject { cinema.adr }
|
66
|
+
|
67
|
+
describe '(abbeygate)' do
|
68
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
69
|
+
|
70
|
+
before do
|
71
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
72
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'returns a Hash' do
|
76
|
+
subject.must_be_instance_of Hash
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'returns address hash' do
|
80
|
+
subject.must_equal({
|
81
|
+
:street_address=>"4 Hatter Street",
|
82
|
+
:extended_address=>nil,
|
83
|
+
:locality=>"Bury St Edmunds",
|
84
|
+
:postal_code=>"IP33 1NE",
|
85
|
+
:country=>"United Kingdom"
|
86
|
+
})
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe '(hackney)' do
|
91
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Hackney_Picturehouse', 'Hackney Picturehouse', '/cinema/Hackney_Picturehouse/') }
|
92
|
+
|
93
|
+
before do
|
94
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'hackney-contact-us.html') )
|
95
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Hackney_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
96
|
+
end
|
97
|
+
|
98
|
+
it 'returns address hash' do
|
99
|
+
subject.must_equal({
|
100
|
+
:street_address=>"270 Mare Street",
|
101
|
+
:extended_address=>nil,
|
102
|
+
:locality=>"London",
|
103
|
+
:postal_code=>"E8 1HE",
|
104
|
+
:country=>"United Kingdom"
|
105
|
+
})
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
describe '(komedia)' do
|
110
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
111
|
+
|
112
|
+
before do
|
113
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
114
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
115
|
+
end
|
116
|
+
|
117
|
+
it 'returns address hash' do
|
118
|
+
subject.must_equal({
|
119
|
+
:street_address=>"44-47 Gardner Street",
|
120
|
+
:extended_address=>"North Laine",
|
121
|
+
:locality=>"Brighton",
|
122
|
+
:postal_code=>"BN1 1UN",
|
123
|
+
:country=>"United Kingdom"
|
124
|
+
})
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
describe '#extended_address' do
|
130
|
+
subject { cinema.extended_address }
|
131
|
+
|
132
|
+
describe '(abbeygate)' do
|
133
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
134
|
+
|
135
|
+
before do
|
136
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
137
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
138
|
+
end
|
139
|
+
|
140
|
+
it 'returns nil when no second line' do
|
141
|
+
subject.must_be_nil
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe '(hackney)' do
|
146
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Hackney_Picturehouse', 'Hackney Picturehouse', '/cinema/Hackney_Picturehouse/') }
|
147
|
+
|
148
|
+
before do
|
149
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'hackney-contact-us.html') )
|
150
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Hackney_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
151
|
+
end
|
152
|
+
|
153
|
+
it 'returns nil when no second line' do
|
154
|
+
subject.must_be_nil
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
describe '(komedia)' do
|
159
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
160
|
+
|
161
|
+
before do
|
162
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
163
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
164
|
+
end
|
165
|
+
|
166
|
+
it 'returns the second line of the address' do
|
167
|
+
subject.must_equal 'North Laine'
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
64
172
|
describe '#films' do
|
65
173
|
let(:cinema) { PicturehouseUk::Cinema.new 'Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/' }
|
66
174
|
subject { cinema.films }
|
@@ -95,6 +203,122 @@ describe PicturehouseUk::Cinema do
|
|
95
203
|
end
|
96
204
|
end
|
97
205
|
|
206
|
+
describe '#full_name' do
|
207
|
+
subject { cinema.full_name }
|
208
|
+
|
209
|
+
describe '(abbeygate)' do
|
210
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
211
|
+
|
212
|
+
before do
|
213
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
214
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
215
|
+
end
|
216
|
+
|
217
|
+
it 'returns the cinema name' do
|
218
|
+
subject.must_equal 'Abbeygate Picturehouse'
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
describe '(komedia)' do
|
223
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
224
|
+
|
225
|
+
before do
|
226
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
227
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
228
|
+
end
|
229
|
+
|
230
|
+
it 'returns the cinema name' do
|
231
|
+
subject.must_equal "Duke's At Komedia"
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
describe '#locality' do
|
237
|
+
subject { cinema.locality }
|
238
|
+
|
239
|
+
describe '(abbeygate)' do
|
240
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
241
|
+
|
242
|
+
before do
|
243
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
244
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
245
|
+
end
|
246
|
+
|
247
|
+
it 'returns the town' do
|
248
|
+
subject.must_equal 'Bury St Edmunds'
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
describe '(hackney)' do
|
253
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Hackney_Picturehouse', 'Hackney Picturehouse', '/cinema/Hackney_Picturehouse/') }
|
254
|
+
|
255
|
+
before do
|
256
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'hackney-contact-us.html') )
|
257
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Hackney_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
258
|
+
end
|
259
|
+
|
260
|
+
it 'returns the town' do
|
261
|
+
subject.must_equal 'London'
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
describe '(komedia)' do
|
266
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
267
|
+
|
268
|
+
before do
|
269
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
270
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
271
|
+
end
|
272
|
+
|
273
|
+
it 'returns the town' do
|
274
|
+
subject.must_equal 'Brighton'
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
describe '#postal_code' do
|
280
|
+
subject { cinema.postal_code }
|
281
|
+
|
282
|
+
describe '(abbeygate)' do
|
283
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
284
|
+
|
285
|
+
before do
|
286
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
287
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
288
|
+
end
|
289
|
+
|
290
|
+
it 'returns the post code' do
|
291
|
+
subject.must_equal 'IP33 1NE'
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
describe '(hackney)' do
|
296
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Hackney_Picturehouse', 'Hackney Picturehouse', '/cinema/Hackney_Picturehouse/') }
|
297
|
+
|
298
|
+
before do
|
299
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'hackney-contact-us.html') )
|
300
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Hackney_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
301
|
+
end
|
302
|
+
|
303
|
+
it 'returns the post code' do
|
304
|
+
subject.must_equal 'E8 1HE'
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
describe '(komedia)' do
|
309
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
310
|
+
|
311
|
+
before do
|
312
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
313
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
314
|
+
end
|
315
|
+
|
316
|
+
it 'returns the post code' do
|
317
|
+
subject.must_equal 'BN1 1UN'
|
318
|
+
end
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
98
322
|
describe '#screenings' do
|
99
323
|
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
100
324
|
subject { cinema.screenings }
|
@@ -126,4 +350,46 @@ describe PicturehouseUk::Cinema do
|
|
126
350
|
end
|
127
351
|
end
|
128
352
|
|
353
|
+
describe '#street_address' do
|
354
|
+
subject { cinema.street_address }
|
355
|
+
|
356
|
+
describe '(abbeygate)' do
|
357
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Abbeygate_Picturehouse', 'Abbeygate Picturehouse', '/cinema/Abbeygate_Picturehouse/') }
|
358
|
+
|
359
|
+
before do
|
360
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'abbeygate-contact-us.html') )
|
361
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
362
|
+
end
|
363
|
+
|
364
|
+
it 'returns the street address' do
|
365
|
+
subject.must_equal '4 Hatter Street'
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
describe '(hackney)' do
|
370
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Hackney_Picturehouse', 'Hackney Picturehouse', '/cinema/Hackney_Picturehouse/') }
|
371
|
+
|
372
|
+
before do
|
373
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'hackney-contact-us.html') )
|
374
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Hackney_Picturehouse/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
375
|
+
end
|
376
|
+
|
377
|
+
it 'returns the street address' do
|
378
|
+
subject.must_equal '270 Mare Street'
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
describe '(komedia)' do
|
383
|
+
let(:cinema) { PicturehouseUk::Cinema.new('Dukes_At_Komedia', "Duke's At Komedia", '/cinema/Dukes_At_Komedia/') }
|
384
|
+
|
385
|
+
before do
|
386
|
+
body = File.read( File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'dukes-at-komedia-contact-us.html') )
|
387
|
+
stub_request(:get, 'http://www.picturehouses.co.uk/cinema/Dukes_At_Komedia/Hires_Info/Contact_Us/').to_return( status: 200, body: body, headers: {} )
|
388
|
+
end
|
389
|
+
|
390
|
+
it 'returns the street address' do
|
391
|
+
subject.must_equal '44-47 Gardner Street'
|
392
|
+
end
|
393
|
+
end
|
394
|
+
end
|
129
395
|
end
|
@@ -4,21 +4,21 @@ describe PicturehouseUk::Screening do
|
|
4
4
|
|
5
5
|
before { WebMock.disable_net_connect! }
|
6
6
|
|
7
|
-
describe '#new film_name, cinema_name, date, time,
|
7
|
+
describe '#new film_name, cinema_name, date, time, variant' do
|
8
8
|
it 'stores film_name, cinema_name & when (in UTC)' do
|
9
9
|
screening = PicturehouseUk::Screening.new 'Iron Man 3', "Duke's At Komedia", Time.parse('2013-09-12 11:00')
|
10
10
|
screening.film_name.must_equal 'Iron Man 3'
|
11
11
|
screening.cinema_name.must_equal "Duke's At Komedia"
|
12
12
|
screening.when.must_equal Time.utc(2013, 9, 12, 10, 0)
|
13
|
-
screening.
|
13
|
+
screening.variant.must_equal nil
|
14
14
|
end
|
15
15
|
|
16
|
-
it 'stores
|
16
|
+
it 'stores variant if passed' do
|
17
17
|
screening = PicturehouseUk::Screening.new 'Iron Man 3', "Duke's At Komedia", Time.utc(2013, 9, 12, 11, 0), 'baby'
|
18
18
|
screening.film_name.must_equal 'Iron Man 3'
|
19
19
|
screening.cinema_name.must_equal "Duke's At Komedia"
|
20
20
|
screening.when.must_equal Time.utc(2013, 9, 12, 11, 0)
|
21
|
-
screening.
|
21
|
+
screening.variant.must_equal 'baby'
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -29,4 +29,13 @@ describe PicturehouseUk::Screening do
|
|
29
29
|
subject.must_equal Date.new(2013, 9, 12)
|
30
30
|
end
|
31
31
|
end
|
32
|
+
|
33
|
+
describe '#varient (DEPRECATED)' do
|
34
|
+
subject { screening.varient }
|
35
|
+
let(:screening) { PicturehouseUk::Screening.new('Iron Man 3', "Duke's At Komedia", Time.utc(2013, 9, 12, 11, 0), '3d') }
|
36
|
+
|
37
|
+
it 'should return variant' do
|
38
|
+
subject.must_equal '3d'
|
39
|
+
end
|
40
|
+
end
|
32
41
|
end
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picturehouse_uk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Croll
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: webmock
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: httparty
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: tzinfo
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: tzinfo-data
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: An API to pull movie information from the picturehouse.co.uk website
|
@@ -115,10 +115,10 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
-
- .gitignore
|
119
|
-
- .rdoc_options
|
120
|
-
- .travis.yml
|
121
|
-
- .yardopts
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rdoc_options"
|
120
|
+
- ".travis.yml"
|
121
|
+
- ".yardopts"
|
122
122
|
- Gemfile
|
123
123
|
- LICENSE.txt
|
124
124
|
- README.md
|
@@ -130,7 +130,9 @@ files:
|
|
130
130
|
- lib/picturehouse_uk/screening.rb
|
131
131
|
- lib/picturehouse_uk/version.rb
|
132
132
|
- picturehouse_uk.gemspec
|
133
|
+
- test/fixtures/abbeygate-contact-us.html
|
133
134
|
- test/fixtures/dukes-at-komedia-cinema.html
|
135
|
+
- test/fixtures/dukes-at-komedia-contact-us.html
|
134
136
|
- test/fixtures/film_node/blue-jasmine-done.html
|
135
137
|
- test/fixtures/film_node/blue-jasmine-future.html
|
136
138
|
- test/fixtures/film_node/bolshoi-spartacus.html
|
@@ -144,6 +146,7 @@ files:
|
|
144
146
|
- test/fixtures/film_node/rsc-encore-richard-ii.html
|
145
147
|
- test/fixtures/film_node/rsc-live-richard-ii.html
|
146
148
|
- test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html
|
149
|
+
- test/fixtures/hackney-contact-us.html
|
147
150
|
- test/fixtures/picturehouses-homepage.html
|
148
151
|
- test/lib/picturehouse_uk/cinema_test.rb
|
149
152
|
- test/lib/picturehouse_uk/film_test.rb
|
@@ -161,22 +164,24 @@ require_paths:
|
|
161
164
|
- lib
|
162
165
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
166
|
requirements:
|
164
|
-
- -
|
167
|
+
- - ">="
|
165
168
|
- !ruby/object:Gem::Version
|
166
169
|
version: '0'
|
167
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
171
|
requirements:
|
169
|
-
- -
|
172
|
+
- - ">="
|
170
173
|
- !ruby/object:Gem::Version
|
171
174
|
version: '0'
|
172
175
|
requirements: []
|
173
176
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.2.0
|
175
178
|
signing_key:
|
176
179
|
specification_version: 4
|
177
180
|
summary: It's a scraper, but a nice one
|
178
181
|
test_files:
|
182
|
+
- test/fixtures/abbeygate-contact-us.html
|
179
183
|
- test/fixtures/dukes-at-komedia-cinema.html
|
184
|
+
- test/fixtures/dukes-at-komedia-contact-us.html
|
180
185
|
- test/fixtures/film_node/blue-jasmine-done.html
|
181
186
|
- test/fixtures/film_node/blue-jasmine-future.html
|
182
187
|
- test/fixtures/film_node/bolshoi-spartacus.html
|
@@ -190,6 +195,7 @@ test_files:
|
|
190
195
|
- test/fixtures/film_node/rsc-encore-richard-ii.html
|
191
196
|
- test/fixtures/film_node/rsc-live-richard-ii.html
|
192
197
|
- test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html
|
198
|
+
- test/fixtures/hackney-contact-us.html
|
193
199
|
- test/fixtures/picturehouses-homepage.html
|
194
200
|
- test/lib/picturehouse_uk/cinema_test.rb
|
195
201
|
- test/lib/picturehouse_uk/film_test.rb
|