http_stub 0.16.0.pre1 → 0.17.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/http_stub.rb +10 -5
- data/lib/http_stub/configurer.rb +1 -21
- data/lib/http_stub/configurer/dsl/{sanctioned.rb → server.rb} +7 -1
- data/lib/http_stub/configurer/dsl/stub_builder.rb +4 -0
- data/lib/http_stub/configurer/request/stub.rb +1 -0
- data/lib/http_stub/configurer/server/command_processor.rb +3 -3
- data/lib/http_stub/rake/server_tasks.rb +1 -1
- data/lib/http_stub/server/daemon.rb +3 -1
- data/lib/http_stub/server/stub/instance.rb +3 -2
- data/lib/http_stub/server/stub/json_request_body.rb +35 -0
- data/lib/http_stub/server/stub/request_body.rb +44 -0
- data/lib/http_stub/server/stub/simple_request_body.rb +23 -0
- data/lib/http_stub/server/stub/truthy_request_matcher.rb +23 -0
- data/lib/http_stub/server/views/_stub.haml +3 -0
- data/lib/http_stub/version.rb +1 -1
- data/spec/acceptance/configurer_initialization_spec.rb +1 -1
- data/spec/acceptance/stub_body_schema_validation_spec.rb +67 -0
- data/spec/acceptance/stub_control_values_spec.rb +2 -2
- data/spec/acceptance/stub_spec.rb +1 -1
- data/spec/lib/http_stub/configurer/dsl/{sanctioned_spec.rb → server_spec.rb} +34 -15
- data/spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb +18 -0
- data/spec/lib/http_stub/configurer/request/stub_spec.rb +52 -20
- data/spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb +7 -4
- data/spec/lib/http_stub/rake/server_tasks_smoke_spec.rb +54 -13
- data/spec/lib/http_stub/server/application_integration_spec.rb +22 -2
- data/spec/lib/http_stub/server/daemon_integration_spec.rb +1 -1
- data/spec/lib/http_stub/server/daemon_spec.rb +50 -2
- data/spec/lib/http_stub/server/stub/instance_spec.rb +44 -10
- data/spec/lib/http_stub/server/stub/json_request_body_spec.rb +102 -0
- data/spec/lib/http_stub/server/stub/request_body_spec.rb +120 -0
- data/spec/lib/http_stub/server/stub/simple_request_body_spec.rb +43 -0
- data/spec/lib/http_stub/server/stub/string_value_matcher_spec.rb +2 -2
- data/spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb +23 -0
- data/spec/lib/http_stub/server/stub/uri_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -2
- data/spec/support/configurer_integration.rb +2 -2
- data/spec/support/stub_fixture.rb +2 -1
- metadata +307 -281
- data/spec/lib/http_stub/configurer_spec.rb +0 -22
data/spec/spec_helper.rb
CHANGED
@@ -7,7 +7,7 @@ SimpleCov.start do
|
|
7
7
|
add_filter "/spec/"
|
8
8
|
add_filter "/vendor/"
|
9
9
|
|
10
|
-
minimum_coverage 99.
|
10
|
+
minimum_coverage 99.64
|
11
11
|
refuse_coverage_drop
|
12
12
|
end if ENV["coverage"]
|
13
13
|
|
@@ -15,7 +15,7 @@ require 'http_server_manager/test_support'
|
|
15
15
|
|
16
16
|
require_relative '../lib/http_stub/rake/task_generators'
|
17
17
|
require_relative '../lib/http_stub'
|
18
|
-
require_relative '../examples/
|
18
|
+
require_relative '../examples/configurer_with_trivial_stub'
|
19
19
|
require_relative '../examples/configurer_with_deprecated_activator'
|
20
20
|
require_relative '../examples/configurer_with_trivial_scenarios'
|
21
21
|
require_relative '../examples/configurer_with_exhaustive_scenarios'
|
@@ -24,6 +24,7 @@ require_relative '../examples/configurer_with_complex_initializer'
|
|
24
24
|
require_relative '../examples/configurer_with_response_defaults'
|
25
25
|
require_relative '../examples/configurer_with_stub_triggers'
|
26
26
|
require_relative '../examples/configurer_with_file_responses'
|
27
|
+
require_relative '../examples/configurer_with_schema_validating_stub'
|
27
28
|
|
28
29
|
HttpStub::Server::Daemon.log_dir = ::File.expand_path('../../tmp/log', __FILE__)
|
29
30
|
HttpStub::Server::Daemon.pid_dir = ::File.expand_path('../../tmp/pids', __FILE__)
|
@@ -4,8 +4,8 @@ shared_context "configurer integration" do
|
|
4
4
|
let(:stub_server) { configurer.stub_server }
|
5
5
|
|
6
6
|
before(:example) do
|
7
|
-
|
8
|
-
|
7
|
+
stub_server.host = server_host
|
8
|
+
stub_server.port = server_port
|
9
9
|
end
|
10
10
|
|
11
11
|
after(:example) do
|
@@ -45,7 +45,8 @@ module HttpStub
|
|
45
45
|
uri: "/stub/uri/#{@id}",
|
46
46
|
method: "some #{@id} method",
|
47
47
|
headers: { "request_header_name" => "request header value #{@id}" },
|
48
|
-
parameters: { "parameter_name" => "parameter value #{@id}" }
|
48
|
+
parameters: { "parameter_name" => "parameter value #{@id}" },
|
49
|
+
body: "some body"
|
49
50
|
)
|
50
51
|
@response = HttpStub::StubFixture::Part.new(
|
51
52
|
status: 500,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_stub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ueckerman
|
@@ -9,244 +9,258 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '10.4'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '10.4'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: sinatra
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.4'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.4'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: sinatra-partial
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0.4'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0.4'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: multipart-post
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ~>
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '2.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '2.0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: http_server_manager
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '0.4'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '0.4'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: json-schema
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '2.
|
90
|
+
version: '2.5'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ~>
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2.
|
97
|
+
version: '2.5'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: activesupport
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
104
|
+
version: '4.2'
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
111
|
+
version: '4.2'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: haml
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ~>
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '4.
|
118
|
+
version: '4.0'
|
119
119
|
type: :runtime
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '4.
|
125
|
+
version: '4.0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sass
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '3.4'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ~>
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '3.4'
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
141
|
name: travis-lint
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
129
143
|
requirements:
|
130
|
-
- -
|
144
|
+
- - ~>
|
131
145
|
- !ruby/object:Gem::Version
|
132
146
|
version: '2.0'
|
133
147
|
type: :development
|
134
148
|
prerelease: false
|
135
149
|
version_requirements: !ruby/object:Gem::Requirement
|
136
150
|
requirements:
|
137
|
-
- -
|
151
|
+
- - ~>
|
138
152
|
- !ruby/object:Gem::Version
|
139
153
|
version: '2.0'
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: metric_fu
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
143
157
|
requirements:
|
144
|
-
- -
|
158
|
+
- - ~>
|
145
159
|
- !ruby/object:Gem::Version
|
146
160
|
version: '4.11'
|
147
161
|
type: :development
|
148
162
|
prerelease: false
|
149
163
|
version_requirements: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
|
-
- -
|
165
|
+
- - ~>
|
152
166
|
- !ruby/object:Gem::Version
|
153
167
|
version: '4.11'
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
169
|
name: rspec
|
156
170
|
requirement: !ruby/object:Gem::Requirement
|
157
171
|
requirements:
|
158
|
-
- -
|
172
|
+
- - ~>
|
159
173
|
- !ruby/object:Gem::Version
|
160
|
-
version: '3.
|
174
|
+
version: '3.3'
|
161
175
|
type: :development
|
162
176
|
prerelease: false
|
163
177
|
version_requirements: !ruby/object:Gem::Requirement
|
164
178
|
requirements:
|
165
|
-
- -
|
179
|
+
- - ~>
|
166
180
|
- !ruby/object:Gem::Version
|
167
|
-
version: '3.
|
181
|
+
version: '3.3'
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: simplecov
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
171
185
|
requirements:
|
172
|
-
- -
|
186
|
+
- - ~>
|
173
187
|
- !ruby/object:Gem::Version
|
174
188
|
version: '0.10'
|
175
189
|
type: :development
|
176
190
|
prerelease: false
|
177
191
|
version_requirements: !ruby/object:Gem::Requirement
|
178
192
|
requirements:
|
179
|
-
- -
|
193
|
+
- - ~>
|
180
194
|
- !ruby/object:Gem::Version
|
181
195
|
version: '0.10'
|
182
196
|
- !ruby/object:Gem::Dependency
|
183
197
|
name: rack-test
|
184
198
|
requirement: !ruby/object:Gem::Requirement
|
185
199
|
requirements:
|
186
|
-
- -
|
200
|
+
- - ~>
|
187
201
|
- !ruby/object:Gem::Version
|
188
202
|
version: '0.6'
|
189
203
|
type: :development
|
190
204
|
prerelease: false
|
191
205
|
version_requirements: !ruby/object:Gem::Requirement
|
192
206
|
requirements:
|
193
|
-
- -
|
207
|
+
- - ~>
|
194
208
|
- !ruby/object:Gem::Version
|
195
209
|
version: '0.6'
|
196
210
|
- !ruby/object:Gem::Dependency
|
197
211
|
name: json
|
198
212
|
requirement: !ruby/object:Gem::Requirement
|
199
213
|
requirements:
|
200
|
-
- -
|
214
|
+
- - ~>
|
201
215
|
- !ruby/object:Gem::Version
|
202
216
|
version: '1.8'
|
203
217
|
type: :development
|
204
218
|
prerelease: false
|
205
219
|
version_requirements: !ruby/object:Gem::Requirement
|
206
220
|
requirements:
|
207
|
-
- -
|
221
|
+
- - ~>
|
208
222
|
- !ruby/object:Gem::Version
|
209
223
|
version: '1.8'
|
210
224
|
- !ruby/object:Gem::Dependency
|
211
225
|
name: nokogiri
|
212
226
|
requirement: !ruby/object:Gem::Requirement
|
213
227
|
requirements:
|
214
|
-
- -
|
228
|
+
- - ~>
|
215
229
|
- !ruby/object:Gem::Version
|
216
230
|
version: '1.6'
|
217
231
|
type: :development
|
218
232
|
prerelease: false
|
219
233
|
version_requirements: !ruby/object:Gem::Requirement
|
220
234
|
requirements:
|
221
|
-
- -
|
235
|
+
- - ~>
|
222
236
|
- !ruby/object:Gem::Version
|
223
237
|
version: '1.6'
|
224
238
|
- !ruby/object:Gem::Dependency
|
225
239
|
name: httparty
|
226
240
|
requirement: !ruby/object:Gem::Requirement
|
227
241
|
requirements:
|
228
|
-
- -
|
242
|
+
- - ~>
|
229
243
|
- !ruby/object:Gem::Version
|
230
244
|
version: '0.13'
|
231
245
|
type: :development
|
232
246
|
prerelease: false
|
233
247
|
version_requirements: !ruby/object:Gem::Requirement
|
234
248
|
requirements:
|
235
|
-
- -
|
249
|
+
- - ~>
|
236
250
|
- !ruby/object:Gem::Version
|
237
251
|
version: '0.13'
|
238
252
|
- !ruby/object:Gem::Dependency
|
239
253
|
name: wait_until
|
240
254
|
requirement: !ruby/object:Gem::Requirement
|
241
255
|
requirements:
|
242
|
-
- -
|
256
|
+
- - ~>
|
243
257
|
- !ruby/object:Gem::Version
|
244
258
|
version: '0.1'
|
245
259
|
type: :development
|
246
260
|
prerelease: false
|
247
261
|
version_requirements: !ruby/object:Gem::Requirement
|
248
262
|
requirements:
|
249
|
-
- -
|
263
|
+
- - ~>
|
250
264
|
- !ruby/object:Gem::Version
|
251
265
|
version: '0.1'
|
252
266
|
description: fakeweb for a HTTP server, informing it to stub / fake responses
|
@@ -255,154 +269,162 @@ executables: []
|
|
255
269
|
extensions: []
|
256
270
|
extra_rdoc_files: []
|
257
271
|
files:
|
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
|
-
-
|
346
|
-
-
|
347
|
-
-
|
348
|
-
-
|
349
|
-
-
|
350
|
-
-
|
351
|
-
-
|
352
|
-
-
|
353
|
-
-
|
354
|
-
-
|
355
|
-
-
|
356
|
-
-
|
357
|
-
-
|
358
|
-
-
|
359
|
-
-
|
360
|
-
-
|
361
|
-
-
|
362
|
-
-
|
363
|
-
-
|
364
|
-
-
|
365
|
-
-
|
366
|
-
-
|
367
|
-
-
|
368
|
-
-
|
369
|
-
-
|
370
|
-
-
|
371
|
-
-
|
372
|
-
-
|
373
|
-
-
|
374
|
-
-
|
375
|
-
-
|
376
|
-
-
|
377
|
-
-
|
378
|
-
-
|
379
|
-
-
|
380
|
-
-
|
381
|
-
-
|
382
|
-
-
|
383
|
-
-
|
384
|
-
-
|
385
|
-
-
|
386
|
-
-
|
387
|
-
-
|
388
|
-
-
|
389
|
-
-
|
390
|
-
-
|
391
|
-
-
|
392
|
-
-
|
393
|
-
-
|
394
|
-
-
|
395
|
-
-
|
396
|
-
-
|
397
|
-
-
|
398
|
-
-
|
399
|
-
-
|
400
|
-
-
|
401
|
-
-
|
402
|
-
-
|
403
|
-
-
|
404
|
-
-
|
405
|
-
-
|
272
|
+
- ./lib/http_stub.rb
|
273
|
+
- ./lib/http_stub/configurer.rb
|
274
|
+
- ./lib/http_stub/configurer/dsl/deprecated.rb
|
275
|
+
- ./lib/http_stub/configurer/dsl/scenario_activator.rb
|
276
|
+
- ./lib/http_stub/configurer/dsl/scenario_builder.rb
|
277
|
+
- ./lib/http_stub/configurer/dsl/server.rb
|
278
|
+
- ./lib/http_stub/configurer/dsl/stub_activator_builder.rb
|
279
|
+
- ./lib/http_stub/configurer/dsl/stub_builder.rb
|
280
|
+
- ./lib/http_stub/configurer/dsl/stub_builder_producer.rb
|
281
|
+
- ./lib/http_stub/configurer/request/controllable_value.rb
|
282
|
+
- ./lib/http_stub/configurer/request/http/basic.rb
|
283
|
+
- ./lib/http_stub/configurer/request/http/factory.rb
|
284
|
+
- ./lib/http_stub/configurer/request/http/multipart.rb
|
285
|
+
- ./lib/http_stub/configurer/request/omittable.rb
|
286
|
+
- ./lib/http_stub/configurer/request/regexpable.rb
|
287
|
+
- ./lib/http_stub/configurer/request/scenario.rb
|
288
|
+
- ./lib/http_stub/configurer/request/stub.rb
|
289
|
+
- ./lib/http_stub/configurer/request/stub_response.rb
|
290
|
+
- ./lib/http_stub/configurer/request/stub_response_file.rb
|
291
|
+
- ./lib/http_stub/configurer/server/buffered_command_processor.rb
|
292
|
+
- ./lib/http_stub/configurer/server/command.rb
|
293
|
+
- ./lib/http_stub/configurer/server/command_processor.rb
|
294
|
+
- ./lib/http_stub/configurer/server/facade.rb
|
295
|
+
- ./lib/http_stub/configurer/server/request_processor.rb
|
296
|
+
- ./lib/http_stub/extensions/core/hash.rb
|
297
|
+
- ./lib/http_stub/extensions/rack/handler.rb
|
298
|
+
- ./lib/http_stub/hash_with_indifferent_and_insensitive_access.rb
|
299
|
+
- ./lib/http_stub/rake/server_daemon_tasks.rb
|
300
|
+
- ./lib/http_stub/rake/server_tasks.rb
|
301
|
+
- ./lib/http_stub/rake/task_generators.rb
|
302
|
+
- ./lib/http_stub/server/application.rb
|
303
|
+
- ./lib/http_stub/server/daemon.rb
|
304
|
+
- ./lib/http_stub/server/registry.rb
|
305
|
+
- ./lib/http_stub/server/response.rb
|
306
|
+
- ./lib/http_stub/server/response_pipeline.rb
|
307
|
+
- ./lib/http_stub/server/scenario.rb
|
308
|
+
- ./lib/http_stub/server/scenario/activator.rb
|
309
|
+
- ./lib/http_stub/server/scenario/controller.rb
|
310
|
+
- ./lib/http_stub/server/scenario/instance.rb
|
311
|
+
- ./lib/http_stub/server/scenario/request_parser.rb
|
312
|
+
- ./lib/http_stub/server/stub.rb
|
313
|
+
- ./lib/http_stub/server/stub/controller.rb
|
314
|
+
- ./lib/http_stub/server/stub/exact_value_matcher.rb
|
315
|
+
- ./lib/http_stub/server/stub/hash_with_string_value_matchers.rb
|
316
|
+
- ./lib/http_stub/server/stub/headers.rb
|
317
|
+
- ./lib/http_stub/server/stub/instance.rb
|
318
|
+
- ./lib/http_stub/server/stub/json_request_body.rb
|
319
|
+
- ./lib/http_stub/server/stub/method.rb
|
320
|
+
- ./lib/http_stub/server/stub/omitted_value_matcher.rb
|
321
|
+
- ./lib/http_stub/server/stub/payload_file_consolidator.rb
|
322
|
+
- ./lib/http_stub/server/stub/regexp_value_matcher.rb
|
323
|
+
- ./lib/http_stub/server/stub/registry.rb
|
324
|
+
- ./lib/http_stub/server/stub/request_body.rb
|
325
|
+
- ./lib/http_stub/server/stub/request_header_parser.rb
|
326
|
+
- ./lib/http_stub/server/stub/request_headers.rb
|
327
|
+
- ./lib/http_stub/server/stub/request_parameters.rb
|
328
|
+
- ./lib/http_stub/server/stub/request_parser.rb
|
329
|
+
- ./lib/http_stub/server/stub/response.rb
|
330
|
+
- ./lib/http_stub/server/stub/response/base.rb
|
331
|
+
- ./lib/http_stub/server/stub/response/file.rb
|
332
|
+
- ./lib/http_stub/server/stub/response/text.rb
|
333
|
+
- ./lib/http_stub/server/stub/simple_request_body.rb
|
334
|
+
- ./lib/http_stub/server/stub/string_value_matcher.rb
|
335
|
+
- ./lib/http_stub/server/stub/triggers.rb
|
336
|
+
- ./lib/http_stub/server/stub/truthy_request_matcher.rb
|
337
|
+
- ./lib/http_stub/server/stub/uri.rb
|
338
|
+
- ./lib/http_stub/server/views/_scenario.haml
|
339
|
+
- ./lib/http_stub/server/views/_stub.haml
|
340
|
+
- ./lib/http_stub/server/views/_stub_file_response.haml
|
341
|
+
- ./lib/http_stub/server/views/_stub_text_response.haml
|
342
|
+
- ./lib/http_stub/server/views/application.sass
|
343
|
+
- ./lib/http_stub/server/views/layout.haml
|
344
|
+
- ./lib/http_stub/server/views/scenarios.haml
|
345
|
+
- ./lib/http_stub/server/views/stubs.haml
|
346
|
+
- ./lib/http_stub/version.rb
|
347
|
+
- ./spec/acceptance/activator_spec.rb
|
348
|
+
- ./spec/acceptance/configurer_initialization_spec.rb
|
349
|
+
- ./spec/acceptance/scenario_spec.rb
|
350
|
+
- ./spec/acceptance/stub_body_schema_validation_spec.rb
|
351
|
+
- ./spec/acceptance/stub_control_values_spec.rb
|
352
|
+
- ./spec/acceptance/stub_spec.rb
|
353
|
+
- ./spec/acceptance/stub_trigger_spec.rb
|
354
|
+
- ./spec/curl_samples.txt
|
355
|
+
- ./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb
|
356
|
+
- ./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb
|
357
|
+
- ./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb
|
358
|
+
- ./spec/lib/http_stub/configurer/dsl/server_spec.rb
|
359
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb
|
360
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb
|
361
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb
|
362
|
+
- ./spec/lib/http_stub/configurer/request/controllable_value_spec.rb
|
363
|
+
- ./spec/lib/http_stub/configurer/request/http/basic_spec.rb
|
364
|
+
- ./spec/lib/http_stub/configurer/request/http/factory_spec.rb
|
365
|
+
- ./spec/lib/http_stub/configurer/request/http/multipart_spec.rb
|
366
|
+
- ./spec/lib/http_stub/configurer/request/omittable_spec.rb
|
367
|
+
- ./spec/lib/http_stub/configurer/request/regexpable_spec.rb
|
368
|
+
- ./spec/lib/http_stub/configurer/request/scenario_spec.rb
|
369
|
+
- ./spec/lib/http_stub/configurer/request/stub_response_spec.rb
|
370
|
+
- ./spec/lib/http_stub/configurer/request/stub_spec.rb
|
371
|
+
- ./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb
|
372
|
+
- ./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb
|
373
|
+
- ./spec/lib/http_stub/configurer/server/command_spec.rb
|
374
|
+
- ./spec/lib/http_stub/configurer/server/facade_spec.rb
|
375
|
+
- ./spec/lib/http_stub/configurer/server/request_processor_spec.rb
|
376
|
+
- ./spec/lib/http_stub/extensions/core/hash_spec.rb
|
377
|
+
- ./spec/lib/http_stub/extensions/rack/handler_spec.rb
|
378
|
+
- ./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb
|
379
|
+
- ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
|
380
|
+
- ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
|
381
|
+
- ./spec/lib/http_stub/rake/server_tasks_spec.rb
|
382
|
+
- ./spec/lib/http_stub/server/application_integration_spec.rb
|
383
|
+
- ./spec/lib/http_stub/server/application_spec.rb
|
384
|
+
- ./spec/lib/http_stub/server/daemon_integration_spec.rb
|
385
|
+
- ./spec/lib/http_stub/server/daemon_spec.rb
|
386
|
+
- ./spec/lib/http_stub/server/registry_spec.rb
|
387
|
+
- ./spec/lib/http_stub/server/request_file_consolidator_spec.rb
|
388
|
+
- ./spec/lib/http_stub/server/response_pipeline_spec.rb
|
389
|
+
- ./spec/lib/http_stub/server/response_spec.rb
|
390
|
+
- ./spec/lib/http_stub/server/scenario/activator_spec.rb
|
391
|
+
- ./spec/lib/http_stub/server/scenario/controller_spec.rb
|
392
|
+
- ./spec/lib/http_stub/server/scenario/instance_spec.rb
|
393
|
+
- ./spec/lib/http_stub/server/scenario/request_parser_spec.rb
|
394
|
+
- ./spec/lib/http_stub/server/scenario_spec.rb
|
395
|
+
- ./spec/lib/http_stub/server/stub/controller_spec.rb
|
396
|
+
- ./spec/lib/http_stub/server/stub/exact_value_matcher_spec.rb
|
397
|
+
- ./spec/lib/http_stub/server/stub/hash_with_string_value_matchers_spec.rb
|
398
|
+
- ./spec/lib/http_stub/server/stub/headers_spec.rb
|
399
|
+
- ./spec/lib/http_stub/server/stub/instance_spec.rb
|
400
|
+
- ./spec/lib/http_stub/server/stub/json_request_body_spec.rb
|
401
|
+
- ./spec/lib/http_stub/server/stub/method_spec.rb
|
402
|
+
- ./spec/lib/http_stub/server/stub/omitted_value_matcher_spec.rb
|
403
|
+
- ./spec/lib/http_stub/server/stub/regexp_value_matcher_spec.rb
|
404
|
+
- ./spec/lib/http_stub/server/stub/registry_integration_spec.rb
|
405
|
+
- ./spec/lib/http_stub/server/stub/registry_spec.rb
|
406
|
+
- ./spec/lib/http_stub/server/stub/request_body_spec.rb
|
407
|
+
- ./spec/lib/http_stub/server/stub/request_header_parser_spec.rb
|
408
|
+
- ./spec/lib/http_stub/server/stub/request_headers_spec.rb
|
409
|
+
- ./spec/lib/http_stub/server/stub/request_parameters_spec.rb
|
410
|
+
- ./spec/lib/http_stub/server/stub/request_parser_spec.rb
|
411
|
+
- ./spec/lib/http_stub/server/stub/response/base_spec.rb
|
412
|
+
- ./spec/lib/http_stub/server/stub/response/file_spec.rb
|
413
|
+
- ./spec/lib/http_stub/server/stub/response/text_spec.rb
|
414
|
+
- ./spec/lib/http_stub/server/stub/response_spec.rb
|
415
|
+
- ./spec/lib/http_stub/server/stub/simple_request_body_spec.rb
|
416
|
+
- ./spec/lib/http_stub/server/stub/string_value_matcher_spec.rb
|
417
|
+
- ./spec/lib/http_stub/server/stub/triggers_spec.rb
|
418
|
+
- ./spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb
|
419
|
+
- ./spec/lib/http_stub/server/stub/uri_spec.rb
|
420
|
+
- ./spec/lib/http_stub/server/stub_spec.rb
|
421
|
+
- ./spec/resources/sample.pdf
|
422
|
+
- ./spec/resources/sample.txt
|
423
|
+
- ./spec/spec_helper.rb
|
424
|
+
- ./spec/support/configurer_integration.rb
|
425
|
+
- ./spec/support/scenario_fixture.rb
|
426
|
+
- ./spec/support/server_integration.rb
|
427
|
+
- ./spec/support/stub_fixture.rb
|
406
428
|
homepage: http://github.com/MYOB-Technology/http_stub
|
407
429
|
licenses:
|
408
430
|
- MIT
|
@@ -413,95 +435,99 @@ require_paths:
|
|
413
435
|
- lib
|
414
436
|
required_ruby_version: !ruby/object:Gem::Requirement
|
415
437
|
requirements:
|
416
|
-
- -
|
438
|
+
- - ! '>='
|
417
439
|
- !ruby/object:Gem::Version
|
418
440
|
version: 1.9.3
|
419
441
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
420
442
|
requirements:
|
421
|
-
- -
|
443
|
+
- - ! '>'
|
422
444
|
- !ruby/object:Gem::Version
|
423
445
|
version: 1.3.1
|
424
446
|
requirements: []
|
425
447
|
rubyforge_project: http_stub
|
426
|
-
rubygems_version: 2.4.
|
448
|
+
rubygems_version: 2.4.8
|
427
449
|
signing_key:
|
428
450
|
specification_version: 4
|
429
451
|
summary: A HTTP Server replaying configured stub responses
|
430
452
|
test_files:
|
431
|
-
-
|
432
|
-
-
|
433
|
-
-
|
434
|
-
-
|
435
|
-
-
|
436
|
-
-
|
437
|
-
-
|
438
|
-
-
|
439
|
-
-
|
440
|
-
-
|
441
|
-
-
|
442
|
-
-
|
443
|
-
-
|
444
|
-
-
|
445
|
-
-
|
446
|
-
-
|
447
|
-
-
|
448
|
-
-
|
449
|
-
-
|
450
|
-
-
|
451
|
-
-
|
452
|
-
-
|
453
|
-
-
|
454
|
-
-
|
455
|
-
-
|
456
|
-
-
|
457
|
-
-
|
458
|
-
-
|
459
|
-
-
|
460
|
-
-
|
461
|
-
-
|
462
|
-
-
|
463
|
-
-
|
464
|
-
-
|
465
|
-
-
|
466
|
-
-
|
467
|
-
-
|
468
|
-
-
|
469
|
-
-
|
470
|
-
-
|
471
|
-
-
|
472
|
-
-
|
473
|
-
-
|
474
|
-
-
|
475
|
-
-
|
476
|
-
-
|
477
|
-
-
|
478
|
-
-
|
479
|
-
-
|
480
|
-
-
|
481
|
-
-
|
482
|
-
-
|
483
|
-
-
|
484
|
-
-
|
485
|
-
-
|
486
|
-
-
|
487
|
-
-
|
488
|
-
-
|
489
|
-
-
|
490
|
-
-
|
491
|
-
-
|
492
|
-
-
|
493
|
-
-
|
494
|
-
-
|
495
|
-
-
|
496
|
-
-
|
497
|
-
-
|
498
|
-
-
|
499
|
-
-
|
500
|
-
-
|
501
|
-
-
|
502
|
-
-
|
503
|
-
-
|
504
|
-
-
|
505
|
-
-
|
506
|
-
-
|
507
|
-
-
|
453
|
+
- ./spec/acceptance/activator_spec.rb
|
454
|
+
- ./spec/acceptance/configurer_initialization_spec.rb
|
455
|
+
- ./spec/acceptance/scenario_spec.rb
|
456
|
+
- ./spec/acceptance/stub_body_schema_validation_spec.rb
|
457
|
+
- ./spec/acceptance/stub_control_values_spec.rb
|
458
|
+
- ./spec/acceptance/stub_spec.rb
|
459
|
+
- ./spec/acceptance/stub_trigger_spec.rb
|
460
|
+
- ./spec/curl_samples.txt
|
461
|
+
- ./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb
|
462
|
+
- ./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb
|
463
|
+
- ./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb
|
464
|
+
- ./spec/lib/http_stub/configurer/dsl/server_spec.rb
|
465
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb
|
466
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb
|
467
|
+
- ./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb
|
468
|
+
- ./spec/lib/http_stub/configurer/request/controllable_value_spec.rb
|
469
|
+
- ./spec/lib/http_stub/configurer/request/http/basic_spec.rb
|
470
|
+
- ./spec/lib/http_stub/configurer/request/http/factory_spec.rb
|
471
|
+
- ./spec/lib/http_stub/configurer/request/http/multipart_spec.rb
|
472
|
+
- ./spec/lib/http_stub/configurer/request/omittable_spec.rb
|
473
|
+
- ./spec/lib/http_stub/configurer/request/regexpable_spec.rb
|
474
|
+
- ./spec/lib/http_stub/configurer/request/scenario_spec.rb
|
475
|
+
- ./spec/lib/http_stub/configurer/request/stub_response_spec.rb
|
476
|
+
- ./spec/lib/http_stub/configurer/request/stub_spec.rb
|
477
|
+
- ./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb
|
478
|
+
- ./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb
|
479
|
+
- ./spec/lib/http_stub/configurer/server/command_spec.rb
|
480
|
+
- ./spec/lib/http_stub/configurer/server/facade_spec.rb
|
481
|
+
- ./spec/lib/http_stub/configurer/server/request_processor_spec.rb
|
482
|
+
- ./spec/lib/http_stub/extensions/core/hash_spec.rb
|
483
|
+
- ./spec/lib/http_stub/extensions/rack/handler_spec.rb
|
484
|
+
- ./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb
|
485
|
+
- ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
|
486
|
+
- ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
|
487
|
+
- ./spec/lib/http_stub/rake/server_tasks_spec.rb
|
488
|
+
- ./spec/lib/http_stub/server/application_integration_spec.rb
|
489
|
+
- ./spec/lib/http_stub/server/application_spec.rb
|
490
|
+
- ./spec/lib/http_stub/server/daemon_integration_spec.rb
|
491
|
+
- ./spec/lib/http_stub/server/daemon_spec.rb
|
492
|
+
- ./spec/lib/http_stub/server/registry_spec.rb
|
493
|
+
- ./spec/lib/http_stub/server/request_file_consolidator_spec.rb
|
494
|
+
- ./spec/lib/http_stub/server/response_pipeline_spec.rb
|
495
|
+
- ./spec/lib/http_stub/server/response_spec.rb
|
496
|
+
- ./spec/lib/http_stub/server/scenario/activator_spec.rb
|
497
|
+
- ./spec/lib/http_stub/server/scenario/controller_spec.rb
|
498
|
+
- ./spec/lib/http_stub/server/scenario/instance_spec.rb
|
499
|
+
- ./spec/lib/http_stub/server/scenario/request_parser_spec.rb
|
500
|
+
- ./spec/lib/http_stub/server/scenario_spec.rb
|
501
|
+
- ./spec/lib/http_stub/server/stub/controller_spec.rb
|
502
|
+
- ./spec/lib/http_stub/server/stub/exact_value_matcher_spec.rb
|
503
|
+
- ./spec/lib/http_stub/server/stub/hash_with_string_value_matchers_spec.rb
|
504
|
+
- ./spec/lib/http_stub/server/stub/headers_spec.rb
|
505
|
+
- ./spec/lib/http_stub/server/stub/instance_spec.rb
|
506
|
+
- ./spec/lib/http_stub/server/stub/json_request_body_spec.rb
|
507
|
+
- ./spec/lib/http_stub/server/stub/method_spec.rb
|
508
|
+
- ./spec/lib/http_stub/server/stub/omitted_value_matcher_spec.rb
|
509
|
+
- ./spec/lib/http_stub/server/stub/regexp_value_matcher_spec.rb
|
510
|
+
- ./spec/lib/http_stub/server/stub/registry_integration_spec.rb
|
511
|
+
- ./spec/lib/http_stub/server/stub/registry_spec.rb
|
512
|
+
- ./spec/lib/http_stub/server/stub/request_body_spec.rb
|
513
|
+
- ./spec/lib/http_stub/server/stub/request_header_parser_spec.rb
|
514
|
+
- ./spec/lib/http_stub/server/stub/request_headers_spec.rb
|
515
|
+
- ./spec/lib/http_stub/server/stub/request_parameters_spec.rb
|
516
|
+
- ./spec/lib/http_stub/server/stub/request_parser_spec.rb
|
517
|
+
- ./spec/lib/http_stub/server/stub/response/base_spec.rb
|
518
|
+
- ./spec/lib/http_stub/server/stub/response/file_spec.rb
|
519
|
+
- ./spec/lib/http_stub/server/stub/response/text_spec.rb
|
520
|
+
- ./spec/lib/http_stub/server/stub/response_spec.rb
|
521
|
+
- ./spec/lib/http_stub/server/stub/simple_request_body_spec.rb
|
522
|
+
- ./spec/lib/http_stub/server/stub/string_value_matcher_spec.rb
|
523
|
+
- ./spec/lib/http_stub/server/stub/triggers_spec.rb
|
524
|
+
- ./spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb
|
525
|
+
- ./spec/lib/http_stub/server/stub/uri_spec.rb
|
526
|
+
- ./spec/lib/http_stub/server/stub_spec.rb
|
527
|
+
- ./spec/resources/sample.pdf
|
528
|
+
- ./spec/resources/sample.txt
|
529
|
+
- ./spec/spec_helper.rb
|
530
|
+
- ./spec/support/configurer_integration.rb
|
531
|
+
- ./spec/support/scenario_fixture.rb
|
532
|
+
- ./spec/support/server_integration.rb
|
533
|
+
- ./spec/support/stub_fixture.rb
|