bridgetown-routes 1.0.0.alpha6 → 1.0.0.alpha10

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: 862c93a20ddca076132f99fece6aad13aa7832540251160f1b701675a0751b48
4
- data.tar.gz: a25355e13e76aeff83c6566329d3e27ceb6cd7b5b8ea0380a9b1671deb1b1dac
3
+ metadata.gz: ca99bb7a7aac00c07a6ca03a00a450f100f9671169dec554de9161a67fcbda6c
4
+ data.tar.gz: d44863e5b5ed37f2a4445495627f8390976a2694b31afc63de1e5a568de2949b
5
5
  SHA512:
6
- metadata.gz: 5f33bf8a6cf93ae662dcc0114467d107a01ccce02fccbf2fec98ef05ec02774d9db91b91c7f0a1c584a8e7879f6267cadf92b61fac5be06d53356778dc3d37bb
7
- data.tar.gz: 659e1198862118b090f41618e2e326dc9a633bf3860a64f35c11946bd42764cb368c29453b04c86494bf49faf23180e30e6e9fd8d262e075eb5e5fd9b94a7b69
6
+ metadata.gz: 97eb2016b0fae18948ab0a2f67ee32b18139ac30dbfd0de25fb3e00c23254ec2c8a45cab2555a84d601ea8a3b496017c4f30c0f7bef31ac72eacb8fe1039f7af
7
+ data.tar.gz: 566ce61bf946a2a85df5dda2d4c3ca96eafa8a2e2a04f047f6b171fcf7be730e472f6ba5822375313ab5f5dd8047570bbfb664399bfd0e4e99aa7c660119fe84
@@ -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.alpha6
4
+ version: 1.0.0.alpha10
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-26 00:00:00.000000000 Z
11
+ date: 2021-11-16 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.alpha6
19
+ version: 1.0.0.alpha10
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.alpha6
26
+ version: 1.0.0.alpha10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: roda-route_list
29
29
  requirement: !ruby/object:Gem::Requirement