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 +4 -4
- data/lib/bridgetown-routes/manifest.rb +3 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1851e1044647a20b32d1f926092099180a85094a725a64b448ac4a2fe5c8da2
|
4
|
+
data.tar.gz: fce918df055844cf76a60cef1724e430e93ee8a169049123ae12a892636c75dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
51
|
+
slug_a = route_a[1][0]
|
51
52
|
# @type [String]
|
52
|
-
|
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.
|
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:
|
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.
|
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.
|
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
|