sassc-embedded 1.80.3 → 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 +13 -15
- 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
@@ -87,7 +87,7 @@ module SassC
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
JSON.
|
90
|
+
JSON.fast_generate(data).encode!(@template.encoding)
|
91
91
|
end
|
92
92
|
|
93
93
|
private
|
@@ -106,7 +106,7 @@ module SassC
|
|
106
106
|
remove_method(:output_style) if private_method_defined?(:output_style, false)
|
107
107
|
|
108
108
|
def output_style
|
109
|
-
@output_style ||= case @options.fetch(:style, :
|
109
|
+
@output_style ||= case @options.fetch(:style, :nested).to_sym
|
110
110
|
when :nested, :expanded, :compact, :sass_style_nested, :sass_style_expanded, :sass_style_compact
|
111
111
|
:expanded
|
112
112
|
when :compressed, :sass_style_compressed
|
@@ -117,8 +117,8 @@ module SassC
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def syntax
|
120
|
-
syntax = @options.fetch(:syntax, :scss)
|
121
|
-
syntax = :indented if syntax
|
120
|
+
syntax = @options.fetch(:syntax, :scss).to_sym
|
121
|
+
syntax = :indented if syntax == :sass
|
122
122
|
syntax
|
123
123
|
end
|
124
124
|
|
@@ -167,6 +167,12 @@ module SassC
|
|
167
167
|
Script::ValueConversion.from_native(native_value, @options)
|
168
168
|
end
|
169
169
|
end
|
170
|
+
|
171
|
+
remove_method(:to_native_value) if private_method_defined?(:to_native_value, false)
|
172
|
+
|
173
|
+
def to_native_value(sass_value)
|
174
|
+
Script::ValueConversion.to_native(sass_value)
|
175
|
+
end
|
170
176
|
end
|
171
177
|
|
172
178
|
module NoopImporter
|
@@ -252,13 +258,13 @@ module SassC
|
|
252
258
|
def try_path(path)
|
253
259
|
partial = File.join(File.dirname(path), "_#{File.basename(path)}")
|
254
260
|
result = []
|
255
|
-
result.push(partial) if
|
256
|
-
result.push(path) if
|
261
|
+
result.push(partial) if File.file?(partial)
|
262
|
+
result.push(path) if File.file?(path)
|
257
263
|
result
|
258
264
|
end
|
259
265
|
|
260
266
|
def try_path_as_dir(path, from_import)
|
261
|
-
return unless
|
267
|
+
return unless File.directory?(path)
|
262
268
|
|
263
269
|
if from_import
|
264
270
|
result = exactly_one(try_path_with_ext(File.join(path, 'index.import')))
|
@@ -275,14 +281,6 @@ module SassC
|
|
275
281
|
raise "It's not clear which file to import. Found:\n#{paths.map { |path| " #{path}" }.join("\n")}"
|
276
282
|
end
|
277
283
|
|
278
|
-
def file_exist?(path)
|
279
|
-
File.exist?(path) && File.file?(path)
|
280
|
-
end
|
281
|
-
|
282
|
-
def dir_exist?(path)
|
283
|
-
File.exist?(path) && File.directory?(path)
|
284
|
-
end
|
285
|
-
|
286
284
|
def without_ext(path)
|
287
285
|
ext = File.extname(path)
|
288
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: []
|