pact-mock_service 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/README.md +1 -1
- data/lib/pact/mock_service/app.rb +4 -4
- data/lib/pact/mock_service/version.rb +1 -1
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cdcb814012c42d3d775df3678b8d5c253424abd4513da41d200519c38a60525
|
4
|
+
data.tar.gz: 829901b8e31e9278b310df2ec9b957425b00099eab97a7f4e6d2ba057f2c8e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a74f86ac93caa3edbff287b9feead78f58fd6f755ac8e5fd77a55d17086c00e8875c69f11d47e02a40e8a99be698d95f6764a6f64db5a16347e7a84b7b7027
|
7
|
+
data.tar.gz: 745e3aeea217cc0b48bb8aa706369e6bc0fb1d4608e521e807b583b462bb0f7b39870950d069b6617c98e26f81879999132a6ad61718a58d9c77607fe222f669
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
-
|
1
|
+
<a name="v2.6.3"></a>
|
2
|
+
### v2.6.3 (2017-12-18)
|
2
3
|
|
3
|
-
|
4
|
+
#### Bug Fixes
|
4
5
|
|
6
|
+
* **pact-stub-service**
|
7
|
+
* ensure all interactions loaded when loading multiple pacts ([4c0d698](/../../commit/4c0d698))
|
8
|
+
|
9
|
+
<a name="v2.6.1"></a>
|
5
10
|
### 2.6.1 (2017-11-17)
|
6
11
|
* 141988f - fix: don't blow up if Access-Control-Request-Headers is not present in OPTIONS request (Beth Skurrie, Fri Nov 17 09:53:29 2017 +1100)
|
7
12
|
|
data/README.md
CHANGED
@@ -66,7 +66,7 @@ Options:
|
|
66
66
|
-m, [--pact-file-write-mode=PACT_FILE_WRITE_MODE] # `overwrite` or `merge`. Use `merge` when running multiple mock service instances in parallel for the same consumer/provider pair. Ensure the pact file is deleted before running tests when using this option so that interactions deleted from the code are not maintained in the file.
|
67
67
|
# Default: overwrite
|
68
68
|
-i, [--pact-specification-version=PACT_SPECIFICATION_VERSION] # The pact specification version to use when writing the pact
|
69
|
-
# Default:
|
69
|
+
# Default: 2
|
70
70
|
-l, [--log=LOG] # File to which to log output
|
71
71
|
-o, [--cors=CORS] # Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses
|
72
72
|
[--ssl], [--no-ssl] # Use a self-signed SSL cert to run the service over HTTPS
|
@@ -38,12 +38,12 @@ module Pact
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def setup_stub stub_pactfile_paths
|
41
|
-
stub_pactfile_paths.
|
41
|
+
interactions = stub_pactfile_paths.collect do | pactfile_path |
|
42
42
|
$stdout.puts "INFO: Loading interactions from #{pactfile_path}"
|
43
43
|
hash_interactions = JSON.parse(File.read(pactfile_path))['interactions']
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
hash_interactions.collect { | hash | Interaction.from_hash(hash) }
|
45
|
+
end.flatten
|
46
|
+
@session.set_expected_interactions interactions
|
47
47
|
end
|
48
48
|
|
49
49
|
def write_pact_if_configured
|
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: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Fraser
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|
@@ -272,6 +272,34 @@ dependencies:
|
|
272
272
|
- - "~>"
|
273
273
|
- !ruby/object:Gem::Version
|
274
274
|
version: '4.7'
|
275
|
+
- !ruby/object:Gem::Dependency
|
276
|
+
name: conventional-changelog
|
277
|
+
requirement: !ruby/object:Gem::Requirement
|
278
|
+
requirements:
|
279
|
+
- - "~>"
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: '1.3'
|
282
|
+
type: :development
|
283
|
+
prerelease: false
|
284
|
+
version_requirements: !ruby/object:Gem::Requirement
|
285
|
+
requirements:
|
286
|
+
- - "~>"
|
287
|
+
- !ruby/object:Gem::Version
|
288
|
+
version: '1.3'
|
289
|
+
- !ruby/object:Gem::Dependency
|
290
|
+
name: bump
|
291
|
+
requirement: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - "~>"
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '0.5'
|
296
|
+
type: :development
|
297
|
+
prerelease: false
|
298
|
+
version_requirements: !ruby/object:Gem::Requirement
|
299
|
+
requirements:
|
300
|
+
- - "~>"
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: '0.5'
|
275
303
|
description:
|
276
304
|
email:
|
277
305
|
- james.fraser@alumni.swinburne.edu
|
@@ -370,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
398
|
version: '0'
|
371
399
|
requirements: []
|
372
400
|
rubyforge_project:
|
373
|
-
rubygems_version: 2.7.
|
401
|
+
rubygems_version: 2.7.3
|
374
402
|
signing_key:
|
375
403
|
specification_version: 4
|
376
404
|
summary: Provides a mock service for use with Pact
|