bridgetown-routes 1.2.0.beta4 → 1.2.0
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 +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca68a031d3e91470d6f280402efe07a47d48e51c3aba033a3a1088c227286575
|
4
|
+
data.tar.gz: 837c690afb45eaf242a328334fdb60bc2b1bf471918af8570f8f697db861a6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b13efc8741e38c3b5b543852eab5e5854fe8da2709c2fa976f7d2a10bd3e9bb9579ccc081835d19245690833c7cc0749a27207b6ade862aece6d2be33750286
|
7
|
+
data.tar.gz: 2e5ff3664573f8b49068e43ba9b963c58f15ad5d17d60d5bc87b96a32cc2cf0bfffb00d1a1e2d22235dead175eaebdb86cbcd0a9ce4a82f1eed1ec930fb6f419
|
@@ -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
|
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-25 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
|
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
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: roda-route_list
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,9 +73,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubygems_version: 3.1.4
|
81
81
|
signing_key:
|