gds-api-adapters 26.2.0 → 26.3.0
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 +4 -4
- data/lib/gds_api/test_helpers/publishing_api_v2.rb +5 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8d2ad10bdb8f23a5fbccc0641d1afc80d5a75c0
|
|
4
|
+
data.tar.gz: 55db7a552841689e8ea718f85a697f65018d7340
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad34080e34e564a4c05a0378da586e438fea8806323a846e3dbbd39b1dfc4ca6d3ca2350d23a58105fa728e0ae806e46ef23faa6b6215047eb76388f64b48b5c
|
|
7
|
+
data.tar.gz: 9ccf68c027c2edf9a84997942f7dfc4a76f6b161f51d27e39096ee6d2a13f7c2df4fea60bbea0d641bfd902e5c75ef593521867029b1fd1a371da47063c2b732
|
|
@@ -50,6 +50,11 @@ module GdsApi
|
|
|
50
50
|
stub_request(:any, %r{\A#{PUBLISHING_API_V2_ENDPOINT}})
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
def stub_any_publishing_api_call_to_return_not_found
|
|
54
|
+
stub_request(:any, %r{\A#{PUBLISHING_API_V2_ENDPOINT}})
|
|
55
|
+
.to_return(status: 404, headers: {"Content-Type" => "application/json; charset=utf-8"})
|
|
56
|
+
end
|
|
57
|
+
|
|
53
58
|
def assert_publishing_api_put_content(content_id, attributes_or_matcher = {}, times = 1)
|
|
54
59
|
url = PUBLISHING_API_V2_ENDPOINT + "/content/" + content_id
|
|
55
60
|
assert_publishing_api(:put, url, attributes_or_matcher, times)
|
data/lib/gds_api/version.rb
CHANGED
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.
|
|
4
|
+
version: 26.3.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-
|
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: plek
|