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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4416650392293dcec2b6643adfcac1af250c4cd7
4
- data.tar.gz: a8ef1ac554a59b0093ee7be152dd0e59eca3d88c
3
+ metadata.gz: ba498f4801e7aa66d4d689a7177a3ddb7dcd2568
4
+ data.tar.gz: e839365f5a50c7cac6bc676603647f20ad60b80f
5
5
  SHA512:
6
- metadata.gz: b796e57abf4302c523549f6ab23403ea7f3cdc51cde324fc1f8bc03ce7527fa02cd75def279dd18b6a8e6a8a132b86670ffc24776c1152b9bd91c86f6d32a497
7
- data.tar.gz: 8032820522881d1c03054d12311d99746733533cc6f7bcadbcaf979212d6a45dcd8dc02fd1bb8c76c40c9794419d1338bd560f5e722d3f80144378e6b50e88ef
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
- ["text/html", :to_html]]
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
@@ -24,7 +24,8 @@ module PactBroker
24
24
  include PacticipantResourceMethods
25
25
 
26
26
  def content_types_provided
27
- [["application/json", :to_json],
27
+ [["application/hal+json", :to_json],
28
+ ["application/json", :to_json],
28
29
  ["text/html", :to_html]]
29
30
  end
30
31
 
@@ -9,7 +9,7 @@ module PactBroker
9
9
  class PactVersions < BaseResource
10
10
 
11
11
  def content_types_provided
12
- [["application/json", :to_json]]
12
+ [["application/hal+json", :to_json]]
13
13
  end
14
14
 
15
15
  def allowed_methods
@@ -9,7 +9,7 @@ module PactBroker
9
9
  class Versions < BaseResource
10
10
 
11
11
  def content_types_provided
12
- [["application/json", :to_json]]
12
+ [["application/hal+json", :to_json]]
13
13
  end
14
14
 
15
15
  def allowed_methods
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '2.0.0.beta.5'
2
+ VERSION = '2.0.0.beta.6'
3
3
  end
@@ -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.5
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-08 00:00:00.000000000 Z
13
+ date: 2017-05-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty