pact_broker 2.0.0.beta.5 → 2.0.0.beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/pact_broker/api/resources/latest_pact.rb +3 -2
- data/lib/pact_broker/api/resources/pact.rb +2 -1
- data/lib/pact_broker/api/resources/pact_versions.rb +1 -1
- data/lib/pact_broker/api/resources/versions.rb +1 -1
- data/lib/pact_broker/version.rb +1 -1
- data/spec/features/merge_pact_spec.rb +2 -2
- data/spec/features/publish_pact_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba498f4801e7aa66d4d689a7177a3ddb7dcd2568
|
|
4
|
+
data.tar.gz: e839365f5a50c7cac6bc676603647f20ad60b80f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b57d197a572c7d3713ee08dad512983c9e632fc4571b69a6c3720e584b8e3509007bb8d19b619a3ab87b1d59fdf828de1c0124b8d3bed5af596320c76b8f0f9c
|
|
7
|
+
data.tar.gz: d5f88508286307cf7e12dfd4df6d013048cac9816278914df34e7fe065763e0f68af5835d6c85507d7150e7e5d41fc919c7c70ee1cfc88e81b8b81ed0ad5cd76
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,9 @@ 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
|
+
#### 2.0.0.beta.6 (2017-05-09)
|
|
6
|
+
* 8f1c911 - Ensure all resources provide application/hal+json. (Beth Skurrie, Tue May 9 18:32:37 2017 +1000)
|
|
7
|
+
|
|
5
8
|
#### 2.0.0.beta.5 (2017-05-08)
|
|
6
9
|
* 4b88c4d - Add success flag to the resource for the latest verifications for a consumer version to indicate the overall success or failure of the verification results for that version. (Beth Skurrie, Mon May 8 10:54:31 2017 +1000)
|
|
7
10
|
|
|
@@ -8,8 +8,9 @@ module PactBroker
|
|
|
8
8
|
class LatestPact < BaseResource
|
|
9
9
|
|
|
10
10
|
def content_types_provided
|
|
11
|
-
[["application/json", :to_json],
|
|
12
|
-
|
|
11
|
+
[ ["application/hal+json", :to_json],
|
|
12
|
+
["application/json", :to_json],
|
|
13
|
+
["text/html", :to_html]]
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
def allowed_methods
|
data/lib/pact_broker/version.rb
CHANGED
|
@@ -16,7 +16,7 @@ describe "Merging a pact" do
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
it "returns a json body" do
|
|
19
|
-
expect(subject.headers['Content-Type']).to eq "application/json;charset=utf-8"
|
|
19
|
+
expect(subject.headers['Content-Type']).to eq "application/hal+json;charset=utf-8"
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
it "returns the pact in the body" do
|
|
@@ -37,7 +37,7 @@ describe "Merging a pact" do
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
it "returns an application/json Content-Type" do
|
|
40
|
-
expect(subject.headers['Content-Type']).to eq "application/json;charset=utf-8"
|
|
40
|
+
expect(subject.headers['Content-Type']).to eq "application/hal+json;charset=utf-8"
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
it "returns the merged pact in the response body" do
|
|
@@ -12,7 +12,7 @@ describe "Publishing a pact" do
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
it "returns a json body" do
|
|
15
|
-
expect(subject.headers['Content-Type']).to eq "application/json;charset=utf-8"
|
|
15
|
+
expect(subject.headers['Content-Type']).to eq "application/hal+json;charset=utf-8"
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
it "returns the pact in the body" do
|
|
@@ -31,7 +31,7 @@ describe "Publishing a pact" do
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
it "returns an application/json Content-Type" do
|
|
34
|
-
expect(subject.headers['Content-Type']).to eq "application/json;charset=utf-8"
|
|
34
|
+
expect(subject.headers['Content-Type']).to eq "application/hal+json;charset=utf-8"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
it "returns the pact in the response body" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact_broker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0.beta.
|
|
4
|
+
version: 2.0.0.beta.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bethany Skurrie
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-05-
|
|
13
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: httparty
|