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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pact/configuration.rb +3 -1
- data/lib/pact/support/version.rb +1 -1
- data/spec/lib/pact/configuration_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2de833e83f1a3601b744d32284ec97cae255845
|
4
|
+
data.tar.gz: 7973e7dc4abf2be5585fa711cf6720bb03142b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/pact/configuration.rb
CHANGED
@@ -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
|
data/lib/pact/support/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
376
|
+
rubygems_version: 2.5.1
|
377
377
|
signing_key:
|
378
378
|
specification_version: 4
|
379
379
|
summary: Shared code for Pact gems
|