jekyll-bookshop 3.5.0 → 3.6.0.pre.beta.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c343e8c7427da92c275f92f28ab6caae8a0d8800519e50c7bdb35bc6221fd08
|
4
|
+
data.tar.gz: 3ed9997bd6498e29b44777ea9c6cc70d813388321abfbaf38b5aaa602f263375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9db5dec5e7724bd60cda617b46ee47d4a7d03eba27c227934c390d130cb5f232337a3190275b75bc791c7e6f298cf015420110bc407c18432069d8e5b11b0dd7
|
7
|
+
data.tar.gz: 41faa7aaa5d6588a147a4ddf09feef0cf85ad2e2a37efde57c0530a03ccff8c87f7af6a5e2b514f90558e88a2b906e7d6557ec704f8d566a9af3f083272ea728
|
@@ -23,8 +23,12 @@ module JekyllBookshop
|
|
23
23
|
site = context.registers[:site]
|
24
24
|
validate_file_name(file)
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
begin
|
27
|
+
path = locate_include_file(context, file, site.safe)
|
28
|
+
rescue IOError
|
29
|
+
return false
|
30
|
+
end
|
31
|
+
return false unless path
|
28
32
|
|
29
33
|
add_include_to_dependency(site, path, context)
|
30
34
|
|
@@ -39,7 +43,7 @@ module JekyllBookshop
|
|
39
43
|
|
40
44
|
# If this component is not a subcomponent,
|
41
45
|
# we also drop in some site metadata here so that it can be used in the render.
|
42
|
-
version = "3.
|
46
|
+
version = "3.6.0-beta.0"
|
43
47
|
meta_comment = context["__bookshop__nested"] ? "" : "<!--bookshop-live meta(version=\"#{version}\" baseurl=\"#{site.baseurl}\" title=\"#{site.config["title"]&.gsub('"', '\"') || ""}\") -->\n"
|
44
48
|
|
45
49
|
context.stack do
|
@@ -10,10 +10,21 @@ module JekyllBookshop
|
|
10
10
|
# Map component names to the .jekyll.html files found in bookshop
|
11
11
|
def render(context)
|
12
12
|
file = render_variable(context) || @file
|
13
|
-
|
14
13
|
cname = file.strip.split("/").last
|
15
|
-
|
16
|
-
|
14
|
+
|
15
|
+
standard_file = "#{file}/#{cname}.jekyll.html";
|
16
|
+
flat_file = "#{file}.jekyll.html";
|
17
|
+
|
18
|
+
file = standard_file
|
19
|
+
out = render_once_found(context, file)
|
20
|
+
unless out
|
21
|
+
file = flat_file
|
22
|
+
out = render_once_found(context, file)
|
23
|
+
unless out
|
24
|
+
raise IOError, "Component #{cname} does not exist. Create this component by placing a file in your bookshop at #{standard_file} or #{flat_file} in your components directory"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
out
|
17
28
|
end
|
18
29
|
end
|
19
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bookshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0.pre.beta.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CloudCannon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -109,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- - "
|
112
|
+
- - ">"
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
114
|
+
version: 1.3.1
|
115
115
|
requirements: []
|
116
116
|
rubygems_version: 3.1.6
|
117
117
|
signing_key:
|