pact-mock_service 0.5.4 → 0.5.5

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: 6f53d4fe9a85d9b152161d699136087dff0c20d3
4
- data.tar.gz: 2eaaa4353dc7154f0d89f88f6e758c5e9c42f794
3
+ metadata.gz: 69912707ae0e31775025cd4dc61d3f3e151b05ad
4
+ data.tar.gz: cb02726ec3f0b7112ff50879c72688f68a1a577d
5
5
  SHA512:
6
- metadata.gz: 9c86ed29cce3b1d30f63b5a4aa9a913e463c4a8933ec335a6d6392a9590c54d34b0a5c421dfc04b9c7d39ab0721104de4c1ca5f2dd8ebc59877533f081a1b50e
7
- data.tar.gz: 874ff48c3425ceaefc66bfa0d6ea34da0245f50ec78b512a6123bb236b1c4018f32dd057e9a80099da5802b7cb8efef0c59bf155ef1cbfbd90f1ff1a43228088
6
+ metadata.gz: 7d4bad010d694af77ccdd3afc55f584d1a8f41d4bb0e5eeb3b2cec7c3ae7db773540d3b425afa320ab936b47e0b39c48eafbb85459f094344d2932ad3bb60a62
7
+ data.tar.gz: aba9dac4f11d7aa4351c6a3a9d1ba914d64671f078789fcc54731e23ea0f394b335bce751442da7a1eb3241fa8f9c35fdb6332aec8688f7e1c4ef2a79661049b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@ Do this to generate your change history
2
2
 
3
3
  git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
4
4
 
5
+ ### 0.5.5 (25 May 2015)
6
+
7
+ * 3b2ec14 - Produce a valid rack response on interaction post error (David Heath, Fri May 22 16:42:03 2015 +0100)
8
+ * 9e3cb8b - Allow webrick_options to be passed in to Pact::MockService::Run to silence the start up and shut down logs if necessary (Beth Skurrie, Fri May 15 17:28:55 2015 +1000)
9
+
5
10
  ### 0.5.4 (13 May 2015)
6
11
 
7
12
  * 7d016be - Fix failed merge which broke windows wrapper (Anthony Damtsis, Wed May 13 11:13:25 2015 +1000)
@@ -25,8 +25,7 @@ module Pact
25
25
  mock_service = Pact::MockService::Spawn.(consumer_name, provider_name, port, options)
26
26
  delegator = Delegator.new(mock_service, consumer_name, provider_name)
27
27
  @mock_services.add(delegator)
28
- response = delegator.call(env)
29
- response
28
+ delegator.call(env)
30
29
  end
31
30
  end
32
31
  end
@@ -27,7 +27,7 @@ module Pact
27
27
  session.add_expected_interaction interaction
28
28
  [200, {}, ['Set interactions']]
29
29
  rescue AlmostDuplicateInteractionError => e
30
- [500, {}, e.message]
30
+ [500, {}, [e.message]]
31
31
  end
32
32
 
33
33
  end
@@ -70,6 +70,7 @@ module Pact
70
70
  :AccessLog => []
71
71
  }
72
72
  opts.merge!(ssl_opts) if options[:ssl]
73
+ opts.merge!(options[:webbrick_options]) if options[:webbrick_options]
73
74
  opts
74
75
  end
75
76
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-mock_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,230 +12,230 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-05-13 00:00:00.000000000 Z
15
+ date: 2015-05-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - '>='
22
22
  - !ruby/object:Gem::Version
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ">="
28
+ - - '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rspec
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ">="
35
+ - - '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '2.14'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - ">="
42
+ - - '>='
43
43
  - !ruby/object:Gem::Version
44
44
  version: '2.14'
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: find_a_port
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - ~>
50
50
  - !ruby/object:Gem::Version
51
51
  version: 1.0.1
52
52
  type: :runtime
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - "~>"
56
+ - - ~>
57
57
  - !ruby/object:Gem::Version
58
58
  version: 1.0.1
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rack-test
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - "~>"
63
+ - - ~>
64
64
  - !ruby/object:Gem::Version
65
65
  version: 0.6.2
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - "~>"
70
+ - - ~>
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.6.2
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: thor
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
77
+ - - '>='
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  type: :runtime
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ">="
84
+ - - '>='
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: json
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  type: :runtime
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">="
98
+ - - '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: webrick
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">="
112
+ - - '>='
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - "~>"
119
+ - - ~>
120
120
  - !ruby/object:Gem::Version
121
121
  version: '1.0'
122
122
  type: :runtime
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - "~>"
126
+ - - ~>
127
127
  - !ruby/object:Gem::Version
128
128
  version: '1.0'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: pact-support
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - "~>"
133
+ - - ~>
134
134
  - !ruby/object:Gem::Version
135
135
  version: 0.4.0
136
136
  type: :runtime
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - "~>"
140
+ - - ~>
141
141
  - !ruby/object:Gem::Version
142
142
  version: 0.4.0
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: rake
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ~>
148
148
  - !ruby/object:Gem::Version
149
149
  version: 10.0.3
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - "~>"
154
+ - - ~>
155
155
  - !ruby/object:Gem::Version
156
156
  version: 10.0.3
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: webmock
159
159
  requirement: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - "~>"
161
+ - - ~>
162
162
  - !ruby/object:Gem::Version
163
163
  version: 1.18.0
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - "~>"
168
+ - - ~>
169
169
  - !ruby/object:Gem::Version
170
170
  version: 1.18.0
171
171
  - !ruby/object:Gem::Dependency
172
172
  name: pry
173
173
  requirement: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - ">="
175
+ - - '>='
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - '>='
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: fakefs
187
187
  requirement: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - "~>"
189
+ - - ~>
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0.4'
192
192
  type: :development
193
193
  prerelease: false
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - "~>"
196
+ - - ~>
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0.4'
199
199
  - !ruby/object:Gem::Dependency
200
200
  name: hashie
201
201
  requirement: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - "~>"
203
+ - - ~>
204
204
  - !ruby/object:Gem::Version
205
205
  version: '2.0'
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
- - - "~>"
210
+ - - ~>
211
211
  - !ruby/object:Gem::Version
212
212
  version: '2.0'
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: activesupport
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
- - - ">="
217
+ - - '>='
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  type: :development
221
221
  prerelease: false
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - ">="
224
+ - - '>='
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  - !ruby/object:Gem::Dependency
228
228
  name: faraday
229
229
  requirement: !ruby/object:Gem::Requirement
230
230
  requirements:
231
- - - ">="
231
+ - - '>='
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  type: :development
235
235
  prerelease: false
236
236
  version_requirements: !ruby/object:Gem::Requirement
237
237
  requirements:
238
- - - ">="
238
+ - - '>='
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  description:
@@ -250,10 +250,6 @@ executables:
250
250
  extensions: []
251
251
  extra_rdoc_files: []
252
252
  files:
253
- - CHANGELOG.md
254
- - Gemfile
255
- - LICENSE.txt
256
- - README.md
257
253
  - bin/pact-mock-service
258
254
  - lib/pact/consumer/mock_service/cors_origin_header_middleware.rb
259
255
  - lib/pact/consumer/mock_service/error_handler.rb
@@ -265,11 +261,10 @@ files:
265
261
  - lib/pact/consumer_contract/interaction_decorator.rb
266
262
  - lib/pact/consumer_contract/request_decorator.rb
267
263
  - lib/pact/consumer_contract/response_decorator.rb
268
- - lib/pact/mock_service.rb
269
264
  - lib/pact/mock_service/app.rb
270
265
  - lib/pact/mock_service/app_manager.rb
271
- - lib/pact/mock_service/cli.rb
272
266
  - lib/pact/mock_service/cli/pidfile.rb
267
+ - lib/pact/mock_service/cli.rb
273
268
  - lib/pact/mock_service/client.rb
274
269
  - lib/pact/mock_service/control_server/app.rb
275
270
  - lib/pact/mock_service/control_server/delegator.rb
@@ -289,7 +284,6 @@ files:
289
284
  - lib/pact/mock_service/interactions/verified_interactions.rb
290
285
  - lib/pact/mock_service/logger.rb
291
286
  - lib/pact/mock_service/request_decorator.rb
292
- - lib/pact/mock_service/request_handlers.rb
293
287
  - lib/pact/mock_service/request_handlers/base_administration_request_handler.rb
294
288
  - lib/pact/mock_service/request_handlers/base_request_handler.rb
295
289
  - lib/pact/mock_service/request_handlers/index_get.rb
@@ -302,6 +296,7 @@ files:
302
296
  - lib/pact/mock_service/request_handlers/options.rb
303
297
  - lib/pact/mock_service/request_handlers/pact_post.rb
304
298
  - lib/pact/mock_service/request_handlers/verification_get.rb
299
+ - lib/pact/mock_service/request_handlers.rb
305
300
  - lib/pact/mock_service/response_decorator.rb
306
301
  - lib/pact/mock_service/run.rb
307
302
  - lib/pact/mock_service/server/respawn.rb
@@ -310,6 +305,11 @@ files:
310
305
  - lib/pact/mock_service/session.rb
311
306
  - lib/pact/mock_service/spawn.rb
312
307
  - lib/pact/mock_service/version.rb
308
+ - lib/pact/mock_service.rb
309
+ - Gemfile
310
+ - LICENSE.txt
311
+ - README.md
312
+ - CHANGELOG.md
313
313
  homepage: https://github.com/bethesque/pact-mock_service
314
314
  licenses:
315
315
  - MIT
@@ -320,17 +320,17 @@ require_paths:
320
320
  - lib
321
321
  required_ruby_version: !ruby/object:Gem::Requirement
322
322
  requirements:
323
- - - ">="
323
+ - - '>='
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
- - - ">="
328
+ - - '>='
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  requirements: []
332
332
  rubyforge_project:
333
- rubygems_version: 2.2.2
333
+ rubygems_version: 2.0.14
334
334
  signing_key:
335
335
  specification_version: 4
336
336
  summary: Provides a mock service for use with Pact