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 +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/lib/booking_locations/stub_api.json +696 -345
- data/lib/booking_locations/stub_api.rb +19 -2
- data/lib/booking_locations/version.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: e21d6d7dd8d0605ce1cc161bfdf356941e871a13
|
4
|
+
data.tar.gz: 45a994f2f0d82f1a3abe32abae0a29a5a8e4f2f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,345 +1,696 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
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
|
-
|
14
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|