gds-api-adapters 26.3.0 → 26.3.1

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: c8d2ad10bdb8f23a5fbccc0641d1afc80d5a75c0
4
- data.tar.gz: 55db7a552841689e8ea718f85a697f65018d7340
3
+ metadata.gz: 28d2b20efe3657e43b513e3c43dc9533a2ef5413
4
+ data.tar.gz: 6c031a36be576bf3101d65cf4ed62b3667ebba2f
5
5
  SHA512:
6
- metadata.gz: ad34080e34e564a4c05a0378da586e438fea8806323a846e3dbbd39b1dfc4ca6d3ca2350d23a58105fa728e0ae806e46ef23faa6b6215047eb76388f64b48b5c
7
- data.tar.gz: 9ccf68c027c2edf9a84997942f7dfc4a76f6b161f51d27e39096ee6d2a13f7c2df4fea60bbea0d641bfd902e5c75ef593521867029b1fd1a371da47063c2b732
6
+ metadata.gz: dc7a2c55870b748f631a943998af7ea6d588f03ea30a3c29dd575e74b7fc1314b2453cfa9f015bd29294dd7963983a418293b3e296360ee979b2bd7811627619
7
+ data.tar.gz: c71c2e06c2f7a6e63242b629f34e96d20f30f65d7cd5af7333898f6f814898bf665a20b1017aab61ab3607ef3f2a24af138a6fcca70e0191a3b0d421287b9074
@@ -28,13 +28,16 @@ module GdsApi
28
28
  stub_request(:post, url).to_return(status: 200, headers: {"Content-Type" => "application/json; charset=utf-8"})
29
29
  end
30
30
 
31
- def stub_publishing_api_put_content_links_and_publish(body, content_id = nil, publish_options = nil)
31
+ def stub_publishing_api_put_content_links_and_publish(body, content_id = nil, publish_body = nil)
32
32
  content_id ||= body[:content_id]
33
- publish_options ||= { update_type: { update_type: body[:update_type], locale: body[:locale] } }
33
+ if publish_body.nil?
34
+ publish_body = { update_type: body.fetch(:update_type) }
35
+ publish_body[:locale] = body[:locale] if body[:locale]
36
+ end
34
37
  stubs = []
35
38
  stubs << stub_publishing_api_put_content(content_id, body.except(:links))
36
39
  stubs << stub_publishing_api_put_links(content_id, body.slice(:links)) unless body.slice(:links).empty?
37
- stubs << stub_publishing_api_publish(content_id, publish_options)
40
+ stubs << stub_publishing_api_publish(content_id, publish_body)
38
41
  stubs
39
42
  end
40
43
 
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '26.3.0'
2
+ VERSION = '26.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.3.0
4
+ version: 26.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek