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: 33684b80242329f1ddf7d6fd786c86adffa6118b3f9b4e4d81243148d90755c0
4
- data.tar.gz: 3b3c0d5c7ea79a368629f349b71432e374b19f989d4a176b08b28c829e609f64
3
+ metadata.gz: 5ecd9f3eb97245e845c73fc3ff0c2328e1ffb836bdccb89bd6b8334642dd4c20
4
+ data.tar.gz: 525e15f6248bc90427bd82be0b5e8f2373d20ab3fc0d39c3f127e68a5840b452
5
5
  SHA512:
6
- metadata.gz: 1189194963db42488c2dcd753b9fe0e41c43adcaf002cef403d2ae4b864af4d959398f4fedc34247dce88e2d2d2df3ea41b5800054e4a9ae17242bbea9042d01
7
- data.tar.gz: e43738770632d4739fe78080e4faf2b1067294e456366e7fa0b7b8218d1d292978485c1ec13f6e2642c1a888bf52e657c1c6741fbb5982dbd0261a160141b0e1
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
  })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublishingPlatformApi
4
- VERSION = "0.8.3"
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.3
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform