bridgetown-routes 1.2.0.beta4 → 1.2.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d25f883860757364304b62c272eda2e32a75f89b0822d0dcacb1cffbd9b520bc
4
- data.tar.gz: aa1c4341ecfaa9d337d233d2e7cff360aa45784d39e67152c400d84c94c63c7f
3
+ metadata.gz: a1851e1044647a20b32d1f926092099180a85094a725a64b448ac4a2fe5c8da2
4
+ data.tar.gz: fce918df055844cf76a60cef1724e430e93ee8a169049123ae12a892636c75dd
5
5
  SHA512:
6
- metadata.gz: 54f32ecbd983c9beec9b010ba27208c6c68811d837bb9a44b7e2057ffc6b9d0acb7414d6e967fe3e5d22a2442d4fb02ecd83acf6cea1cce505b0053b595c71d0
7
- data.tar.gz: fc1e5cafcbcbe048ca6e49bea10c0f026efa42ca2c7d678c539db22e921448b963cd1f25069c7a22f814c691ef80088a9c27d060c52d590514d52cebc20aa98e
6
+ metadata.gz: 6da6e86ae502760c25f2e7ff293ed48ba3b2519cf3ad8b6cd6625388de0df3c8bb73df99b4845ab4e8eac044078c03971a82db141c53de4a360861c438f7caa5
7
+ data.tar.gz: ad704062b6288e2428a2bb925d61987d46142900f802d898856297527bc9a2fac404270bca27901de0f440d576f962604a958632f6ed32606436fec47dc876e6
@@ -40,6 +40,7 @@ module Bridgetown
40
40
 
41
41
  new_manifest += sort_routes!(routes)
42
42
  end
43
+
43
44
  @route_manifest ||= {}
44
45
  @route_manifest[site.label] = new_manifest
45
46
  end
@@ -47,9 +48,9 @@ module Bridgetown
47
48
  def sort_routes!(routes)
48
49
  routes.sort! do |route_a, route_b|
49
50
  # @type [String]
50
- _, slug_a = route_a
51
+ slug_a = route_a[1][0]
51
52
  # @type [String]
52
- _, slug_b = route_b
53
+ slug_b = route_b[1][0]
53
54
 
54
55
  # @type [Integer]
55
56
  weight1 = slug_a.count("/") <=> slug_b.count("/")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta4
4
+ version: 1.2.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-07 00:00:00.000000000 Z
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0.beta4
19
+ version: 1.2.0.beta5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0.beta4
26
+ version: 1.2.0.beta5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: roda-route_list
29
29
  requirement: !ruby/object:Gem::Requirement