bridgetown-routes 1.0.0.alpha4 → 1.0.0.alpha8

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: 3f0d35106be4fd2f0096e2e3c5c5c375132612a0726c1b7d4923a7186d36eca2
4
- data.tar.gz: 286498c180452c4b493f3196803df3516f4307b0477b2738ee7b99a2367fb4e9
3
+ metadata.gz: d917ae19ca30876659ffc219abfb20fc4e9c0467e6bd05d810eac1340f333ccb
4
+ data.tar.gz: d89955d2559dcd27c944b1a3bab47b6a2589ec574dfd6fe464e5086124ad2bcb
5
5
  SHA512:
6
- metadata.gz: b870abcdf04b1f79de9f84035de0d7c60ff66cddf8501b3159918a1061767237db5c717d2bc7e5b6ee28e3b12a456bf3a5589222d92538b13964d899b542bfc0
7
- data.tar.gz: a7e3786045b8f21aa9b3564c83fd494ac37506f8ca3bd24fc32a8a6e0aa02dd1f3a40bbfd5124f191bdb2b5179c667e2a3733aacaad04e40529aa927375726cf
6
+ metadata.gz: 245ad558271fb777223bccecd885285bcec465a2037156671851ec5ebd763de283ea4071fd718249ae6fefcfe5fb24381ee6e3f56076a8c6fef1895d29da8875
7
+ data.tar.gz: c1aca1345361c11c232e30fd2e7efc7c6a42fde16218b9fc622e2de50bd1b7eb33d7f60ad85f2000602a730b8498d1b572abd657730d4aeb2b2829aa65701dbd
@@ -14,7 +14,9 @@ module Bridgetown
14
14
 
15
15
  routes_dir = Bridgetown::Current.site.in_source_dir("_routes")
16
16
  # @type [Array]
17
- routes = Dir.glob(routes_dir + "/**/*.{#{routable_extensions.join(",")}}").map do |file|
17
+ routes = Dir.glob(
18
+ routes_dir + "/**/*.{#{routable_extensions.join(",")}}"
19
+ ).filter_map do |file|
18
20
  if File.basename(file).start_with?("_", ".") ||
19
21
  File.basename(file, ".*").end_with?(".test")
20
22
  next
@@ -31,7 +33,7 @@ module Bridgetown
31
33
  end
32
34
 
33
35
  [file, file_slug, segment_keys]
34
- end.compact
36
+ end
35
37
 
36
38
  routes.sort! do |route_a, route_b|
37
39
  # @type [String]
@@ -59,8 +59,8 @@ class Roda
59
59
  end.read!.transform!.output
60
60
  end
61
61
 
62
- ruby2_keywords def render(*args, &block)
63
- view.render(*args, &block)
62
+ def render(...)
63
+ view.render(...)
64
64
  end
65
65
 
66
66
  def view(view_class: Bridgetown::ERBView)
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.0.0.alpha4
4
+ version: 1.0.0.alpha8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-19 00:00:00.000000000 Z
11
+ date: 2021-11-05 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.0.0.alpha4
19
+ version: 1.0.0.alpha8
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.0.0.alpha4
26
+ version: 1.0.0.alpha8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: roda-route_list
29
29
  requirement: !ruby/object:Gem::Requirement