sassc-embedded 1.77.7 → 1.78.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -11
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +2 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6436923b7f104059a6be6bf037be772b3191a12478b44457dcddd6dd2913e4b2
|
4
|
+
data.tar.gz: 81e184f8d2f343d23c7d8228e4cb62c7aa7343cfb609ff93aa3793b3af4abb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09ad73cfc4311af1d2c2219b897a3d2a4393c7ed000736187bca650c94941470445a022f1299eb9d5ddb8defc118addb647560f8c703919e0319353a9d9acd63'
|
7
|
+
data.tar.gz: 6891a983e30abec954405faca7b83ab3f4f2d9ecfc72f4724319c82f90f8c29eed650d73f14efc85b7003eb97747cbc3b52bb34e9ae6ec9f342c41257a4817fd
|
data/README.md
CHANGED
@@ -54,17 +54,38 @@ require 'sassc-embedded'
|
|
54
54
|
SassC::Engine.new(sass, style: :compressed).render
|
55
55
|
```
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
57
|
+
Most of the original `sassc` options are supported with no behavior difference unless noted otherwise:
|
58
|
+
|
59
|
+
- `:filename`
|
60
|
+
- `:quiet`
|
61
|
+
- ~~`:precision`~~ - ignored
|
62
|
+
- ~~`:line_comments`~~ - ignored
|
63
|
+
- `:syntax`
|
64
|
+
- `:source_map_embed`
|
65
|
+
- `:source_map_contents`
|
66
|
+
- `:omit_source_map_url`
|
67
|
+
- `:source_map_file`
|
68
|
+
- `:importer`
|
69
|
+
- `:functions`
|
70
|
+
- `:style` - ~~`:nested`~~ and ~~`:compact`~~ behave as `:expanded`
|
71
|
+
- `:load_paths`
|
72
|
+
|
73
|
+
See [`sassc-ruby` source code](https://github.com/sass/sassc-ruby/blob/master/lib/sassc/engine.rb) and [`libsass` documentation](https://github.com/sass/libsass/blob/master/docs/api-context.md) for details.
|
74
|
+
|
75
|
+
Additional `sass-embedded` options are supported:
|
76
|
+
|
77
|
+
- `:charset`
|
78
|
+
- `:importers`
|
79
|
+
- `:alert_ascii`
|
80
|
+
- `:alert_color`
|
81
|
+
- `:fatal_deprecations`
|
82
|
+
- `:future_deprecations`
|
83
|
+
- `:logger`
|
84
|
+
- `:quiet_deps`
|
85
|
+
- `:silence_deprecations`
|
86
|
+
- `:verbose`
|
87
|
+
|
88
|
+
See [`sass-embedded` documentation](https://rubydoc.info/gems/sass-embedded/Sass#compile_string-class_method) for details.
|
68
89
|
|
69
90
|
## Troubleshooting
|
70
91
|
|
data/lib/sassc/embedded.rb
CHANGED
@@ -34,7 +34,7 @@ module SassC
|
|
34
34
|
alert_color: @options.fetch(:alert_color, nil),
|
35
35
|
fatal_deprecations: @options.fetch(:fatal_deprecations, []),
|
36
36
|
future_deprecations: @options.fetch(:future_deprecations, []),
|
37
|
-
logger: @options.fetch(:logger, nil),
|
37
|
+
logger: quiet? ? ::Sass::Logger.silent : @options.fetch(:logger, nil),
|
38
38
|
quiet_deps: @options.fetch(:quiet_deps, false),
|
39
39
|
silence_deprecations: @options.fetch(:silence_deprecations, []),
|
40
40
|
verbose: @options.fetch(:verbose, false)
|
@@ -43,8 +43,6 @@ module SassC
|
|
43
43
|
@loaded_urls = result.loaded_urls
|
44
44
|
@source_map = result.source_map
|
45
45
|
|
46
|
-
return if quiet?
|
47
|
-
|
48
46
|
css = result.css
|
49
47
|
css += "\n" unless css.empty?
|
50
48
|
unless @source_map.nil? || omit_source_map_url?
|
@@ -328,9 +326,7 @@ module SassC
|
|
328
326
|
return
|
329
327
|
end
|
330
328
|
else
|
331
|
-
imports =
|
332
|
-
imports = [SassC::Importer::Import.new(path)] if imports.nil?
|
333
|
-
imports = [imports] unless imports.is_a?(Array)
|
329
|
+
imports = [*@importer.imports(path, parent_path)]
|
334
330
|
canonical_url = imports_to_native(imports, parent_dir, context.from_import, url, containing_url)
|
335
331
|
unless @importer_results.key?(canonical_url)
|
336
332
|
@file_url = canonical_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.78.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass-embedded
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.78'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.78'
|
27
27
|
description: An embedded sass shim for SassC.
|
28
28
|
email:
|
29
29
|
- i@ntk.me
|
@@ -79,7 +79,7 @@ licenses:
|
|
79
79
|
metadata:
|
80
80
|
bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
|
81
81
|
documentation_uri: https://rubydoc.info/gems/sassc
|
82
|
-
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.
|
82
|
+
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.78.0
|
83
83
|
funding_uri: https://github.com/sponsors/ntkme
|
84
84
|
rubygems_mfa_required: 'true'
|
85
85
|
post_install_message:
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
rubygems_version: 3.5.
|
101
|
+
rubygems_version: 3.5.16
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Use dart-sass with SassC!
|