publishing_platform_api_adapters 0.13.0 → 0.14.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eeeb7e3e61179d1abc7f36da71a4f794019d698ea98cd1273e38098f35bf919d
|
|
4
|
+
data.tar.gz: fe4ccb4d617bdaa216cfd57a61032c6a973eeee3b98251ec058ff8ac3a740bf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37d10af10458f1fae5a1570c1174ede393dd4ad9cd745c0a6465aa22b25b1adcfaf3a9cef25eb2532293d081be4c0fae7d873caa5ce37abd378d96493cdffbc7
|
|
7
|
+
data.tar.gz: 95c78a262a423b4f19952dd389d1a752ce034105429455a3a4681adbf6a3dd358185fc498292dedbe5874b00dc5e4152b322bb57f215a2d2d5a136c4b93b04ff
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PublishingPlatformApi
|
|
2
|
+
module TestHelpers
|
|
3
|
+
module Search
|
|
4
|
+
SEARCH_ENDPOINT = PublishingPlatformLocation.find("search-api")
|
|
5
|
+
|
|
6
|
+
def stub_any_search
|
|
7
|
+
stub_request(:get, %r{#{SEARCH_ENDPOINT}/search.json})
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def stub_any_search_to_return_no_results
|
|
11
|
+
stub_any_search.to_return(body: { results: [] }.to_json)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: publishing_platform_api_adapters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Publishing Platform
|
|
@@ -207,6 +207,7 @@ files:
|
|
|
207
207
|
- lib/publishing_platform_api/test_helpers/organisations.rb
|
|
208
208
|
- lib/publishing_platform_api/test_helpers/publishing_api.rb
|
|
209
209
|
- lib/publishing_platform_api/test_helpers/router.rb
|
|
210
|
+
- lib/publishing_platform_api/test_helpers/search.rb
|
|
210
211
|
- lib/publishing_platform_api/version.rb
|
|
211
212
|
- lib/publishing_platform_api_adapters.rb
|
|
212
213
|
licenses:
|
|
@@ -219,14 +220,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
219
220
|
requirements:
|
|
220
221
|
- - ">="
|
|
221
222
|
- !ruby/object:Gem::Version
|
|
222
|
-
version: '3.
|
|
223
|
+
version: '3.2'
|
|
223
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
225
|
requirements:
|
|
225
226
|
- - ">="
|
|
226
227
|
- !ruby/object:Gem::Version
|
|
227
228
|
version: '0'
|
|
228
229
|
requirements: []
|
|
229
|
-
rubygems_version: 4.0.
|
|
230
|
+
rubygems_version: 4.0.9
|
|
230
231
|
specification_version: 4
|
|
231
232
|
summary: Adapters to work with Publishing Platform APIs
|
|
232
233
|
test_files: []
|