gds-api-adapters 54.1.1 → 54.1.2

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
  SHA256:
3
- metadata.gz: b5024a7a7b46c8e9d94294bfb2dc38206adc60fd52a74eb83f4c22604f1c10e6
4
- data.tar.gz: 3868924f4dd1a30526fc3454fd8f41aed7cda0e2852c77648b8ccc4c58532cce
3
+ metadata.gz: af4b22c477df01731432933f022e91fc50d013cce16ae1a0480c85e8260d7445
4
+ data.tar.gz: 473ca900c1bf0869669bc38f2544a266faf3728fb236f1b2b4527939ec84cab9
5
5
  SHA512:
6
- metadata.gz: 7c900d31a48d52dff098a0d2437ea4aec1f67e54091979da504863fca29c496683027c2ea1b448be0a9d6050a494f4b17459dbd7feda9ef0fa2654b32e8b636f
7
- data.tar.gz: e4053fcd426aeae02f0a8306604b7304171356ad99ef158daee980fcf3fb328f29e7c31afffc566b3974e750c5558231c0542d86e4539f8895afff5ce2436783
6
+ metadata.gz: c36afced6f25b2cd79a80d60b367163067dbc6705ee941dd5b28dc151a02f58c7667acfc034cd0a2c119670faea072c884e4554fce2004c6d2e0a9fdab4877b8
7
+ data.tar.gz: 9e619cca79bad8616cf9171699106aaa6d0ce20f4e5914f3ded54384920910119a6267bcaa48cb5fb9aa0f9e4d5b29b0937f6b6863282f685c1b1e461696fdab
@@ -40,7 +40,7 @@ module GdsApi
40
40
  # "links" => {
41
41
  # "taxons" => %w(level_one_topic level_two_topic),
42
42
  # },
43
- # "previous_version" => "3",
43
+ # "previous_version" => 3,
44
44
  # )
45
45
  #
46
46
  # @param content_id [UUID]
@@ -57,13 +57,14 @@ module GdsApi
57
57
  # "links" => {
58
58
  # "taxons" => %w(level_one_topic level_two_topic),
59
59
  # },
60
- # "previous_version" => "3",
60
+ # "previous_version" => 3,
61
61
  # )
62
62
  #
63
63
  # @param content_id [UUID]
64
64
  # @param body [String]
65
65
  def stub_publishing_api_patch_links_conflict(content_id, body)
66
- override_response_hash = { status: 409, body: version_conflict(body[:previous_version]) }
66
+ previous_version = JSON.parse(body.to_json)["previous_version"]
67
+ override_response_hash = { status: 409, body: version_conflict(previous_version) }
67
68
  stub_publishing_api_patch(content_id, body, '/links', override_response_hash)
68
69
  end
69
70
 
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '54.1.1'.freeze
2
+ VERSION = '54.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 54.1.1
4
+ version: 54.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev