pact-mock_service 2.0.1 → 2.1.0

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: 878a7bdcbd07da354857adfe0eaead4f7a7df91b
4
- data.tar.gz: ecea144926461df7936678c54dd44a8aa84f97c8
3
+ metadata.gz: b6c3b3cd0d4b633ce3a95b86f9e32f7ffa3111ee
4
+ data.tar.gz: c7664be7b98c9a003312d5386756b06f2e3d2b30
5
5
  SHA512:
6
- metadata.gz: 3112599095c361f9e20b9d448761c8125cdc83007b002c55f0eeec871342d0bb6cffd775d3fca69e103c202ce88c5e91dac2ff25fa1b2ba22c76f769661c79dd
7
- data.tar.gz: d2bac546292fb47abdc7bac62355b10296b2ea53a778df02422df7cc48931c3fa1caf7001a2917e68225853418dad3e1ff48f99b8a099f3c7299dcb18c5aea31
6
+ metadata.gz: d13741f947caeb81921a90156acdb4ef41813908d3da83c293f57693af92cd28aebe521ea21a55047a45dde1a7146fcbce4d37d4c31ee499e9e0e2859938c51d
7
+ data.tar.gz: 935a0c04938be72338e03e797e810a0c1190c6207be120240a1495f8db27d0b95723003f4f650edc86546ef2cc0eacb94814ca03e767e47377bfe311ae5ae857
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@ 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
+ ### 2.1.0 (12 May 2017)
6
+ * 5b89d95 - Updated location of pact specification version in pact to metadata.pactSpecification.version. As per issue #137 (Beth Skurrie, Fri May 12 11:03:54 2017 +1000)
7
+ * b85ad94 - Update mock service interaction decorator to use providerState between the consumer DSL and the mock service, just to avoid any further confusion! (Beth Skurrie, Fri May 12 08:41:56 2017 +1000)
8
+
5
9
  ### 2.0.1 (11 May 2017)
6
10
  * 2c106b9 - Fix serialisation of request in pact for pact spec 2. (Beth Skurrie, Thu May 11 09:32:43 2017 +1000)
7
11
 
@@ -17,7 +17,9 @@ module Pact
17
17
  provider: consumer_contract.provider.as_json,
18
18
  interactions: sorted_interactions.collect{ |i| InteractionDecorator.new(i, @decorator_options).as_json},
19
19
  metadata: {
20
- pactSpecificationVersion: pact_specification_version
20
+ pactSpecification: {
21
+ version: pact_specification_version
22
+ }
21
23
  }
22
24
  )
23
25
  end
@@ -14,7 +14,7 @@ module Pact
14
14
 
15
15
  def as_json options = {}
16
16
  hash = { :description => interaction.description }
17
- hash[:provider_state] = interaction.provider_state if interaction.provider_state
17
+ hash[:providerState] = interaction.provider_state if interaction.provider_state
18
18
  hash[:request] = decorate_request.as_json(options)
19
19
  hash[:response] = decorate_response.as_json(options)
20
20
  fix_all_the_things hash
@@ -25,7 +25,7 @@ module Pact
25
25
 
26
26
  def to_hash
27
27
  hash = { :description => interaction.description }
28
- hash[:provider_state] = interaction.provider_state if interaction.provider_state
28
+ hash[:providerState] = interaction.provider_state if interaction.provider_state
29
29
  hash[:request] = decorate_request.as_json
30
30
  hash[:response] = decorate_response.as_json
31
31
  hash
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
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.0.1
4
+ version: 2.1.0
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-05-10 00:00:00.000000000 Z
15
+ date: 2017-05-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack