pact 1.0.33 → 1.0.34
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/example/zoo-app/spec/pacts/zoo_app-animal_service.json +1 -3
- data/lib/pact/consumer_contract/consumer_contract.rb +1 -3
- data/lib/pact/version.rb +1 -1
- data/spec/lib/pact/consumer_contract/consumer_contract_spec.rb +2 -4
- data/spec/support/a_consumer-a_producer.json +1 -3
- data/spec/support/a_consumer-a_provider.json +1 -3
- data/spec/support/consumer_contract_template.json +1 -3
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,16 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
git log --date=relative --pretty=format:' * %h - %s (%an, %ad)'
|
4
4
|
|
5
|
+
### 1.0.34 (17 March 2013)
|
6
|
+
|
7
|
+
* 6c923f4 - In the pact file, replaced $.metadata.pact_gem.version with $.metadata.pactSpecificationVersion as the gem version is irrelevant - it is the serialization format that matters, and that hasn't changed yet. Also, recording the gem version creates extra changes to be committed when the gem is upgraded, and is meaningless for pacts generated/verified by the JVM code. (Beth Skurrie, 5 minutes ago)
|
8
|
+
|
5
9
|
### 1.0.33 (13 March 2013)
|
10
|
+
|
6
11
|
* 49456cc - Added the ability to configure modules that can be used in provider state definitions (Beth Skurrie, 75
|
7
12
|
|
8
13
|
### 1.0.32 (11 March 2014)
|
14
|
+
|
9
15
|
* 5a7cc36 - Adding as_json methods for diff indicators (index/key not found/unexpected) (Beth Skurrie, 2 days ago)
|
10
16
|
|
11
17
|
### 1.0.31 (11 March 2013)
|
data/Gemfile.lock
CHANGED
data/lib/pact/version.rb
CHANGED
@@ -29,7 +29,7 @@ module Pact
|
|
29
29
|
let(:service_consumer) { double('ServiceConsumer', :as_json => {:a => 'consumer'}) }
|
30
30
|
let(:service_provider) { double('ServiceProvider', :as_json => {:a => 'provider'}) }
|
31
31
|
let(:pact) { ConsumerContract.new({:interactions => [MockInteraction.new], :consumer => service_consumer, :provider => service_provider }) }
|
32
|
-
let(:expected_as_json) { {:provider=>{:a=>"provider"}, :consumer=>{:a=>"consumer"}, :interactions=>[{:mock=>"interaction"}], :metadata=>{:
|
32
|
+
let(:expected_as_json) { {:provider=>{:a=>"provider"}, :consumer=>{:a=>"consumer"}, :interactions=>[{:mock=>"interaction"}], :metadata=>{:pactSpecificationVersion=> "1.0" }} }
|
33
33
|
|
34
34
|
it "should return a hash representation of the Pact" do
|
35
35
|
pact.as_json.should eq expected_as_json
|
@@ -168,9 +168,7 @@ module Pact
|
|
168
168
|
"something"
|
169
169
|
],
|
170
170
|
"metadata": {
|
171
|
-
"
|
172
|
-
"version": "#{Pact::VERSION}"
|
173
|
-
}
|
171
|
+
"pactSpecificationVersion": "1.0"
|
174
172
|
}
|
175
173
|
}
|
176
174
|
eos
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.34
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-03-
|
16
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: randexp
|