gds-api-adapters 18.1.0 → 18.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c36046446ee39e17c823e8510b18fe17bb59cce
4
- data.tar.gz: 785c3f5f1cf99551977adf8aaaee82091c503052
3
+ metadata.gz: 01d1d67051f7f9f5184cdd94799f4acfbf69a7b8
4
+ data.tar.gz: d592e813d42ca2d04803c4a1bc1353572da6ccdb
5
5
  SHA512:
6
- metadata.gz: 2d208699abf50d3f8a4113eef50c38d59afe78dc1dff4345681d4744547294d4f47a6615b5ea2cbfd6da8f6d94d4c9558b2b564af2dc7c6a9c6cdbc04293f7e4
7
- data.tar.gz: 54b4dc9f7747abaa2f15c63e28506c38b1288cb14288f8a253e456193981ad6e10092289464d03fa360171fbe94ee99174cda30918a1946d0c9241e57b5c863b
6
+ metadata.gz: e3652e91a04fbfd60a1a0d968ce911a4ce16acdf5f4a2df4f74bc14dc841f64668eb20f49d8a12fd603ab674eb27ff85598cda49bf28bc388672d2d85f5de160
7
+ data.tar.gz: 42285f7b2ccd1bc931e169875165d9a0e13a2fb18206f0525b9803cdff320e26675bf9243539bd042092c011c67926ced2711f145ea62e4124fded23f8cea560
@@ -10,7 +10,8 @@ module GdsApi
10
10
  "format" => "guide",
11
11
  "need_ids" => ["100001"],
12
12
  "public_updated_at" => "2014-05-06T12:01:00+00:00",
13
- "base_path" => base_path,
13
+ # base_path is added in as necessary (ie for content-store GET responses)
14
+ # "base_path" => base_path,
14
15
  "details" => {
15
16
  "body" => "Some content for #{base_path}",
16
17
  }
@@ -23,6 +23,10 @@ module GdsApi
23
23
  def content_store_isnt_available
24
24
  stub_request(:any, /#{CONTENT_STORE_ENDPOINT}\/.*/).to_return(:status => 503)
25
25
  end
26
+
27
+ def content_item_for_base_path(base_path)
28
+ super.merge({ base_path: base_path })
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -35,6 +35,10 @@ module GdsApi
35
35
  stub_request(:put, %r{\A#{PUBLISHING_API_ENDPOINT}/content})
36
36
  end
37
37
 
38
+ def stub_default_publishing_api_put_draft()
39
+ stub_request(:put, %r{\A#{PUBLISHING_API_ENDPOINT}/draft-content})
40
+ end
41
+
38
42
  def stub_default_publishing_api_put_intent()
39
43
  stub_request(:put, %r{\A#{PUBLISHING_API_ENDPOINT}/publish-intent})
40
44
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '18.1.0'
2
+ VERSION = '18.2.0'
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: 18.1.0
4
+ version: 18.2.0
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-03-12 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek