booking_locations 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c789914f44c7cd1bd28c7c29eaffbb3bf50b2811
4
- data.tar.gz: c4604c3cce0fff0062021787441454d2a6781063
3
+ metadata.gz: e21d6d7dd8d0605ce1cc161bfdf356941e871a13
4
+ data.tar.gz: 45a994f2f0d82f1a3abe32abae0a29a5a8e4f2f9
5
5
  SHA512:
6
- metadata.gz: 802847e45f23997efc0edd91a9377bd9555a9a80f2ed34b055c485439a9f5a18bfbf801ac43764ebe87669c737b4d61262c70c83530776555c155e2611cd96d5
7
- data.tar.gz: f19ef07e6bed5e629531ae04241f30a5048d35aa9ed3a6b4f061685fb812255c7bd51665d513d586313fd5de153e0cce0304e3ad544e54139091e95e4bf52ada
6
+ metadata.gz: 63ad6eab0cb8304dea688ceb4b2bb612b56e90854f3a335c699fa14a0b2d04c28936e86dd565e4d5079826f1f7ff2a1d9f288422e8d36dc5baf3ad9309c10384
7
+ data.tar.gz: 6659630aba73ba48afe4aa529401079c1fd36b6d78e9a4b7b0569083a4cfeacb71c0786f940349a788b58d95894680543ea017dfb4cbdf893a77c3f6f0ef12d7
data/.travis.yml CHANGED
@@ -3,3 +3,6 @@ language: ruby
3
3
  rvm:
4
4
  - 2.3.1
5
5
  before_install: gem install bundler -v 1.12.5
6
+ notifications:
7
+ slack:
8
+ secure: YyIkkmNX3lE0O6kf+ccXclTFO2WLT279rHlZNNkLy4JcZ2BhAmAvWBxB449JIwPEayx9/2Fd/I9g2djpj9kzNj+L1CZXuUXrNZ3j2vOT+8OMnPhxIRBJmFCm4+WDWlGBMcOG4WXu5MJtkiCHmfZYLWju79pCX/1KgasLT1t/OPQ9UfnoOOM96jfmFMzb9w5fE4O9njVekNgVWxouzvZDr9+PZad27Wl/5GWFGLixxT8MBVyMUsH68Tb03biM5heE1kL6+kIXGxwNCem1JgR8/YUjqW6t2/pvuWbMXFu1yAWHhFnFaKBHfcoA9eAMNLfxF37hUlSWdB8hESAPF9eoPbYEXnFA0O7EhJV/e/TIO6J7T+USCUbnndDBwh2tLPAjpwwFjm0I6PhlfTGWbUrR9ArvjQLMfv40rV0Z1jAbrWGFwPgc6n76OkS6d+4mkIzBJUX1LjRx0Cdgz+cq7USIcNbuqP+5PTkw+c075lL2CMwrNRamU1yPnCZQ4haXrPjBfr/UrLmg3/4Og8ohQC6A4kG8FUV0wBozXAaNVmcdYIvtDCVLIwg8FryrIuNstpmI7P2IajXCehDkOIueYZvv+DVpm8LkUsSeZuqyPK2hRa8oNRvSZh2I+7IARQNfPuDFDIyKchmHwhOC1OouUR0ZF7gxydTQ3eYGKqrXQR87P/8=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.0
2
+
3
+ * Add stubbed responses for Taunton and children
4
+
1
5
  ## 0.6.1
2
6
 
3
7
  * Replace our own null cache with Rails' `NullStore`
@@ -1,345 +1,696 @@
1
- {
2
- "uid": "ac7112c3-e3cf-45cd-a8ff-9ba827b8e7ef",
3
- "name": "Hackney",
4
- "address": "300 Mare St, HACKNEY, London, E8 1HE",
5
- "online_booking_twilio_number": "+443344556677",
6
- "locations": [
7
- {
8
- "uid": "183080c6-642b-4b8f-96fd-891f5cd9f9c7",
9
- "name": "Dalston",
10
- "address": "22 Dalston Lane, Hackney, London, E8 3AZ",
11
- "online_booking_twilio_number": ""
12
- },
13
- {
14
- "uid": "1a1ad00f-d967-448a-a4a6-772369fa5087",
15
- "name": "Tower Hamlets",
16
- "address": "32 Greatorex Street, TOWER HAMLETS, London, E1 5NP",
17
- "online_booking_twilio_number": ""
18
- },
19
- {
20
- "uid": "c165d25e-f27b-4ce9-b3d3-e7415ebaa93c",
21
- "name": "Haringey",
22
- "address": "551B Tottenham High Road, HARINGEY, London, N17 6SB"
23
- },
24
- {
25
- "uid": "a77a031a-8037-4510-b1f7-63d4aab7b103",
26
- "name": "Waltham Forest",
27
- "address": "220 Hoe Street, Walthamstow, London, E17 3AY",
28
- "online_booking_twilio_number": ""
29
- }
30
- ],
31
- "guiders": [
32
- {
33
- "id": 1,
34
- "name": "Ben Lovell",
35
- "email": "ben@example.com"
36
- },
37
- {
38
- "id": 2,
39
- "name": "Jenny Smith",
40
- "email": "jenny@example.com"
41
- },
42
- {
43
- "id": 3,
44
- "name": "Bob Johnson",
45
- "email": "bob@example.com"
46
- },
47
- {
48
- "id": 4,
49
- "name": "Janice Jones",
50
- "email": "janice@example.com"
51
- }
52
- ],
53
- "slots": [
54
- {
55
- "date": "2016-06-20",
56
- "start": "0900",
57
- "end": "1300"
58
- },
59
- {
60
- "date": "2016-06-20",
61
- "start": "1300",
62
- "end": "1700"
63
- },
64
- {
65
- "date": "2016-06-21",
66
- "start": "0900",
67
- "end": "1300"
68
- },
69
- {
70
- "date": "2016-06-21",
71
- "start": "1300",
72
- "end": "1700"
73
- },
74
- {
75
- "date": "2016-06-22",
76
- "start": "0900",
77
- "end": "1300"
78
- },
79
- {
80
- "date": "2016-06-22",
81
- "start": "1300",
82
- "end": "1700"
83
- },
84
- {
85
- "date": "2016-06-23",
86
- "start": "0900",
87
- "end": "1300"
88
- },
89
- {
90
- "date": "2016-06-23",
91
- "start": "1300",
92
- "end": "1700"
93
- },
94
- {
95
- "date": "2016-06-24",
96
- "start": "0900",
97
- "end": "1300"
98
- },
99
- {
100
- "date": "2016-06-24",
101
- "start": "1300",
102
- "end": "1700"
103
- },
104
- {
105
- "date": "2016-06-27",
106
- "start": "0900",
107
- "end": "1300"
108
- },
109
- {
110
- "date": "2016-06-27",
111
- "start": "1300",
112
- "end": "1700"
113
- },
114
- {
115
- "date": "2016-06-28",
116
- "start": "0900",
117
- "end": "1300"
118
- },
119
- {
120
- "date": "2016-06-28",
121
- "start": "1300",
122
- "end": "1700"
123
- },
124
- {
125
- "date": "2016-06-29",
126
- "start": "0900",
127
- "end": "1300"
128
- },
129
- {
130
- "date": "2016-06-29",
131
- "start": "1300",
132
- "end": "1700"
133
- },
134
- {
135
- "date": "2016-06-30",
136
- "start": "0900",
137
- "end": "1300"
138
- },
139
- {
140
- "date": "2016-06-30",
141
- "start": "1300",
142
- "end": "1700"
143
- },
144
- {
145
- "date": "2016-07-01",
146
- "start": "0900",
147
- "end": "1300"
148
- },
149
- {
150
- "date": "2016-07-01",
151
- "start": "1300",
152
- "end": "1700"
153
- },
154
- {
155
- "date": "2016-07-04",
156
- "start": "0900",
157
- "end": "1300"
158
- },
159
- {
160
- "date": "2016-07-04",
161
- "start": "1300",
162
- "end": "1700"
163
- },
164
- {
165
- "date": "2016-07-05",
166
- "start": "0900",
167
- "end": "1300"
168
- },
169
- {
170
- "date": "2016-07-05",
171
- "start": "1300",
172
- "end": "1700"
173
- },
174
- {
175
- "date": "2016-07-06",
176
- "start": "0900",
177
- "end": "1300"
178
- },
179
- {
180
- "date": "2016-07-06",
181
- "start": "1300",
182
- "end": "1700"
183
- },
184
- {
185
- "date": "2016-07-07",
186
- "start": "0900",
187
- "end": "1300"
188
- },
189
- {
190
- "date": "2016-07-07",
191
- "start": "1300",
192
- "end": "1700"
193
- },
194
- {
195
- "date": "2016-07-08",
196
- "start": "0900",
197
- "end": "1300"
198
- },
199
- {
200
- "date": "2016-07-08",
201
- "start": "1300",
202
- "end": "1700"
203
- },
204
- {
205
- "date": "2016-07-11",
206
- "start": "0900",
207
- "end": "1300"
208
- },
209
- {
210
- "date": "2016-07-11",
211
- "start": "1300",
212
- "end": "1700"
213
- },
214
- {
215
- "date": "2016-07-12",
216
- "start": "0900",
217
- "end": "1300"
218
- },
219
- {
220
- "date": "2016-07-12",
221
- "start": "1300",
222
- "end": "1700"
223
- },
224
- {
225
- "date": "2016-07-13",
226
- "start": "0900",
227
- "end": "1300"
228
- },
229
- {
230
- "date": "2016-07-13",
231
- "start": "1300",
232
- "end": "1700"
233
- },
234
- {
235
- "date": "2016-07-14",
236
- "start": "0900",
237
- "end": "1300"
238
- },
239
- {
240
- "date": "2016-07-14",
241
- "start": "1300",
242
- "end": "1700"
243
- },
244
- {
245
- "date": "2016-07-15",
246
- "start": "0900",
247
- "end": "1300"
248
- },
249
- {
250
- "date": "2016-07-15",
251
- "start": "1300",
252
- "end": "1700"
253
- },
254
- {
255
- "date": "2016-07-18",
256
- "start": "0900",
257
- "end": "1300"
258
- },
259
- {
260
- "date": "2016-07-18",
261
- "start": "1300",
262
- "end": "1700"
263
- },
264
- {
265
- "date": "2016-07-19",
266
- "start": "0900",
267
- "end": "1300"
268
- },
269
- {
270
- "date": "2016-07-19",
271
- "start": "1300",
272
- "end": "1700"
273
- },
274
- {
275
- "date": "2016-07-20",
276
- "start": "0900",
277
- "end": "1300"
278
- },
279
- {
280
- "date": "2016-07-20",
281
- "start": "1300",
282
- "end": "1700"
283
- },
284
- {
285
- "date": "2016-07-21",
286
- "start": "0900",
287
- "end": "1300"
288
- },
289
- {
290
- "date": "2016-07-21",
291
- "start": "1300",
292
- "end": "1700"
293
- },
294
- {
295
- "date": "2016-07-22",
296
- "start": "0900",
297
- "end": "1300"
298
- },
299
- {
300
- "date": "2016-07-22",
301
- "start": "1300",
302
- "end": "1700"
303
- },
304
- {
305
- "date": "2016-07-25",
306
- "start": "0900",
307
- "end": "1300"
308
- },
309
- {
310
- "date": "2016-07-25",
311
- "start": "1300",
312
- "end": "1700"
313
- },
314
- {
315
- "date": "2016-07-26",
316
- "start": "0900",
317
- "end": "1300"
318
- },
319
- {
320
- "date": "2016-07-26",
321
- "start": "1300",
322
- "end": "1700"
323
- },
324
- {
325
- "date": "2016-07-27",
326
- "start": "0900",
327
- "end": "1300"
328
- },
329
- {
330
- "date": "2016-07-27",
331
- "start": "1300",
332
- "end": "1700"
333
- },
334
- {
335
- "date": "2016-07-28",
336
- "start": "0900",
337
- "end": "1300"
338
- },
339
- {
340
- "date": "2016-07-28",
341
- "start": "1300",
342
- "end": "1700"
343
- }
344
- ]
345
- }
1
+ [
2
+ {
3
+ "uid": "ac7112c3-e3cf-45cd-a8ff-9ba827b8e7ef",
4
+ "name": "Hackney",
5
+ "address": "300 Mare St, HACKNEY, London, E8 1HE",
6
+ "online_booking_twilio_number": "+443344556677",
7
+ "locations": [
8
+ {
9
+ "uid": "183080c6-642b-4b8f-96fd-891f5cd9f9c7",
10
+ "name": "Dalston",
11
+ "address": "22 Dalston Lane, Hackney, London, E8 3AZ",
12
+ "online_booking_twilio_number": ""
13
+ },
14
+ {
15
+ "uid": "1a1ad00f-d967-448a-a4a6-772369fa5087",
16
+ "name": "Tower Hamlets",
17
+ "address": "32 Greatorex Street, TOWER HAMLETS, London, E1 5NP",
18
+ "online_booking_twilio_number": ""
19
+ },
20
+ {
21
+ "uid": "c165d25e-f27b-4ce9-b3d3-e7415ebaa93c",
22
+ "name": "Haringey",
23
+ "address": "551B Tottenham High Road, HARINGEY, London, N17 6SB"
24
+ },
25
+ {
26
+ "uid": "a77a031a-8037-4510-b1f7-63d4aab7b103",
27
+ "name": "Waltham Forest",
28
+ "address": "220 Hoe Street, Walthamstow, London, E17 3AY",
29
+ "online_booking_twilio_number": ""
30
+ }
31
+ ],
32
+ "guiders": [
33
+ {
34
+ "id": 1,
35
+ "name": "Ben Lovell",
36
+ "email": "ben@example.com"
37
+ },
38
+ {
39
+ "id": 2,
40
+ "name": "Jenny Smith",
41
+ "email": "jenny@example.com"
42
+ },
43
+ {
44
+ "id": 3,
45
+ "name": "Bob Johnson",
46
+ "email": "bob@example.com"
47
+ },
48
+ {
49
+ "id": 4,
50
+ "name": "Janice Jones",
51
+ "email": "janice@example.com"
52
+ }
53
+ ],
54
+ "slots": [
55
+ {
56
+ "date": "2016-06-20",
57
+ "start": "0900",
58
+ "end": "1300"
59
+ },
60
+ {
61
+ "date": "2016-06-20",
62
+ "start": "1300",
63
+ "end": "1700"
64
+ },
65
+ {
66
+ "date": "2016-06-21",
67
+ "start": "0900",
68
+ "end": "1300"
69
+ },
70
+ {
71
+ "date": "2016-06-21",
72
+ "start": "1300",
73
+ "end": "1700"
74
+ },
75
+ {
76
+ "date": "2016-06-22",
77
+ "start": "0900",
78
+ "end": "1300"
79
+ },
80
+ {
81
+ "date": "2016-06-22",
82
+ "start": "1300",
83
+ "end": "1700"
84
+ },
85
+ {
86
+ "date": "2016-06-23",
87
+ "start": "0900",
88
+ "end": "1300"
89
+ },
90
+ {
91
+ "date": "2016-06-23",
92
+ "start": "1300",
93
+ "end": "1700"
94
+ },
95
+ {
96
+ "date": "2016-06-24",
97
+ "start": "0900",
98
+ "end": "1300"
99
+ },
100
+ {
101
+ "date": "2016-06-24",
102
+ "start": "1300",
103
+ "end": "1700"
104
+ },
105
+ {
106
+ "date": "2016-06-27",
107
+ "start": "0900",
108
+ "end": "1300"
109
+ },
110
+ {
111
+ "date": "2016-06-27",
112
+ "start": "1300",
113
+ "end": "1700"
114
+ },
115
+ {
116
+ "date": "2016-06-28",
117
+ "start": "0900",
118
+ "end": "1300"
119
+ },
120
+ {
121
+ "date": "2016-06-28",
122
+ "start": "1300",
123
+ "end": "1700"
124
+ },
125
+ {
126
+ "date": "2016-06-29",
127
+ "start": "0900",
128
+ "end": "1300"
129
+ },
130
+ {
131
+ "date": "2016-06-29",
132
+ "start": "1300",
133
+ "end": "1700"
134
+ },
135
+ {
136
+ "date": "2016-06-30",
137
+ "start": "0900",
138
+ "end": "1300"
139
+ },
140
+ {
141
+ "date": "2016-06-30",
142
+ "start": "1300",
143
+ "end": "1700"
144
+ },
145
+ {
146
+ "date": "2016-07-01",
147
+ "start": "0900",
148
+ "end": "1300"
149
+ },
150
+ {
151
+ "date": "2016-07-01",
152
+ "start": "1300",
153
+ "end": "1700"
154
+ },
155
+ {
156
+ "date": "2016-07-04",
157
+ "start": "0900",
158
+ "end": "1300"
159
+ },
160
+ {
161
+ "date": "2016-07-04",
162
+ "start": "1300",
163
+ "end": "1700"
164
+ },
165
+ {
166
+ "date": "2016-07-05",
167
+ "start": "0900",
168
+ "end": "1300"
169
+ },
170
+ {
171
+ "date": "2016-07-05",
172
+ "start": "1300",
173
+ "end": "1700"
174
+ },
175
+ {
176
+ "date": "2016-07-06",
177
+ "start": "0900",
178
+ "end": "1300"
179
+ },
180
+ {
181
+ "date": "2016-07-06",
182
+ "start": "1300",
183
+ "end": "1700"
184
+ },
185
+ {
186
+ "date": "2016-07-07",
187
+ "start": "0900",
188
+ "end": "1300"
189
+ },
190
+ {
191
+ "date": "2016-07-07",
192
+ "start": "1300",
193
+ "end": "1700"
194
+ },
195
+ {
196
+ "date": "2016-07-08",
197
+ "start": "0900",
198
+ "end": "1300"
199
+ },
200
+ {
201
+ "date": "2016-07-08",
202
+ "start": "1300",
203
+ "end": "1700"
204
+ },
205
+ {
206
+ "date": "2016-07-11",
207
+ "start": "0900",
208
+ "end": "1300"
209
+ },
210
+ {
211
+ "date": "2016-07-11",
212
+ "start": "1300",
213
+ "end": "1700"
214
+ },
215
+ {
216
+ "date": "2016-07-12",
217
+ "start": "0900",
218
+ "end": "1300"
219
+ },
220
+ {
221
+ "date": "2016-07-12",
222
+ "start": "1300",
223
+ "end": "1700"
224
+ },
225
+ {
226
+ "date": "2016-07-13",
227
+ "start": "0900",
228
+ "end": "1300"
229
+ },
230
+ {
231
+ "date": "2016-07-13",
232
+ "start": "1300",
233
+ "end": "1700"
234
+ },
235
+ {
236
+ "date": "2016-07-14",
237
+ "start": "0900",
238
+ "end": "1300"
239
+ },
240
+ {
241
+ "date": "2016-07-14",
242
+ "start": "1300",
243
+ "end": "1700"
244
+ },
245
+ {
246
+ "date": "2016-07-15",
247
+ "start": "0900",
248
+ "end": "1300"
249
+ },
250
+ {
251
+ "date": "2016-07-15",
252
+ "start": "1300",
253
+ "end": "1700"
254
+ },
255
+ {
256
+ "date": "2016-07-18",
257
+ "start": "0900",
258
+ "end": "1300"
259
+ },
260
+ {
261
+ "date": "2016-07-18",
262
+ "start": "1300",
263
+ "end": "1700"
264
+ },
265
+ {
266
+ "date": "2016-07-19",
267
+ "start": "0900",
268
+ "end": "1300"
269
+ },
270
+ {
271
+ "date": "2016-07-19",
272
+ "start": "1300",
273
+ "end": "1700"
274
+ },
275
+ {
276
+ "date": "2016-07-20",
277
+ "start": "0900",
278
+ "end": "1300"
279
+ },
280
+ {
281
+ "date": "2016-07-20",
282
+ "start": "1300",
283
+ "end": "1700"
284
+ },
285
+ {
286
+ "date": "2016-07-21",
287
+ "start": "0900",
288
+ "end": "1300"
289
+ },
290
+ {
291
+ "date": "2016-07-21",
292
+ "start": "1300",
293
+ "end": "1700"
294
+ },
295
+ {
296
+ "date": "2016-07-22",
297
+ "start": "0900",
298
+ "end": "1300"
299
+ },
300
+ {
301
+ "date": "2016-07-22",
302
+ "start": "1300",
303
+ "end": "1700"
304
+ },
305
+ {
306
+ "date": "2016-07-25",
307
+ "start": "0900",
308
+ "end": "1300"
309
+ },
310
+ {
311
+ "date": "2016-07-25",
312
+ "start": "1300",
313
+ "end": "1700"
314
+ },
315
+ {
316
+ "date": "2016-07-26",
317
+ "start": "0900",
318
+ "end": "1300"
319
+ },
320
+ {
321
+ "date": "2016-07-26",
322
+ "start": "1300",
323
+ "end": "1700"
324
+ },
325
+ {
326
+ "date": "2016-07-27",
327
+ "start": "0900",
328
+ "end": "1300"
329
+ },
330
+ {
331
+ "date": "2016-07-27",
332
+ "start": "1300",
333
+ "end": "1700"
334
+ },
335
+ {
336
+ "date": "2016-07-28",
337
+ "start": "0900",
338
+ "end": "1300"
339
+ },
340
+ {
341
+ "date": "2016-07-28",
342
+ "start": "1300",
343
+ "end": "1700"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "uid": "7f916cf6-d2bd-4bcc-90dc-594207c8b1f4",
349
+ "name": "Taunton",
350
+ "address": "St Mary's House, Magdalene Street, TAUNTON, Somerset, TA1 1SB",
351
+ "online_booking_twilio_number": "+441823240445",
352
+ "locations": [
353
+ {
354
+ "uid": "43fcab23-b01f-4805-a34d-e7edb77b65ce",
355
+ "name": "Exmouth",
356
+ "address": "Town Hall, St Andrews Road, EXMOUTH, Devon, EX8 1AW",
357
+ "online_booking_twilio_number": ""
358
+ },
359
+ {
360
+ "uid": "fdf2fa41-b0b7-44ae-a992-4409490dc9fb",
361
+ "name": "Honiton",
362
+ "address": "Honiton Library & Information Centre, 48-50 New Street, HONITON, Devon, EX14 1BS",
363
+ "online_booking_twilio_number": ""
364
+ },
365
+ {
366
+ "uid": "05dbf9e9-662b-4b10-ad85-70c38bd08d6d",
367
+ "name": "Minehead",
368
+ "address": " Alcombe Children’s Centre, Stephenson Road, Alcombe, Minehead, Somerset, TA24 5EB",
369
+ "online_booking_twilio_number": ""
370
+ },
371
+ {
372
+ "uid": "13e12f95-f709-4536-b6ee-8d7a735ddf9f",
373
+ "name": "North Somerset",
374
+ "address": "The Badger Centre, 3-6 Wadham Street, WESTON-SUPER-MARE, Somerset, BS23 1JY",
375
+ "online_booking_twilio_number": ""
376
+ },
377
+ {
378
+ "uid": "ca857ea1-e51a-442d-937d-b7c720d91ecf",
379
+ "name": "Sedgemoor",
380
+ "address": "Clarence House, High Street, Bridgwater, BRIDGWATER, Somerset, TA6 3BH",
381
+ "online_booking_twilio_number": ""
382
+ },
383
+ {
384
+ "uid": "90bebb70-c4bb-4572-afb2-e4ede5ca38c9",
385
+ "name": "Shepton Mallet",
386
+ "address": "Highfield House, Shape Mendip Campus, Cannards Grave Road, Shepton Mallet, BA4 5BT",
387
+ "online_booking_twilio_number": ""
388
+ },
389
+ {
390
+ "uid": "b5920e4c-ac91-49c3-8923-3efd10292db2",
391
+ "name": "Yeovil",
392
+ "address": "Petters House, Petters Way, YEOVIL, Somerset, BA20 1SH",
393
+ "online_booking_twilio_number": ""
394
+ }
395
+ ],
396
+ "guiders": [
397
+ {
398
+ "id": 9,
399
+ "name": "John Smith",
400
+ "email": "john.smith@example.org.uk"
401
+ }
402
+ ],
403
+ "slots": [
404
+ {
405
+ "date": "2016-06-20",
406
+ "start": "0900",
407
+ "end": "1300"
408
+ },
409
+ {
410
+ "date": "2016-06-20",
411
+ "start": "1300",
412
+ "end": "1700"
413
+ },
414
+ {
415
+ "date": "2016-06-21",
416
+ "start": "0900",
417
+ "end": "1300"
418
+ },
419
+ {
420
+ "date": "2016-06-21",
421
+ "start": "1300",
422
+ "end": "1700"
423
+ },
424
+ {
425
+ "date": "2016-06-22",
426
+ "start": "0900",
427
+ "end": "1300"
428
+ },
429
+ {
430
+ "date": "2016-06-22",
431
+ "start": "1300",
432
+ "end": "1700"
433
+ },
434
+ {
435
+ "date": "2016-06-23",
436
+ "start": "0900",
437
+ "end": "1300"
438
+ },
439
+ {
440
+ "date": "2016-06-23",
441
+ "start": "1300",
442
+ "end": "1700"
443
+ },
444
+ {
445
+ "date": "2016-06-24",
446
+ "start": "0900",
447
+ "end": "1300"
448
+ },
449
+ {
450
+ "date": "2016-06-24",
451
+ "start": "1300",
452
+ "end": "1700"
453
+ },
454
+ {
455
+ "date": "2016-06-27",
456
+ "start": "0900",
457
+ "end": "1300"
458
+ },
459
+ {
460
+ "date": "2016-06-27",
461
+ "start": "1300",
462
+ "end": "1700"
463
+ },
464
+ {
465
+ "date": "2016-06-28",
466
+ "start": "0900",
467
+ "end": "1300"
468
+ },
469
+ {
470
+ "date": "2016-06-28",
471
+ "start": "1300",
472
+ "end": "1700"
473
+ },
474
+ {
475
+ "date": "2016-06-29",
476
+ "start": "0900",
477
+ "end": "1300"
478
+ },
479
+ {
480
+ "date": "2016-06-29",
481
+ "start": "1300",
482
+ "end": "1700"
483
+ },
484
+ {
485
+ "date": "2016-06-30",
486
+ "start": "0900",
487
+ "end": "1300"
488
+ },
489
+ {
490
+ "date": "2016-06-30",
491
+ "start": "1300",
492
+ "end": "1700"
493
+ },
494
+ {
495
+ "date": "2016-07-01",
496
+ "start": "0900",
497
+ "end": "1300"
498
+ },
499
+ {
500
+ "date": "2016-07-01",
501
+ "start": "1300",
502
+ "end": "1700"
503
+ },
504
+ {
505
+ "date": "2016-07-04",
506
+ "start": "0900",
507
+ "end": "1300"
508
+ },
509
+ {
510
+ "date": "2016-07-04",
511
+ "start": "1300",
512
+ "end": "1700"
513
+ },
514
+ {
515
+ "date": "2016-07-05",
516
+ "start": "0900",
517
+ "end": "1300"
518
+ },
519
+ {
520
+ "date": "2016-07-05",
521
+ "start": "1300",
522
+ "end": "1700"
523
+ },
524
+ {
525
+ "date": "2016-07-06",
526
+ "start": "0900",
527
+ "end": "1300"
528
+ },
529
+ {
530
+ "date": "2016-07-06",
531
+ "start": "1300",
532
+ "end": "1700"
533
+ },
534
+ {
535
+ "date": "2016-07-07",
536
+ "start": "0900",
537
+ "end": "1300"
538
+ },
539
+ {
540
+ "date": "2016-07-07",
541
+ "start": "1300",
542
+ "end": "1700"
543
+ },
544
+ {
545
+ "date": "2016-07-08",
546
+ "start": "0900",
547
+ "end": "1300"
548
+ },
549
+ {
550
+ "date": "2016-07-08",
551
+ "start": "1300",
552
+ "end": "1700"
553
+ },
554
+ {
555
+ "date": "2016-07-11",
556
+ "start": "0900",
557
+ "end": "1300"
558
+ },
559
+ {
560
+ "date": "2016-07-11",
561
+ "start": "1300",
562
+ "end": "1700"
563
+ },
564
+ {
565
+ "date": "2016-07-12",
566
+ "start": "0900",
567
+ "end": "1300"
568
+ },
569
+ {
570
+ "date": "2016-07-12",
571
+ "start": "1300",
572
+ "end": "1700"
573
+ },
574
+ {
575
+ "date": "2016-07-13",
576
+ "start": "0900",
577
+ "end": "1300"
578
+ },
579
+ {
580
+ "date": "2016-07-13",
581
+ "start": "1300",
582
+ "end": "1700"
583
+ },
584
+ {
585
+ "date": "2016-07-14",
586
+ "start": "0900",
587
+ "end": "1300"
588
+ },
589
+ {
590
+ "date": "2016-07-14",
591
+ "start": "1300",
592
+ "end": "1700"
593
+ },
594
+ {
595
+ "date": "2016-07-15",
596
+ "start": "0900",
597
+ "end": "1300"
598
+ },
599
+ {
600
+ "date": "2016-07-15",
601
+ "start": "1300",
602
+ "end": "1700"
603
+ },
604
+ {
605
+ "date": "2016-07-18",
606
+ "start": "0900",
607
+ "end": "1300"
608
+ },
609
+ {
610
+ "date": "2016-07-18",
611
+ "start": "1300",
612
+ "end": "1700"
613
+ },
614
+ {
615
+ "date": "2016-07-19",
616
+ "start": "0900",
617
+ "end": "1300"
618
+ },
619
+ {
620
+ "date": "2016-07-19",
621
+ "start": "1300",
622
+ "end": "1700"
623
+ },
624
+ {
625
+ "date": "2016-07-20",
626
+ "start": "0900",
627
+ "end": "1300"
628
+ },
629
+ {
630
+ "date": "2016-07-20",
631
+ "start": "1300",
632
+ "end": "1700"
633
+ },
634
+ {
635
+ "date": "2016-07-21",
636
+ "start": "0900",
637
+ "end": "1300"
638
+ },
639
+ {
640
+ "date": "2016-07-21",
641
+ "start": "1300",
642
+ "end": "1700"
643
+ },
644
+ {
645
+ "date": "2016-07-22",
646
+ "start": "0900",
647
+ "end": "1300"
648
+ },
649
+ {
650
+ "date": "2016-07-22",
651
+ "start": "1300",
652
+ "end": "1700"
653
+ },
654
+ {
655
+ "date": "2016-07-25",
656
+ "start": "0900",
657
+ "end": "1300"
658
+ },
659
+ {
660
+ "date": "2016-07-25",
661
+ "start": "1300",
662
+ "end": "1700"
663
+ },
664
+ {
665
+ "date": "2016-07-26",
666
+ "start": "0900",
667
+ "end": "1300"
668
+ },
669
+ {
670
+ "date": "2016-07-26",
671
+ "start": "1300",
672
+ "end": "1700"
673
+ },
674
+ {
675
+ "date": "2016-07-27",
676
+ "start": "0900",
677
+ "end": "1300"
678
+ },
679
+ {
680
+ "date": "2016-07-27",
681
+ "start": "1300",
682
+ "end": "1700"
683
+ },
684
+ {
685
+ "date": "2016-07-28",
686
+ "start": "0900",
687
+ "end": "1300"
688
+ },
689
+ {
690
+ "date": "2016-07-28",
691
+ "start": "1300",
692
+ "end": "1700"
693
+ }
694
+ ]
695
+ }
696
+ ]
@@ -1,17 +1,34 @@
1
1
  module BookingLocations
2
2
  KNOWN_LOCATION_IDS = %w(
3
3
  ac7112c3-e3cf-45cd-a8ff-9ba827b8e7ef
4
+ 1a1ad00f-d967-448a-a4a6-772369fa5087
4
5
  183080c6-642b-4b8f-96fd-891f5cd9f9c7
5
6
  c165d25e-f27b-4ce9-b3d3-e7415ebaa93c
6
7
  a77a031a-8037-4510-b1f7-63d4aab7b103
8
+ 7f916cf6-d2bd-4bcc-90dc-594207c8b1f4
9
+ 43fcab23-b01f-4805-a34d-e7edb77b65ce
10
+ fdf2fa41-b0b7-44ae-a992-4409490dc9fb
11
+ 05dbf9e9-662b-4b10-ad85-70c38bd08d6d
12
+ 13e12f95-f709-4536-b6ee-8d7a735ddf9f
13
+ ca857ea1-e51a-442d-937d-b7c720d91ecf
14
+ 90bebb70-c4bb-4572-afb2-e4ede5ca38c9
15
+ b5920e4c-ac91-49c3-8923-3efd10292db2
7
16
  ).freeze
8
17
 
9
18
  class StubApi
10
19
  def get(id)
11
20
  return nil unless KNOWN_LOCATION_IDS.include?(id)
12
21
 
13
- contents = IO.read(File.join(File.dirname(File.expand_path(__FILE__)), 'stub_api.json'))
14
- yield JSON.parse(contents)
22
+ yield json.find { |location| location["uid"] == id }
23
+ end
24
+
25
+ private
26
+
27
+ def json
28
+ @json ||= begin
29
+ contents = IO.read(File.join(File.dirname(File.expand_path(__FILE__)), 'stub_api.json'))
30
+ JSON.parse(contents)
31
+ end
15
32
  end
16
33
  end
17
34
  end
@@ -1,3 +1,3 @@
1
1
  module BookingLocations
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booking_locations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport