middleman-cli 4.3.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/preview_server.feature +316 -315
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 724b4e5caf11a928512ffc783f2a695178da063786ee41503b976732e1a1f699
|
4
|
+
data.tar.gz: 94ae360b28ae1348cd9c926f855727d19194c01d23c78f8c6f17f36f15cc635e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd365f57ec14f09cd824291fe1bcc88fbd16d60849a99726d2b47503303ae60857afd911e726f8a95e96c1e7100feed8d92e0c6459eafe42d4393b633eb94fca
|
7
|
+
data.tar.gz: 499f842dc0a6f8a2296fbb1df62b8e49eccd0179c0fe052d68699972b00a16efd40998040a57fc98b4afd46029e567e7f9e917f109ee2bce54c6d99bbf4efd12
|
@@ -11,109 +11,109 @@ Feature: Run the preview server
|
|
11
11
|
Scenario: Start the server with defaults
|
12
12
|
When I run `middleman server` interactively
|
13
13
|
And I stop middleman if the output contains:
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
"""
|
15
|
+
Inspect your site configuration
|
16
|
+
"""
|
17
17
|
And the output should contain:
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
"""
|
19
|
+
View your site at "http://
|
20
|
+
"""
|
21
21
|
And the output should contain:
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
"""
|
23
|
+
Inspect your site configuration at "http://
|
24
|
+
"""
|
25
25
|
|
26
26
|
Scenario: Start the server with defaults in verbose mode
|
27
27
|
When I run `middleman server --verbose` interactively
|
28
28
|
And I stop middleman if the output contains:
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
"""
|
30
|
+
Inspect your site configuration
|
31
|
+
"""
|
32
32
|
Then the output should contain:
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
"""
|
34
|
+
The Middleman preview server is bound to ":::4567", "0.0.0.0:4567"
|
35
|
+
"""
|
36
36
|
And the output should contain:
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
"""
|
38
|
+
View your site at "http://
|
39
|
+
"""
|
40
40
|
And the output should contain:
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
"""
|
42
|
+
Inspect your site configuration at "http://
|
43
|
+
"""
|
44
44
|
|
45
45
|
@wip
|
46
46
|
Scenario: Start the server with defaults in verbose mode, when a local mdns server resolves the local hostname
|
47
47
|
Given I start a mdns server for the local hostname
|
48
48
|
When I run `middleman server --verbose` interactively
|
49
49
|
And I stop middleman if the output contains:
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
"""
|
51
|
+
Inspect your site configuration
|
52
|
+
"""
|
53
53
|
Then the output should contain:
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
"""
|
55
|
+
The Middleman preview server is bound to ":::4567", "0.0.0.0:4567"
|
56
|
+
"""
|
57
57
|
And the output should contain:
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
"""
|
59
|
+
View your site at "http://
|
60
|
+
"""
|
61
61
|
And the output should contain:
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
"""
|
63
|
+
Inspect your site configuration at "http://
|
64
|
+
"""
|
65
65
|
|
66
66
|
Scenario: Start the server with bind address 127.0.0.1
|
67
67
|
Given I have a local hosts file with:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
"""
|
69
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
70
|
+
127.0.0.1 localhost.localdomain localhost
|
71
|
+
"""
|
72
72
|
When I run `middleman server --verbose --bind-address 127.0.0.1` interactively
|
73
73
|
And I stop middleman if the output contains:
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
"""
|
75
|
+
Inspect your site configuration
|
76
|
+
"""
|
77
77
|
Then the output should contain:
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
"""
|
79
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
80
|
+
"""
|
81
81
|
And the output should contain:
|
82
|
-
|
83
|
-
|
84
|
-
|
82
|
+
"""
|
83
|
+
View your site at "http://127.0.0.1:4567"
|
84
|
+
"""
|
85
85
|
And the output should contain:
|
86
|
-
|
87
|
-
|
88
|
-
|
86
|
+
"""
|
87
|
+
Inspect your site configuration at "http://127.0.0.1:4567/__middleman"
|
88
|
+
"""
|
89
89
|
|
90
90
|
Scenario: Start the server with bind address 127.0.0.1 configured via config.rb
|
91
91
|
Given I have a local hosts file with:
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
92
|
+
"""
|
93
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
94
|
+
127.0.0.1 localhost.localdomain localhost
|
95
|
+
"""
|
96
96
|
And a file named "config.rb" with:
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
"""
|
98
|
+
set :bind_address, '127.0.0.1'
|
99
|
+
"""
|
100
100
|
When I run `middleman server --verbose` interactively
|
101
101
|
And I stop middleman if the output contains:
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
"""
|
103
|
+
Inspect your site configuration
|
104
|
+
"""
|
105
105
|
Then the output should contain:
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
"""
|
107
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
108
|
+
"""
|
109
109
|
And the output should contain:
|
110
|
-
|
111
|
-
|
112
|
-
|
110
|
+
"""
|
111
|
+
View your site at "http://127.0.0.1:4567"
|
112
|
+
"""
|
113
113
|
And the output should contain:
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
"""
|
115
|
+
Inspect your site configuration at "http://127.0.0.1:4567/__middleman"
|
116
|
+
"""
|
117
117
|
|
118
118
|
@wip
|
119
119
|
Scenario: Start the server with bind address 127.0.0.5
|
@@ -123,273 +123,274 @@ Feature: Run the preview server
|
|
123
123
|
|
124
124
|
When I run `middleman server --verbose --bind-address 127.0.0.5` interactively
|
125
125
|
And I stop middleman if the output contains:
|
126
|
-
|
127
|
-
|
128
|
-
|
126
|
+
"""
|
127
|
+
Inspect your site configuration
|
128
|
+
"""
|
129
129
|
Then the output should contain:
|
130
|
-
|
131
|
-
|
132
|
-
|
130
|
+
"""
|
131
|
+
The Middleman preview server is bound to "127.0.0.5:4567"
|
132
|
+
"""
|
133
133
|
And the output should contain:
|
134
|
-
|
135
|
-
|
136
|
-
|
134
|
+
"""
|
135
|
+
View your site at "http://127.0.0.5:4567"
|
136
|
+
"""
|
137
137
|
And the output should contain:
|
138
|
-
|
139
|
-
|
140
|
-
|
138
|
+
"""
|
139
|
+
Inspect your site configuration at "http://127.0.0.5:4567/__middleman"
|
140
|
+
"""
|
141
141
|
|
142
|
+
@wip
|
142
143
|
Scenario: Start the server with bind address ::1
|
143
144
|
Given a file named ".hosts" with:
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
145
|
+
"""
|
146
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
147
|
+
::1 localhost.localdomain localhost
|
148
|
+
"""
|
148
149
|
When I run `middleman server --verbose --bind-address ::1` interactively
|
149
150
|
And I stop middleman if the output contains:
|
150
|
-
|
151
|
-
|
152
|
-
|
151
|
+
"""
|
152
|
+
Inspect your site configuration
|
153
|
+
"""
|
153
154
|
Then the output should contain:
|
154
|
-
|
155
|
-
|
156
|
-
|
155
|
+
"""
|
156
|
+
The Middleman preview server is bound to "::1:4567"
|
157
|
+
"""
|
157
158
|
And the output should contain:
|
158
|
-
|
159
|
-
|
160
|
-
|
159
|
+
"""
|
160
|
+
View your site at "http://[::1]:4567"
|
161
|
+
"""
|
161
162
|
And the output should contain:
|
162
|
-
|
163
|
-
|
164
|
-
|
163
|
+
"""
|
164
|
+
Inspect your site configuration at "http://[::1]:4567/__middleman"
|
165
|
+
"""
|
165
166
|
|
166
167
|
Scenario: Start the server with bind address 0.0.0.0
|
167
168
|
When I run `middleman server --verbose --bind-address 0.0.0.0` interactively
|
168
169
|
And I stop middleman if the output contains:
|
169
|
-
|
170
|
-
|
171
|
-
|
170
|
+
"""
|
171
|
+
Inspect your site configuration
|
172
|
+
"""
|
172
173
|
Then the output should contain:
|
173
|
-
|
174
|
-
|
175
|
-
|
174
|
+
"""
|
175
|
+
The Middleman preview server is bound to "0.0.0.0:4567"
|
176
|
+
"""
|
176
177
|
And the output should contain:
|
177
|
-
|
178
|
-
|
179
|
-
|
178
|
+
"""
|
179
|
+
View your site at "http://
|
180
|
+
"""
|
180
181
|
And the output should contain:
|
181
|
-
|
182
|
-
|
183
|
-
|
182
|
+
"""
|
183
|
+
Inspect your site configuration at "http://
|
184
|
+
"""
|
184
185
|
|
185
186
|
Scenario: Start the server with bind address ::
|
186
187
|
When I run `middleman server --verbose --bind-address ::` interactively
|
187
188
|
And I stop middleman if the output contains:
|
188
|
-
|
189
|
-
|
190
|
-
|
189
|
+
"""
|
190
|
+
Inspect your site configuration
|
191
|
+
"""
|
191
192
|
Then the output should contain:
|
192
|
-
|
193
|
-
|
194
|
-
|
193
|
+
"""
|
194
|
+
The Middleman preview server is bound to ":::4567"
|
195
|
+
"""
|
195
196
|
And the output should contain:
|
196
|
-
|
197
|
-
|
198
|
-
|
197
|
+
"""
|
198
|
+
View your site at "http://
|
199
|
+
"""
|
199
200
|
And the output should contain:
|
200
|
-
|
201
|
-
|
202
|
-
|
201
|
+
"""
|
202
|
+
Inspect your site configuration at "http://
|
203
|
+
"""
|
203
204
|
|
204
205
|
Scenario: Start the server with server name "localhost"
|
205
206
|
Given I have a local hosts file with:
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
207
|
+
"""
|
208
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
209
|
+
127.0.0.1 localhost.localdomain localhost
|
210
|
+
"""
|
210
211
|
When I run `middleman server --verbose --server-name localhost` interactively
|
211
212
|
And I stop middleman if the output contains:
|
212
|
-
|
213
|
-
|
214
|
-
|
213
|
+
"""
|
214
|
+
Inspect your site configuration
|
215
|
+
"""
|
215
216
|
Then the output should contain:
|
216
|
-
|
217
|
-
|
218
|
-
|
217
|
+
"""
|
218
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
219
|
+
"""
|
219
220
|
And the output should contain:
|
220
|
-
|
221
|
-
|
222
|
-
|
221
|
+
"""
|
222
|
+
View your site at "http://localhost:4567", "http://127.0.0.1:4567"
|
223
|
+
"""
|
223
224
|
And the output should contain:
|
224
|
-
|
225
|
-
|
226
|
-
|
225
|
+
"""
|
226
|
+
Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
227
|
+
"""
|
227
228
|
|
228
229
|
Scenario: Start the server with server name "localhost" configured via config.rb
|
229
230
|
Given I have a local hosts file with:
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
231
|
+
"""
|
232
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
233
|
+
127.0.0.1 localhost.localdomain localhost
|
234
|
+
"""
|
234
235
|
And a file named "config.rb" with:
|
235
|
-
|
236
|
-
|
237
|
-
|
236
|
+
"""
|
237
|
+
set :server_name, 'localhost'
|
238
|
+
"""
|
238
239
|
When I run `middleman server --verbose` interactively
|
239
240
|
And I stop middleman if the output contains:
|
240
|
-
|
241
|
-
|
242
|
-
|
241
|
+
"""
|
242
|
+
Inspect your site configuration
|
243
|
+
"""
|
243
244
|
Then the output should contain:
|
244
|
-
|
245
|
-
|
246
|
-
|
245
|
+
"""
|
246
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
247
|
+
"""
|
247
248
|
And the output should contain:
|
248
|
-
|
249
|
-
|
250
|
-
|
249
|
+
"""
|
250
|
+
View your site at "http://localhost:4567", "http://127.0.0.1:4567"
|
251
|
+
"""
|
251
252
|
And the output should contain:
|
252
|
-
|
253
|
-
|
254
|
-
|
253
|
+
"""
|
254
|
+
Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
255
|
+
"""
|
255
256
|
|
256
257
|
Scenario: Start the server with server name "localhost" and bind address "127.0.0.1"
|
257
258
|
Given I have a local hosts file with:
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
259
|
+
"""
|
260
|
+
# <ip-address> <hostname.domain.org> <hostname>
|
261
|
+
127.0.0.1 localhost.localdomain localhost
|
262
|
+
"""
|
262
263
|
When I run `middleman server --verbose --server-name localhost --bind-address 127.0.0.1` interactively
|
263
264
|
And I stop middleman if the output contains:
|
264
|
-
|
265
|
-
|
266
|
-
|
265
|
+
"""
|
266
|
+
Inspect your site configuration
|
267
|
+
"""
|
267
268
|
Then the output should contain:
|
268
|
-
|
269
|
-
|
270
|
-
|
269
|
+
"""
|
270
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
271
|
+
"""
|
271
272
|
And the output should contain:
|
272
|
-
|
273
|
-
|
274
|
-
|
273
|
+
"""
|
274
|
+
View your site at "http://localhost:4567", "http://127.0.0.1:4567"
|
275
|
+
"""
|
275
276
|
And the output should contain:
|
276
|
-
|
277
|
-
|
278
|
-
|
277
|
+
"""
|
278
|
+
Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
279
|
+
"""
|
279
280
|
|
280
281
|
Scenario: Start the server with server name "127.0.0.1"
|
281
282
|
When I run `middleman server --verbose --server-name 127.0.0.1` interactively
|
282
283
|
And I stop middleman if the output contains:
|
283
|
-
|
284
|
-
|
285
|
-
|
284
|
+
"""
|
285
|
+
Inspect your site configuration
|
286
|
+
"""
|
286
287
|
Then the output should contain:
|
287
|
-
|
288
|
-
|
289
|
-
|
288
|
+
"""
|
289
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
290
|
+
"""
|
290
291
|
And the output should contain:
|
291
|
-
|
292
|
-
|
293
|
-
|
292
|
+
"""
|
293
|
+
View your site at "http://127.0.0.1:4567"
|
294
|
+
"""
|
294
295
|
And the output should contain:
|
295
|
-
|
296
|
-
|
297
|
-
|
296
|
+
"""
|
297
|
+
Inspect your site configuration at "http://127.0.0.1:4567/__middleman"
|
298
|
+
"""
|
298
299
|
|
299
300
|
Scenario: Start the server with server name "::1"
|
300
301
|
When I run `middleman server --verbose --server-name ::1` interactively
|
301
302
|
And I stop middleman if the output contains:
|
302
|
-
|
303
|
-
|
304
|
-
|
303
|
+
"""
|
304
|
+
Inspect your site configuration
|
305
|
+
"""
|
305
306
|
Then the output should contain:
|
306
|
-
|
307
|
-
|
308
|
-
|
307
|
+
"""
|
308
|
+
The Middleman preview server is bound to "::1:4567"
|
309
|
+
"""
|
309
310
|
And the output should contain:
|
310
|
-
|
311
|
-
|
312
|
-
|
311
|
+
"""
|
312
|
+
View your site at "http://[::1]:4567"
|
313
|
+
"""
|
313
314
|
And the output should contain:
|
314
|
-
|
315
|
-
|
316
|
-
|
315
|
+
"""
|
316
|
+
Inspect your site configuration at "http://[::1]:4567/__middleman"
|
317
|
+
"""
|
317
318
|
|
318
319
|
Scenario: Start the server with https
|
319
320
|
When I run `middleman server --verbose --https` interactively
|
320
321
|
And I stop middleman if the output contains:
|
321
|
-
|
322
|
-
|
323
|
-
|
322
|
+
"""
|
323
|
+
Inspect your site configuration
|
324
|
+
"""
|
324
325
|
Then the output should contain:
|
325
|
-
|
326
|
-
|
327
|
-
|
326
|
+
"""
|
327
|
+
The Middleman preview server is bound to ":::4567", "0.0.0.0:4567"
|
328
|
+
"""
|
328
329
|
And the output should contain:
|
329
|
-
|
330
|
-
|
331
|
-
|
330
|
+
"""
|
331
|
+
View your site at "https://
|
332
|
+
"""
|
332
333
|
And the output should contain:
|
333
|
-
|
334
|
-
|
335
|
-
|
334
|
+
"""
|
335
|
+
Inspect your site configuration at "https://
|
336
|
+
"""
|
336
337
|
|
337
338
|
Scenario: Start the server with port 65432
|
338
339
|
When I run `middleman server --verbose --port 65432` interactively
|
339
340
|
And I stop middleman if the output contains:
|
340
|
-
|
341
|
-
|
342
|
-
|
341
|
+
"""
|
342
|
+
Inspect your site configuration
|
343
|
+
"""
|
343
344
|
Then the output should contain:
|
344
|
-
|
345
|
-
|
346
|
-
|
345
|
+
"""
|
346
|
+
The Middleman preview server is bound to ":::65432", "0.0.0.0:65432"
|
347
|
+
"""
|
347
348
|
|
348
349
|
Scenario: Start the server with port 65432 configured via config.rb
|
349
350
|
Given a file named "config.rb" with:
|
350
|
-
|
351
|
-
|
352
|
-
|
351
|
+
"""
|
352
|
+
set :port, 65432
|
353
|
+
"""
|
353
354
|
When I run `middleman server --verbose` interactively
|
354
355
|
And I stop middleman if the output contains:
|
355
|
-
|
356
|
-
|
357
|
-
|
356
|
+
"""
|
357
|
+
Inspect your site configuration
|
358
|
+
"""
|
358
359
|
Then the output should contain:
|
359
|
-
|
360
|
-
|
361
|
-
|
360
|
+
"""
|
361
|
+
The Middleman preview server is bound to ":::65432", "0.0.0.0:65432"
|
362
|
+
"""
|
362
363
|
|
363
364
|
@wip
|
364
365
|
Scenario: Start the server when port is blocked by other middleman instance
|
365
366
|
Given `middleman server` is running in background
|
366
367
|
When I run `middleman server --verbose` interactively
|
367
368
|
And I stop all commands if the output of the last command contains:
|
368
|
-
|
369
|
-
|
370
|
-
|
369
|
+
"""
|
370
|
+
Inspect your site configuration
|
371
|
+
"""
|
371
372
|
Then the output should contain:
|
372
|
-
|
373
|
-
|
374
|
-
|
373
|
+
"""
|
374
|
+
The Middleman uses a different port
|
375
|
+
"""
|
375
376
|
|
376
377
|
Scenario: Start the server with bind address 1.1.1.1
|
377
378
|
|
378
379
|
This should fail, because "1.1.1.1" is not an interface available on this computer.
|
379
380
|
|
380
381
|
Given a file named ".hosts" with:
|
381
|
-
|
382
|
-
|
383
|
-
|
382
|
+
"""
|
383
|
+
1.1.1.1 www.example.com www
|
384
|
+
"""
|
384
385
|
When I run `middleman server --verbose --bind-address 1.1.1.1` interactively
|
385
386
|
And I stop middleman if the output contains:
|
386
|
-
|
387
|
-
|
388
|
-
|
387
|
+
"""
|
388
|
+
Running Middleman failed:
|
389
|
+
"""
|
389
390
|
Then the output should contain:
|
390
|
-
|
391
|
-
|
392
|
-
|
391
|
+
"""
|
392
|
+
Bind address "1.1.1.1" is not available on your system
|
393
|
+
"""
|
393
394
|
|
394
395
|
Scenario: Start the server with server name www.example.com and bind address 0.0.0.0
|
395
396
|
|
@@ -401,73 +402,73 @@ Feature: Run the preview server
|
|
401
402
|
|
402
403
|
When I run `middleman server --verbose --server-name www.example.com --bind-address 0.0.0.0` interactively
|
403
404
|
And I stop middleman if the output contains:
|
404
|
-
|
405
|
-
|
406
|
-
|
405
|
+
"""
|
406
|
+
Running Middleman failed:
|
407
|
+
"""
|
407
408
|
Then the output should contain:
|
408
|
-
|
409
|
-
|
410
|
-
|
409
|
+
"""
|
410
|
+
Undefined combination of options "--server-name" and "--bind-address".
|
411
|
+
"""
|
411
412
|
|
412
413
|
Scenario: Start the server with server name "www.example.com" and bind address "127.0.0.1"
|
413
414
|
|
414
415
|
This should fail because the server name does not resolve to the ip address.
|
415
416
|
|
416
417
|
Given a file named ".hosts" with:
|
417
|
-
|
418
|
-
|
419
|
-
|
418
|
+
"""
|
419
|
+
1.1.1.1 www.example.com www
|
420
|
+
"""
|
420
421
|
When I run `middleman server --verbose --server-name www.example.com --bind-address 127.0.0.1` interactively
|
421
422
|
And I stop middleman if the output contains:
|
422
|
-
|
423
|
-
|
424
|
-
|
423
|
+
"""
|
424
|
+
Running Middleman failed:
|
425
|
+
"""
|
425
426
|
Then the output should contain:
|
426
|
-
|
427
|
-
|
428
|
-
|
427
|
+
"""
|
428
|
+
Server name "www.example.com" does not resolve to bind address "127.0.0.1". Please fix that and try again.
|
429
|
+
"""
|
429
430
|
|
430
431
|
Scenario: Start the server with server name "garbage.example.com"
|
431
432
|
When I run `middleman server --verbose --server-name garbage.example.com` interactively
|
432
433
|
And I stop middleman if the output contains:
|
433
|
-
|
434
|
-
|
435
|
-
|
434
|
+
"""
|
435
|
+
Running Middleman failed:
|
436
|
+
"""
|
436
437
|
Then the output should contain:
|
437
|
-
|
438
|
-
|
439
|
-
|
438
|
+
"""
|
439
|
+
Server name "garbage.example.com" does not resolve to an ip address. Please fix that and try again.
|
440
|
+
"""
|
440
441
|
|
441
442
|
Scenario: Start the server with server name "www.example.com" and the network name server is used to resolve the server name
|
442
443
|
Given I have a local hosts file with:
|
443
|
-
|
444
|
-
|
445
|
-
|
444
|
+
"""
|
445
|
+
# empty
|
446
|
+
"""
|
446
447
|
And I start a mdns server with:
|
447
|
-
|
448
|
-
|
449
|
-
|
448
|
+
"""
|
449
|
+
# empty
|
450
|
+
"""
|
450
451
|
And I start a dns server with:
|
451
|
-
|
452
|
-
|
453
|
-
|
452
|
+
"""
|
453
|
+
www.example.com: 127.0.0.1
|
454
|
+
"""
|
454
455
|
When I run `middleman server --verbose --server-name www.example.com` interactively
|
455
456
|
And I stop middleman if the output contains:
|
456
|
-
|
457
|
-
|
458
|
-
|
457
|
+
"""
|
458
|
+
Inspect your site configuration
|
459
|
+
"""
|
459
460
|
Then the output should contain:
|
460
|
-
|
461
|
-
|
462
|
-
|
461
|
+
"""
|
462
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
463
|
+
"""
|
463
464
|
And the output should contain:
|
464
|
-
|
465
|
-
|
466
|
-
|
465
|
+
"""
|
466
|
+
View your site at "http://www.example.com:4567", "http://127.0.0.1:4567"
|
467
|
+
"""
|
467
468
|
And the output should contain:
|
468
|
-
|
469
|
-
|
470
|
-
|
469
|
+
"""
|
470
|
+
Inspect your site configuration at "http://www.example.com:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
471
|
+
"""
|
471
472
|
|
472
473
|
@ruby-2.1
|
473
474
|
@wip
|
@@ -477,30 +478,30 @@ Feature: Run the preview server
|
|
477
478
|
Otherwise the resolver returns [].
|
478
479
|
|
479
480
|
Given I have a local hosts file with:
|
480
|
-
|
481
|
-
|
482
|
-
|
481
|
+
"""
|
482
|
+
# empty
|
483
|
+
"""
|
483
484
|
And I start a mdns server with:
|
484
|
-
|
485
|
-
|
486
|
-
|
485
|
+
"""
|
486
|
+
host.local: 127.0.0.1
|
487
|
+
"""
|
487
488
|
When I run `middleman server --verbose --server-name host.local` interactively
|
488
489
|
And I stop middleman if the output contains:
|
489
|
-
|
490
|
-
|
491
|
-
|
490
|
+
"""
|
491
|
+
Inspect your site configuration
|
492
|
+
"""
|
492
493
|
Then the output should contain:
|
493
|
-
|
494
|
-
|
495
|
-
|
494
|
+
"""
|
495
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
496
|
+
"""
|
496
497
|
And the output should contain:
|
497
|
-
|
498
|
-
|
499
|
-
|
498
|
+
"""
|
499
|
+
View your site at "http://host.local:4567", "http://127.0.0.1:4567"
|
500
|
+
"""
|
500
501
|
And the output should contain:
|
501
|
-
|
502
|
-
|
503
|
-
|
502
|
+
"""
|
503
|
+
Inspect your site configuration at "http://host.local:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
504
|
+
"""
|
504
505
|
|
505
506
|
@ruby-2.1
|
506
507
|
@wip
|
@@ -510,27 +511,27 @@ Feature: Run the preview server
|
|
510
511
|
a plain hostname is given `middleman` appends ".local" automatically.
|
511
512
|
|
512
513
|
Given I have a local hosts file with:
|
513
|
-
|
514
|
-
|
515
|
-
|
514
|
+
"""
|
515
|
+
# empty
|
516
|
+
"""
|
516
517
|
And I start a mdns server with:
|
517
|
-
|
518
|
-
|
519
|
-
|
518
|
+
"""
|
519
|
+
host.local: 127.0.0.1
|
520
|
+
"""
|
520
521
|
When I run `middleman server --verbose --server-name host` interactively
|
521
522
|
And I stop middleman if the output contains:
|
522
|
-
|
523
|
-
|
524
|
-
|
523
|
+
"""
|
524
|
+
Inspect your site configuration
|
525
|
+
"""
|
525
526
|
Then the output should contain:
|
526
|
-
|
527
|
-
|
528
|
-
|
527
|
+
"""
|
528
|
+
The Middleman preview server is bound to "127.0.0.1:4567"
|
529
|
+
"""
|
529
530
|
And the output should contain:
|
530
|
-
|
531
|
-
|
532
|
-
|
531
|
+
"""
|
532
|
+
View your site at "http://host.local:4567", "http://127.0.0.1:4567"
|
533
|
+
"""
|
533
534
|
And the output should contain:
|
534
|
-
|
535
|
-
|
536
|
-
|
535
|
+
"""
|
536
|
+
Inspect your site configuration at "http://host.local:4567/__middleman", "http://127.0.0.1:4567/__middleman"
|
537
|
+
"""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|