sassc-embedded 1.80.4 → 1.80.5
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/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +3 -11
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d75ffcebd9c5d74279b034cba09bc24cf6b151a904e0110dd7354286515666
|
4
|
+
data.tar.gz: e7118c9406bf2223513d9704bec67c93e577b0bcf201496e3587237bd92af124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367fd876d5491d4750ce19230426f7935929adeb73b27028a50fed257cd16509468fffa20217e84e69d0481f265763d617035187fa7e6765c0821c683a3ca1c2
|
7
|
+
data.tar.gz: 79643b8eab1653988d8ba30de9f5ec09b909afd31226602f3c60015ae18e19d05e9286773bcc0d62f637beff340181e9272b749cf337130b86adce68e3b85aae
|
data/lib/sassc/embedded.rb
CHANGED
@@ -258,13 +258,13 @@ module SassC
|
|
258
258
|
def try_path(path)
|
259
259
|
partial = File.join(File.dirname(path), "_#{File.basename(path)}")
|
260
260
|
result = []
|
261
|
-
result.push(partial) if
|
262
|
-
result.push(path) if
|
261
|
+
result.push(partial) if File.file?(partial)
|
262
|
+
result.push(path) if File.file?(path)
|
263
263
|
result
|
264
264
|
end
|
265
265
|
|
266
266
|
def try_path_as_dir(path, from_import)
|
267
|
-
return unless
|
267
|
+
return unless File.directory?(path)
|
268
268
|
|
269
269
|
if from_import
|
270
270
|
result = exactly_one(try_path_with_ext(File.join(path, 'index.import')))
|
@@ -281,14 +281,6 @@ module SassC
|
|
281
281
|
raise "It's not clear which file to import. Found:\n#{paths.map { |path| " #{path}" }.join("\n")}"
|
282
282
|
end
|
283
283
|
|
284
|
-
def file_exist?(path)
|
285
|
-
File.exist?(path) && File.file?(path)
|
286
|
-
end
|
287
|
-
|
288
|
-
def dir_exist?(path)
|
289
|
-
File.exist?(path) && File.directory?(path)
|
290
|
-
end
|
291
|
-
|
292
284
|
def without_ext(path)
|
293
285
|
ext = File.extname(path)
|
294
286
|
path.delete_suffix(ext)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.80.
|
4
|
+
version: 1.80.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: sass-embedded
|
@@ -78,7 +78,7 @@ licenses:
|
|
78
78
|
metadata:
|
79
79
|
bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
|
80
80
|
documentation_uri: https://rubydoc.info/gems/sassc
|
81
|
-
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.
|
81
|
+
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.5
|
82
82
|
funding_uri: https://github.com/sponsors/ntkme
|
83
83
|
rubygems_mfa_required: 'true'
|
84
84
|
rdoc_options: []
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
99
|
+
rubygems_version: 3.7.0
|
100
100
|
specification_version: 4
|
101
101
|
summary: Use dart-sass with SassC!
|
102
102
|
test_files: []
|