sassc-embedded 1.1.0 → 1.1.1
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 +7 -7
- 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: 94ea23724cbde018da55c68a8fa49ad4ea401b03e3b0e8ffe18ecddbc358845d
|
|
4
|
+
data.tar.gz: b6242dfa84029675f4484704227a881a31f0c6be6f8146c944b0a6100b420b9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2d72e3155a69dafeb1967969a1d44aa971f1fda65c00cc221283ed4c6637ebd8e5ec5854622ca01df96bdf2a6e72b901ae664de967e53cf73ffa55e3586cf87
|
|
7
|
+
data.tar.gz: 8c710e8dd44938506fef282b5266af5cfaafd2c8a06f750b2296538102c0e88cf7dfc7dae4a08f01c230a9e638a6a546413adf306ddc2f21360ee241da8c84f9
|
data/lib/sassc/embedded.rb
CHANGED
|
@@ -163,8 +163,8 @@ module SassC
|
|
|
163
163
|
private
|
|
164
164
|
|
|
165
165
|
def arguments_from_native_list(native_argument_list)
|
|
166
|
-
native_argument_list.map do |
|
|
167
|
-
Script::ValueConversion.from_native
|
|
166
|
+
native_argument_list.map do |native_value|
|
|
167
|
+
Script::ValueConversion.from_native(native_value, @options)
|
|
168
168
|
end.compact
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -175,7 +175,7 @@ module SassC
|
|
|
175
175
|
raise ::Sass::ScriptError
|
|
176
176
|
end
|
|
177
177
|
rescue StandardError => e
|
|
178
|
-
unless e.full_message.include?
|
|
178
|
+
unless e.full_message.include?(e.cause.full_message)
|
|
179
179
|
::Sass::ScriptError.class_eval do
|
|
180
180
|
def full_message(*args, **kwargs)
|
|
181
181
|
full_message = super(*args, **kwargs)
|
|
@@ -200,7 +200,7 @@ module SassC
|
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
class FileImporter
|
|
203
|
-
def find_file_url(url, **
|
|
203
|
+
def find_file_url(url, **)
|
|
204
204
|
return url if url.start_with?('file:')
|
|
205
205
|
end
|
|
206
206
|
end
|
|
@@ -229,8 +229,8 @@ module SassC
|
|
|
229
229
|
|
|
230
230
|
canonical_url = "sassc-embedded:#{canonical_url}"
|
|
231
231
|
|
|
232
|
-
imports = @importer.imports
|
|
233
|
-
unless imports.is_a?
|
|
232
|
+
imports = @importer.imports(path, @importer.options[:filename])
|
|
233
|
+
unless imports.is_a?(Array)
|
|
234
234
|
return if imports.path == path
|
|
235
235
|
|
|
236
236
|
imports = [imports]
|
|
@@ -422,7 +422,7 @@ module SassC
|
|
|
422
422
|
return if path.nil?
|
|
423
423
|
|
|
424
424
|
path = File.absolute_path(path)
|
|
425
|
-
path = "/#{path}" unless path.start_with?
|
|
425
|
+
path = "/#{path}" unless path.start_with?('/')
|
|
426
426
|
URI::File.build([nil, escape(path)]).to_s
|
|
427
427
|
end
|
|
428
428
|
end
|
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.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-03-
|
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sassc
|
|
@@ -138,8 +138,8 @@ homepage: https://github.com/ntkme/sassc-embedded-polyfill-ruby
|
|
|
138
138
|
licenses:
|
|
139
139
|
- MIT
|
|
140
140
|
metadata:
|
|
141
|
-
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.1.
|
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.1.
|
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.1.1
|
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.1.1
|
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
|
144
144
|
post_install_message:
|
|
145
145
|
rdoc_options: []
|