bridgetown-routes 1.0.0.alpha5 → 1.0.0.alpha9

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: 40728387eab9f05cc8957f76124cfba048b783001c76a3d2277a5845cf1c77b9
4
- data.tar.gz: 4508648c57cde2672933ba803817ed318d9ec08727da897edd5592b2b4592ab5
3
+ metadata.gz: 20e0e225dc950ee0c6f1bcf4a97cba6a4f8237cd1fdc1376ba7578ec2bbaa585
4
+ data.tar.gz: 93931ce8a11b576dd5dbf3cd9645644639fc97a854aff8885da2b4234987ccdd
5
5
  SHA512:
6
- metadata.gz: 1705fcfe96ffb0e2c15972deb20d923d269bc643c7cdf1d7c33d5bdd0c6e3ee2dd0ce0bf849c11ba7755e8a216f900ba8a18ff0b2d28a66d30bbcf5b757cac28
7
- data.tar.gz: 0d220904618186c9f4d83d074872a4dd5cdca7034332e3a76251754e436e1a5c0e96f9d0bf849fbd8b2480304ff1359f082bfc42117c78995a9a2f5d0651c3bf
6
+ metadata.gz: dcfa9e09a36d4ac53d6db4bd3a6e88b3d66278385fea93b8fd2e36f7d8625aaf4a7db6b9c466b8da27d617e2f9a29e7b4f4dc570d3b7f4bb19de01914880fd3c
7
+ data.tar.gz: cc2a18644fab5920bfeed6b7d070dd36207dd816ac574f3a8e036038089498894f1207d8e5e05c1a149f91f3b00f92ac239b660cfeff5b3300deced03662def9
@@ -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.alpha5
4
+ version: 1.0.0.alpha9
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-22 00:00:00.000000000 Z
11
+ date: 2021-11-12 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.alpha5
19
+ version: 1.0.0.alpha9
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.alpha5
26
+ version: 1.0.0.alpha9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: roda-route_list
29
29
  requirement: !ruby/object:Gem::Requirement