raindeer 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cli/static.rb +16 -5
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0f6f60795287e9c0cd0e69b07cd81e17cdbee1aeb7de6f456d0fa8fe238e222
|
|
4
|
+
data.tar.gz: e1d4b74dab9b8766854f453d8956e84920329e527de56b0f34f4b7fed9338199
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46a4269f620d1e29aac719d9aeb3718d0d6fde774eaeb58ee058d4646329bb7d3cdd9fe64c1199f568b9d90406ef51fbd2e61db862f05e8d594a4b0eeda534a5
|
|
7
|
+
data.tar.gz: a852560b2e13f2a2512557851165b1d32d9632b5666482549e819e5cd47b7f1bc0e56a3fcd657b069700a1ca6e3b12f40ff0b6f7d74bb020ffdad00511e521d7
|
data/lib/cli/static.rb
CHANGED
|
@@ -54,11 +54,7 @@ module Rain
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def request_results(metadata:)
|
|
57
|
-
|
|
58
|
-
paths = file_paths.map { |file_path| Rain::Pages.url_path(file_path:) }.compact
|
|
59
|
-
paths << '/'
|
|
60
|
-
# Skip files that became solely metadata due to underscores hiding the entire file path.
|
|
61
|
-
paths.reject! { |url_path| url_path == '' }
|
|
57
|
+
paths = request_paths(metadata:)
|
|
62
58
|
|
|
63
59
|
progress_bar = ProgressBar.create(
|
|
64
60
|
total: paths.size,
|
|
@@ -73,6 +69,21 @@ module Rain
|
|
|
73
69
|
result
|
|
74
70
|
end
|
|
75
71
|
end
|
|
72
|
+
|
|
73
|
+
def request_paths(metadata:)
|
|
74
|
+
file_paths = metadata.file_types.values_at('md', 'rd', 'markdown', 'raindown').flat_map { it }.compact
|
|
75
|
+
paths = file_paths.map { |file_path| Rain::Pages.url_path(file_path:) }.compact
|
|
76
|
+
paths << '/'
|
|
77
|
+
paths.concat(static_routes).uniq!
|
|
78
|
+
# Skip files that became solely metadata due to underscores hiding the entire file path.
|
|
79
|
+
paths.reject { |url_path| url_path == '' }
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# GET routes like '/gems' that don't need a param or wildcard to be requested.
|
|
83
|
+
def static_routes
|
|
84
|
+
routes = Providers['rain.router'].routes.values
|
|
85
|
+
routes.select { |route| route.verbs.include?(Rain::HTTP::GET) && !route.path.match?(/[:*]/) }.map(&:path)
|
|
86
|
+
end
|
|
76
87
|
end
|
|
77
88
|
end
|
|
78
89
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raindeer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- maedi
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-10-19 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ostruct
|
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
283
283
|
- !ruby/object:Gem::Version
|
|
284
284
|
version: '0'
|
|
285
285
|
requirements: []
|
|
286
|
-
rubygems_version:
|
|
286
|
+
rubygems_version: 3.6.2
|
|
287
287
|
specification_version: 4
|
|
288
288
|
summary: An event-driven and compositional web framework that's easy to use. Deer
|
|
289
289
|
to be different.
|