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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca417e1f4ea22223f994884bf2fa270d428fe06174ec2b4d2aab69cf90f29056
4
- data.tar.gz: 3ff3656e819c3913f443250bf5ed13f79459913106f005a2a256bd0f2cc47712
3
+ metadata.gz: 6cdcb814012c42d3d775df3678b8d5c253424abd4513da41d200519c38a60525
4
+ data.tar.gz: 829901b8e31e9278b310df2ec9b957425b00099eab97a7f4e6d2ba057f2c8e5a
5
5
  SHA512:
6
- metadata.gz: f44cf9efdac4f14caa6c980a5fb07ddaaa6d6292524a132ffc81d1710b680e9f0b270542af5fc4b5eb0afd47beb520d62e793413cbaba9f0e32a37da3c93418f
7
- data.tar.gz: c4deab60e803d23cc25f05dbe7bad9f2adae0f9743b9dedde87ee461b419011f7f9346cc7963b08b37e502450f205281e24a88a148c68f7caf4c2c8743d054c2
6
+ metadata.gz: 85a74f86ac93caa3edbff287b9feead78f58fd6f755ac8e5fd77a55d17086c00e8875c69f11d47e02a40e8a99be698d95f6764a6f64db5a16347e7a84b7b7027
7
+ data.tar.gz: 745e3aeea217cc0b48bb8aa706369e6bc0fb1d4608e521e807b583b462bb0f7b39870950d069b6617c98e26f81879999132a6ad61718a58d9c77607fe222f669
@@ -1,7 +1,12 @@
1
- Do this to generate your change history
1
+ <a name="v2.6.3"></a>
2
+ ### v2.6.3 (2017-12-18)
2
3
 
3
- git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
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: 1
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.each do | pactfile_path |
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
- interactions = hash_interactions.collect { | hash | Interaction.from_hash(hash) }
45
- @session.set_expected_interactions interactions
46
- end
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
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "2.6.2"
3
+ VERSION = "2.6.3"
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: 2.6.2
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-11-19 00:00:00.000000000 Z
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.2
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