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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d25f883860757364304b62c272eda2e32a75f89b0822d0dcacb1cffbd9b520bc
4
- data.tar.gz: aa1c4341ecfaa9d337d233d2e7cff360aa45784d39e67152c400d84c94c63c7f
3
+ metadata.gz: ca68a031d3e91470d6f280402efe07a47d48e51c3aba033a3a1088c227286575
4
+ data.tar.gz: 837c690afb45eaf242a328334fdb60bc2b1bf471918af8570f8f697db861a6fc
5
5
  SHA512:
6
- metadata.gz: 54f32ecbd983c9beec9b010ba27208c6c68811d837bb9a44b7e2057ffc6b9d0acb7414d6e967fe3e5d22a2442d4fb02ecd83acf6cea1cce505b0053b595c71d0
7
- data.tar.gz: fc1e5cafcbcbe048ca6e49bea10c0f026efa42ca2c7d678c539db22e921448b963cd1f25069c7a22f814c691ef80088a9c27d060c52d590514d52cebc20aa98e
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
- _, 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
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-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.beta4
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.beta4
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: 1.3.1
78
+ version: '0'
79
79
  requirements: []
80
80
  rubygems_version: 3.1.4
81
81
  signing_key: