jekyll-sass-converter 2.0.0 → 2.0.1
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/jekyll-sass-converter/version.rb +1 -1
- data/lib/jekyll/converters/scss.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5b921d811e2917d86c33ad5cef0e1ecabe286eaf4ec33ee5e8c117fba6dfaab
|
|
4
|
+
data.tar.gz: 80f915a76b159e6f0b28cbd55ffc2d02b85cb4f445972adfd33aff1310dbb373
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4655abdc23cd0fa9439a5756d0a87b28419ace412327944c18adda840cbf9b3a8fc8132b05cc27a246b44e00811b23e2454003380888b6e78e7804d8818bf1c6
|
|
7
|
+
data.tar.gz: c8761b552a2b8ea6847af50f0083489d99f536fb53862001ff21b5a5fb72ab839955a388523147e1b83ee0c1f533072267f2182315165bd12cea345a5ae7a5e9
|
|
@@ -18,6 +18,8 @@ module Jekyll
|
|
|
18
18
|
# This hook is triggered just before the method {#convert(content)} is executed, it
|
|
19
19
|
# associates the Scss (and Sass) converters with their respective sass_page objects.
|
|
20
20
|
Jekyll::Hooks.register :pages, :pre_render do |page|
|
|
21
|
+
next unless page.is_a?(Jekyll::Page)
|
|
22
|
+
|
|
21
23
|
page.converters.each do |converter|
|
|
22
24
|
converter.associate_page(page) if converter.is_a?(Jekyll::Converters::Scss)
|
|
23
25
|
end
|
|
@@ -26,6 +28,8 @@ module Jekyll
|
|
|
26
28
|
# This hook is triggered just after the method {#convert(content)} has been executed, it
|
|
27
29
|
# dissociates the Scss (and Sass) converters with their respective sass_page objects.
|
|
28
30
|
Jekyll::Hooks.register :pages, :post_render do |page|
|
|
31
|
+
next unless page.is_a?(Jekyll::Page)
|
|
32
|
+
|
|
29
33
|
page.converters.each do |converter|
|
|
30
34
|
converter.dissociate_page(page) if converter.is_a?(Jekyll::Converters::Scss)
|
|
31
35
|
end
|
|
@@ -125,7 +129,6 @@ module Jekyll
|
|
|
125
129
|
# rubocop:disable Metrics/AbcSize
|
|
126
130
|
def sass_load_paths
|
|
127
131
|
paths = user_sass_load_paths + [sass_dir_relative_to_site_source]
|
|
128
|
-
paths << site.theme.sass_path if site.theme&.sass_path
|
|
129
132
|
|
|
130
133
|
if safe?
|
|
131
134
|
# Sanitize paths to prevent any attack vectors (.e.g. `/**/*`)
|
|
@@ -146,6 +149,7 @@ module Jekyll
|
|
|
146
149
|
end
|
|
147
150
|
end
|
|
148
151
|
|
|
152
|
+
paths << site.theme.sass_path if site.theme&.sass_path
|
|
149
153
|
paths.select { |path| File.directory?(path) }
|
|
150
154
|
end
|
|
151
155
|
# rubocop:enable Metrics/AbcSize
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-sass-converter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Parker Moore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sassc
|