bullet_train-themes 1.43.0 → 1.44.0
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/bullet_train/themes/version.rb +1 -1
- data/lib/bullet_train/themes.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57ff446659aebd2a7d5e7353fceeb8775b00ad77b9571167951c0601c389355b
|
|
4
|
+
data.tar.gz: 07c13e48b3e3fa7e04a53baf6017891822a9981410e70be3a0a0bc4bff7a75c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea0e0de4f47a21c09eca57e2c58f4cbb7cfa04c3422b8641ae5af6655c66fc77229db8e9c425e3474c14b53b727636a588013e61665649fed2ed8622c751c77a
|
|
7
|
+
data.tar.gz: 666b5117499e25d1241ef552245411338f2d2011e0e20d255a58be9655e8a04633aa389f658d5e27c3debc462d54de98854ca6b92560a5fb652fbeff44e66d42
|
data/lib/bullet_train/themes.rb
CHANGED
|
@@ -21,7 +21,7 @@ module BulletTrain
|
|
|
21
21
|
|
|
22
22
|
def self.theme_invocation_path_for(path)
|
|
23
23
|
# Themes only support `<%= render 'shared/box' ... %>` style calls to `render`, so check `path` is a string first.
|
|
24
|
-
if path.is_a?(String) && (pattern = INVOCATION_PATTERNS.find {
|
|
24
|
+
if path.is_a?(String) && (pattern = INVOCATION_PATTERNS.find { it.match? path })
|
|
25
25
|
path.remove(pattern)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
@@ -39,7 +39,7 @@ module BulletTrain
|
|
|
39
39
|
BulletTrain::Themes.partial_paths.fetch(path) do
|
|
40
40
|
if (theme_path = BulletTrain::Themes.theme_invocation_path_for(path))
|
|
41
41
|
# TODO directory_order should probably come from the `Current` model.
|
|
42
|
-
if (partial = lookup_context.find_all(theme_path, directory_order.map { "themes/#{
|
|
42
|
+
if (partial = lookup_context.find_all(theme_path, directory_order.map { "themes/#{it}" }, true, locals.keys).first)
|
|
43
43
|
resolved_partial = partial.virtual_path.gsub("/_", "/")
|
|
44
44
|
if Rails.env.development?
|
|
45
45
|
partial_paths[path] = resolved_partial
|