pact 1.0.35 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,10 @@ 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.36 (19 March 2014)
6
+
7
+ * c28de11 - Added patch level to pactSpecificationVersion (bethesque, 37 seconds ago)
8
+
5
9
  ### 1.0.35 (19 March 2014)
6
10
 
7
11
  * 44c6806 - Updated README.md with new set_up and tear_down instructions (bethesque, 29 seconds ago)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pact (1.0.35)
4
+ pact (1.0.36)
5
5
  awesome_print (~> 1.1)
6
6
  find_a_port (~> 1.0.1)
7
7
  json
@@ -41,7 +41,7 @@ module Pact
41
41
  consumer: @consumer.as_json,
42
42
  interactions: @interactions.collect(&:as_json),
43
43
  metadata: {
44
- pactSpecificationVersion: "1.0"
44
+ pactSpecificationVersion: "1.0.0"
45
45
  }
46
46
  }
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.0.35"
2
+ VERSION = "1.0.36"
3
3
  end
@@ -11,35 +11,19 @@ module Pact
11
11
  end
12
12
  end
13
13
 
14
- def silence_warnings
15
- old_verbose, $VERBOSE = $VERBOSE, nil
16
- yield
17
- ensure
18
- $VERBOSE = old_verbose
19
- end
20
-
21
14
  before do
22
- @backup_version = Pact::VERSION
23
- silence_warnings do
24
- Pact::VERSION = "1.0"
25
- end
26
15
  DateTime.stub(:now).and_return(DateTime.strptime("2013-08-15T13:27:13+10:00"))
27
16
  end
28
17
 
29
18
  let(:service_consumer) { double('ServiceConsumer', :as_json => {:a => 'consumer'}) }
30
19
  let(:service_provider) { double('ServiceProvider', :as_json => {:a => 'provider'}) }
31
20
  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=>{:pactSpecificationVersion=> "1.0" }} }
21
+ let(:expected_as_json) { {:provider=>{:a=>"provider"}, :consumer=>{:a=>"consumer"}, :interactions=>[{:mock=>"interaction"}], :metadata=>{:pactSpecificationVersion=> "1.0.0" }} }
33
22
 
34
23
  it "should return a hash representation of the Pact" do
35
24
  pact.as_json.should eq expected_as_json
36
25
  end
37
26
 
38
- after do
39
- silence_warnings do
40
- Pact::VERSION = @backup_version
41
- end
42
- end
43
27
  end
44
28
 
45
29
  describe ".from_json" do
@@ -168,7 +152,7 @@ module Pact
168
152
  "something"
169
153
  ],
170
154
  "metadata": {
171
- "pactSpecificationVersion": "1.0"
155
+ "pactSpecificationVersion": "1.0.0"
172
156
  }
173
157
  }
174
158
  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.35
4
+ version: 1.0.36
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -455,7 +455,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
455
455
  version: '0'
456
456
  segments:
457
457
  - 0
458
- hash: 548296881377135136
458
+ hash: -1828348959629147928
459
459
  required_rubygems_version: !ruby/object:Gem::Requirement
460
460
  none: false
461
461
  requirements:
@@ -464,7 +464,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
464
464
  version: '0'
465
465
  segments:
466
466
  - 0
467
- hash: 548296881377135136
467
+ hash: -1828348959629147928
468
468
  requirements: []
469
469
  rubyforge_project:
470
470
  rubygems_version: 1.8.23