jekyll-sass-converter 2.0.0 → 2.0.1

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: c051522099eb9c977d893591246ad37863d0ff38feec276b8992c9f16cfa6b3b
4
- data.tar.gz: 388b71b1d56dcde5f45b9860b28ba932291951cf2385e42560032b3c4e144c5f
3
+ metadata.gz: c5b921d811e2917d86c33ad5cef0e1ecabe286eaf4ec33ee5e8c117fba6dfaab
4
+ data.tar.gz: 80f915a76b159e6f0b28cbd55ffc2d02b85cb4f445972adfd33aff1310dbb373
5
5
  SHA512:
6
- metadata.gz: 0b2c4cd74ba4ee2612c92394011d98f6db389078d3668ccebe3cf96ef855c5a1a72c9dbe47057f3cc586b1dac2937379ee02356e289fdbf96869ad860e2ad1c3
7
- data.tar.gz: 275e76080d121f8693b42d1ca46088a0328013b111c8eddc4a998baafd04990ed9ff6cad5ac7246198c79bf63aad7e3ff556a2bbe9d6ffd0a0582dc259daec68
6
+ metadata.gz: 4655abdc23cd0fa9439a5756d0a87b28419ace412327944c18adda840cbf9b3a8fc8132b05cc27a246b44e00811b23e2454003380888b6e78e7804d8818bf1c6
7
+ data.tar.gz: c8761b552a2b8ea6847af50f0083489d99f536fb53862001ff21b5a5fb72ab839955a388523147e1b83ee0c1f533072267f2182315165bd12cea345a5ae7a5e9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllSassConverter
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
@@ -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.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-08-14 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc