gds-api-adapters 11.3.0 → 11.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,12 +11,19 @@ module GdsApi
|
|
11
11
|
|
12
12
|
def content_store_has_item(base_path, body = item_for_base_path(base_path))
|
13
13
|
url = CONTENT_STORE_ENDPOINT + "/content" + base_path
|
14
|
-
|
14
|
+
body = body.to_json unless body.is_a?(String)
|
15
|
+
stub_request(:get, url).to_return(status: 200, body: body, headers: {})
|
16
|
+
end
|
17
|
+
|
18
|
+
def content_store_does_not_have_item(base_path)
|
19
|
+
url = CONTENT_STORE_ENDPOINT + "/content" + base_path
|
20
|
+
stub_request(:get, url).to_return(status: 404, headers: {})
|
15
21
|
end
|
16
22
|
|
17
23
|
def stub_content_store_put_item(base_path, body = item_for_base_path(base_path))
|
18
24
|
url = CONTENT_STORE_ENDPOINT + "/content" + base_path
|
19
|
-
|
25
|
+
body = body.to_json unless body.is_a?(String)
|
26
|
+
stub_request(:put, url).with(body: body).to_return(status: 201, body: body, headers: {})
|
20
27
|
end
|
21
28
|
|
22
29
|
def stub_default_content_store_put()
|
data/lib/gds_api/version.rb
CHANGED
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: 11.
|
4
|
+
version: 11.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
@@ -382,7 +382,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
382
382
|
version: '0'
|
383
383
|
segments:
|
384
384
|
- 0
|
385
|
-
hash:
|
385
|
+
hash: -3744965370006170691
|
386
386
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
387
387
|
none: false
|
388
388
|
requirements:
|
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
391
|
version: '0'
|
392
392
|
segments:
|
393
393
|
- 0
|
394
|
-
hash:
|
394
|
+
hash: -3744965370006170691
|
395
395
|
requirements: []
|
396
396
|
rubyforge_project:
|
397
397
|
rubygems_version: 1.8.23
|