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: c489cc0c17611c94c8d182dc12064cfeec8a77e6aef3d61e70c2e83ee06a9218
4
- data.tar.gz: c08de2b92e99185097aa3eb834196aa5289b023dbe8b3170d58b848c50d46aa8
3
+ metadata.gz: eeeb7e3e61179d1abc7f36da71a4f794019d698ea98cd1273e38098f35bf919d
4
+ data.tar.gz: fe4ccb4d617bdaa216cfd57a61032c6a973eeee3b98251ec058ff8ac3a740bf3
5
5
  SHA512:
6
- metadata.gz: afebcbc50bb0d165f63c13f1c01517f1065ea6db1c068ff2c3377d26ede37572276d78fc96a0015228ba4032dc81cebd8dd904e3d1adb816f0a097719e6b0b17
7
- data.tar.gz: ae01a6fc51589ad66d1500f43f4ce3a84edaa8caa49f25a3bb3146c529535bfc4c7fe95fcf0717fcdfcf2c5c63bfc8ca965119498d3c5a262e2f4b588acf79b5
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublishingPlatformApi
4
- VERSION = "0.13.0"
4
+ VERSION = "0.14.0"
5
5
  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.13.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.1'
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.6
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: []