pact-support 0.5.7 → 0.5.8

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: 8eeb1140d12c89f3c03f855ecfbb9666259b502c
4
- data.tar.gz: 8b7e7ef1dea78d0abe77c2fb0db5a17f46ee47e9
3
+ metadata.gz: c2de833e83f1a3601b744d32284ec97cae255845
4
+ data.tar.gz: 7973e7dc4abf2be5585fa711cf6720bb03142b3a
5
5
  SHA512:
6
- metadata.gz: 9cbde3f5574d69c3be0b1e8f2fa7cd196e4c2e42133e966a7087d8a4f3796cb21906c93c7d6df5b97a445842031ed713ab1fa96de44f20110a25d3655e64fb49
7
- data.tar.gz: 09d6fc96eeb2c6fcdce7269392a47a08ba3efa50e927b2fc80e9d41a21197dd4d1e37826ebe211b81ca9c79ad019761462431243385f7a34ff2514414314f71c
6
+ metadata.gz: c699cb335a46aa904f37e2eaad71794f91a7c979ac80537eaa6ca666863cfd82cf9218be1cf666495d6cc903c69abf805a7c041115a76e72994526caffc6a96b
7
+ data.tar.gz: e7c6c581a58a1508441b502a3ceb65a364fb6dde957ef4096fb52246edafd2f2d80df17e022d29083b13c890dbfc742fd03a029cb060fc8ffe8e5b7ab4f07cfc
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
+
6
+ ### 0.5.8 (26 May 2016)
7
+ * 768b382 - Add pactfile_write_order configuration (Alex Malkov, Mon May 23 11:02:27 2016 +0100)
8
+
5
9
  ### 0.5.7 (3 May 2016)
6
10
  * 289d4e5 - Handle loading local pact files as well as remote (Sergei Matheson, Tue May 3 12:56:51 2016 +1000)
7
11
  * 6d4e559 - Update to ruby 2.3.1 in travis (Sergei Matheson, Tue May 3 10:46:46 2016 +1000)
@@ -46,6 +46,7 @@ module Pact
46
46
 
47
47
  attr_accessor :error_stream
48
48
  attr_accessor :output_stream
49
+ attr_accessor :pactfile_write_order
49
50
 
50
51
  def self.default_configuration
51
52
  c = Configuration.new
@@ -55,6 +56,7 @@ module Pact
55
56
 
56
57
  c.output_stream = $stdout
57
58
  c.error_stream = $stderr
59
+ c.pactfile_write_order = :chronological
58
60
 
59
61
  c
60
62
  end
@@ -179,4 +181,4 @@ module Pact
179
181
  @configuration = nil
180
182
  end
181
183
 
182
- end
184
+ end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "0.5.7"
3
+ VERSION = "0.5.8"
4
4
  end
5
5
  end
@@ -20,6 +20,16 @@ module Pact
20
20
 
21
21
  end
22
22
 
23
+ describe "#pactfile_write_order" do
24
+ it "sets pactfile_write_order to chronological by default" do
25
+ expect(subject.pactfile_write_order).to eq(:chronological)
26
+ end
27
+
28
+ it "allows configuration of pactfile_write_order" do
29
+ subject.pactfile_write_order = :alphabetical
30
+ expect(subject.pactfile_write_order).to eq(:alphabetical)
31
+ end
32
+ end
23
33
 
24
34
  describe "#body_differ_for_content_type" do
25
35
  context "when the Content-Type is nil" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
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: 2016-05-03 00:00:00.000000000 Z
15
+ date: 2016-05-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp
@@ -373,7 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  version: '0'
374
374
  requirements: []
375
375
  rubyforge_project:
376
- rubygems_version: 2.4.5
376
+ rubygems_version: 2.5.1
377
377
  signing_key:
378
378
  specification_version: 4
379
379
  summary: Shared code for Pact gems