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 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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pact (1.0.33)
4
+ pact (1.0.34)
5
5
  awesome_print (~> 1.1)
6
6
  find_a_port (~> 1.0.1)
7
7
  json
@@ -62,8 +62,6 @@
62
62
  }
63
63
  ],
64
64
  "metadata": {
65
- "pact_gem": {
66
- "version": "1.0.30"
67
- }
65
+ "pactSpecificationVersion": "1.0"
68
66
  }
69
67
  }
@@ -41,9 +41,7 @@ module Pact
41
41
  consumer: @consumer.as_json,
42
42
  interactions: @interactions.collect(&:as_json),
43
43
  metadata: {
44
- pact_gem: {
45
- version: Pact::VERSION
46
- }
44
+ pactSpecificationVersion: "1.0"
47
45
  }
48
46
  }
49
47
  end
data/lib/pact/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.0.33"
2
+ VERSION = "1.0.34"
3
3
  end
@@ -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=>{:pact_gem=>{:version=>"1.0"}}} }
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
- "pact_gem": {
172
- "version": "#{Pact::VERSION}"
173
- }
171
+ "pactSpecificationVersion": "1.0"
174
172
  }
175
173
  }
176
174
  eos
@@ -27,8 +27,6 @@
27
27
  }
28
28
  ],
29
29
  "metadata": {
30
- "pact_gem": {
31
- "version": "0.1.24"
32
- }
30
+ "pactSpecificationVersion": "1.0"
33
31
  }
34
32
  }
@@ -27,8 +27,6 @@
27
27
  }
28
28
  ],
29
29
  "metadata": {
30
- "pact_gem": {
31
- "version": "0.1.24"
32
- }
30
+ "pactSpecificationVersion": "1.0"
33
31
  }
34
32
  }
@@ -19,8 +19,6 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "pact_gem": {
23
- "version": "0.1.24"
24
- }
22
+ "pactSpecificationVersion": "1.0"
25
23
  }
26
24
  }
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.33
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-13 00:00:00.000000000 Z
16
+ date: 2014-03-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: randexp