publishing_platform_api_adapters 0.8.3 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ecd9f3eb97245e845c73fc3ff0c2328e1ffb836bdccb89bd6b8334642dd4c20
|
4
|
+
data.tar.gz: 525e15f6248bc90427bd82be0b5e8f2373d20ab3fc0d39c3f127e68a5840b452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0ce9e7e2db339d7d7cfd74345c0fb85a831cfbe0ab3178c4e0ea9dfc9b59132f8b61df51732d9d43785acab96c9882f3d715d283d4109fce3036f1a2453a22
|
7
|
+
data.tar.gz: 497e045eb4399485d38db4fe80433f761f61b9c9c6f47179ae0d7f045edc9bbd558957d778c1392550adbb354b35ecf17a081982993e7aee2fddbe66cc8f2c38
|
@@ -19,8 +19,8 @@ module PublishingPlatformApi
|
|
19
19
|
stub_router_has_route(path, handler: "backend", backend_id:, disabled:, route_type:)
|
20
20
|
end
|
21
21
|
|
22
|
-
def stub_router_has_redirect_route(path, redirect_to:, route_type: "exact", disabled: false)
|
23
|
-
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:)
|
24
24
|
end
|
25
25
|
|
26
26
|
def stub_router_has_gone_route(path, route_type: "exact", disabled: false)
|
@@ -42,13 +42,14 @@ module PublishingPlatformApi
|
|
42
42
|
})
|
43
43
|
end
|
44
44
|
|
45
|
-
def stub_redirect_registration(path, type, destination, segments_mode = nil)
|
45
|
+
def stub_redirect_registration(path, type, destination, redirect_type, segments_mode = nil)
|
46
46
|
stub_route_put({
|
47
47
|
route: {
|
48
48
|
incoming_path: path,
|
49
49
|
route_type: type,
|
50
50
|
handler: "redirect",
|
51
51
|
redirect_to: destination,
|
52
|
+
redirect_type:,
|
52
53
|
segments_mode:,
|
53
54
|
},
|
54
55
|
})
|