jekyll-sass-converter 2.0.1 → 2.1.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: c5b921d811e2917d86c33ad5cef0e1ecabe286eaf4ec33ee5e8c117fba6dfaab
4
- data.tar.gz: 80f915a76b159e6f0b28cbd55ffc2d02b85cb4f445972adfd33aff1310dbb373
3
+ metadata.gz: ca94d9c890d30769bc4e8f02c40c36204492b3756d812832545811de2f9adbe2
4
+ data.tar.gz: ca4c611652bb77f15c0ddedfef1c49c5921b323a97c097fb8a9e6bbb906258ab
5
5
  SHA512:
6
- metadata.gz: 4655abdc23cd0fa9439a5756d0a87b28419ace412327944c18adda840cbf9b3a8fc8132b05cc27a246b44e00811b23e2454003380888b6e78e7804d8818bf1c6
7
- data.tar.gz: c8761b552a2b8ea6847af50f0083489d99f536fb53862001ff21b5a5fb72ab839955a388523147e1b83ee0c1f533072267f2182315165bd12cea345a5ae7a5e9
6
+ metadata.gz: 34cbbcef544e99bed2b8373ce339cf8040e123e2428beec54f0affb6895bfc2a4d47b4549d0c73d131719afaa375a109da07da51ab0b05abcbef7add1ac77ebd
7
+ data.tar.gz: 4d877c97804a9a59ef2febe1298c34bf9fa9a80199b6c664792aa5937c1c2a0844f6b49bb6bdf13fb6022355bdb0c79eb1321e1225cd5464e0fff9c2d3f9babd
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllSassConverter
4
- VERSION = "2.0.1"
4
+ VERSION = "2.1.0"
5
5
  end
@@ -123,7 +123,9 @@ module Jekyll
123
123
  end
124
124
 
125
125
  def sass_dir_relative_to_site_source
126
- Jekyll.sanitized_path(site_source, sass_dir)
126
+ @sass_dir_relative_to_site_source ||= begin
127
+ Jekyll.sanitized_path(site_source, sass_dir).sub(site.source + "/", "")
128
+ end
127
129
  end
128
130
 
129
131
  # rubocop:disable Metrics/AbcSize
@@ -137,7 +139,7 @@ module Jekyll
137
139
 
138
140
  # Expand file globs (e.g. `node_modules/*/node_modules` )
139
141
  Dir.chdir(site_source) do
140
- paths = paths.flat_map { |path| Dir.glob(path) }.uniq
142
+ paths = paths.flat_map { |path| Dir.glob(path) }
141
143
 
142
144
  paths.map! do |path|
143
145
  if safe?
@@ -149,6 +151,7 @@ module Jekyll
149
151
  end
150
152
  end
151
153
 
154
+ paths.uniq!
152
155
  paths << site.theme.sass_path if site.theme&.sass_path
153
156
  paths.select { |path| File.directory?(path) }
154
157
  end
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.1
4
+ version: 2.1.0
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-09-26 00:00:00.000000000 Z
11
+ date: 2020-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.0.4
120
+ rubygems_version: 3.0.6
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: A basic Sass converter for Jekyll.