publishing_platform_api_adapters 0.8.2 → 0.9.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: f71db8ee0d906b1e92fd7592d4c7938d338da0f901adc11c44e96db86f0ea955
4
- data.tar.gz: 0e1f95953370551c78a5496ad7abbd7fab542c5dcf10ebf4c608901218381c16
3
+ metadata.gz: 5ecd9f3eb97245e845c73fc3ff0c2328e1ffb836bdccb89bd6b8334642dd4c20
4
+ data.tar.gz: 525e15f6248bc90427bd82be0b5e8f2373d20ab3fc0d39c3f127e68a5840b452
5
5
  SHA512:
6
- metadata.gz: 2f369bad7e927df6175e3b444fae7a35a78dd65edd5a0c3f045ea001dcce007af12ce7745bc2b24249b1f5cf8b8b56bf764a39f3b8f443f8de4f1f659c5a3e54
7
- data.tar.gz: '04836b8766c6d12c8ec2280827cc2eb5c4da0be1302353d9d89f4e029a633f6263601219f62c06a62668a4dfcbad9434a1207b67bebd68b2e732f1e247c79358'
6
+ metadata.gz: ea0ce9e7e2db339d7d7cfd74345c0fb85a831cfbe0ab3178c4e0ea9dfc9b59132f8b61df51732d9d43785acab96c9882f3d715d283d4109fce3036f1a2453a22
7
+ data.tar.gz: 497e045eb4399485d38db4fe80433f761f61b9c9c6f47179ae0d7f045edc9bbd558957d778c1392550adbb354b35ecf17a081982993e7aee2fddbe66cc8f2c38
@@ -1,5 +1,3 @@
1
- require "publishing_platform_api/test_helpers/json_client_helper"
2
-
3
1
  module PublishingPlatformApi
4
2
  module TestHelpers
5
3
  module Router
@@ -21,8 +19,8 @@ module PublishingPlatformApi
21
19
  stub_router_has_route(path, handler: "backend", backend_id:, disabled:, route_type:)
22
20
  end
23
21
 
24
- def stub_router_has_redirect_route(path, redirect_to:, route_type: "exact", disabled: false)
25
- stub_router_has_route(path, handler: "redirect", redirect_to:, disabled:, route_type:)
22
+ def stub_router_has_redirect_route(path, redirect_to:, redirect_type: "permanent", route_type: "exact", disabled: false)
23
+ stub_router_has_route(path, handler: "redirect", redirect_to:, redirect_type:, disabled:, route_type:)
26
24
  end
27
25
 
28
26
  def stub_router_has_gone_route(path, route_type: "exact", disabled: false)
@@ -44,13 +42,14 @@ module PublishingPlatformApi
44
42
  })
45
43
  end
46
44
 
47
- def stub_redirect_registration(path, type, destination, segments_mode = nil)
45
+ def stub_redirect_registration(path, type, destination, redirect_type, segments_mode = nil)
48
46
  stub_route_put({
49
47
  route: {
50
48
  incoming_path: path,
51
49
  route_type: type,
52
50
  handler: "redirect",
53
51
  redirect_to: destination,
52
+ redirect_type:,
54
53
  segments_mode:,
55
54
  },
56
55
  })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublishingPlatformApi
4
- VERSION = "0.8.2"
4
+ VERSION = "0.9.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.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform