sass-embedded 0.12.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11917ed4d9543adf380300ee5ba1db25d8681a69db35b6e4fe6ac83b4e1b07a6
|
4
|
+
data.tar.gz: ca18113ebee1ba530183bb477e4f927c0966903caa12174bba54382006ab5a8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 420269d9de74346fcceb81c391b7eafef25b9001d4c3ce67959bb1d6da1d4a6838c1ae9a22f794fc31b44ad2961ed55ecbf94f0bf980dc316ee7a6e51b87b88d
|
7
|
+
data.tar.gz: dd7bb981674b7a19f91169c402e540ff2d77abf50461383b7431a986cab21f06c7de8124825050325cfb8296f8066a95b2a03ebdd3c3da754aeb50bf4cf998aa
|
@@ -20,6 +20,7 @@ module Sass
|
|
20
20
|
url:,
|
21
21
|
|
22
22
|
source_map:,
|
23
|
+
source_map_include_sources:,
|
23
24
|
style:,
|
24
25
|
|
25
26
|
functions:,
|
@@ -39,6 +40,7 @@ module Sass
|
|
39
40
|
@url = url
|
40
41
|
|
41
42
|
@source_map = source_map
|
43
|
+
@source_map_include_sources = source_map_include_sources
|
42
44
|
@style = style
|
43
45
|
|
44
46
|
@global_functions = functions.keys.map(&:to_s)
|
@@ -151,6 +153,7 @@ module Sass
|
|
151
153
|
path: @path,
|
152
154
|
style: to_proto_output_style(@style),
|
153
155
|
source_map: @source_map,
|
156
|
+
source_map_include_sources: @source_map_include_sources,
|
154
157
|
importers: to_proto_importers(@importers, @load_paths),
|
155
158
|
global_functions: @global_functions,
|
156
159
|
alert_ascii: @alert_ascii,
|
data/lib/sass/embedded/render.rb
CHANGED
@@ -66,6 +66,7 @@ module Sass
|
|
66
66
|
syntax: indented_syntax ? :indented : :scss,
|
67
67
|
url: (Url.path_to_file_url(File.absolute_path(file)) unless file.nil?),
|
68
68
|
source_map: source_map_option,
|
69
|
+
source_map_include_sources: source_map_contents,
|
69
70
|
style: output_style,
|
70
71
|
functions: functions,
|
71
72
|
importers: importer.map do |legacy_importer|
|
@@ -74,6 +75,7 @@ module Sass
|
|
74
75
|
else
|
75
76
|
compile(file, load_paths: load_paths,
|
76
77
|
source_map: source_map_option,
|
78
|
+
source_map_include_sources: source_map_contents,
|
77
79
|
style: output_style,
|
78
80
|
functions: functions,
|
79
81
|
importers: importer.map do |legacy_importer|
|
@@ -98,11 +100,9 @@ module Sass
|
|
98
100
|
end
|
99
101
|
|
100
102
|
map, source_map = post_process_map(map: compile_result.source_map,
|
101
|
-
data: data,
|
102
103
|
file: file,
|
103
104
|
out_file: out_file,
|
104
105
|
source_map: source_map,
|
105
|
-
source_map_contents: source_map_contents,
|
106
106
|
source_map_root: source_map_root)
|
107
107
|
|
108
108
|
css = post_process_css(css: compile_result.css,
|
@@ -172,11 +172,9 @@ module Sass
|
|
172
172
|
|
173
173
|
# @deprecated
|
174
174
|
def post_process_map(map:,
|
175
|
-
data:,
|
176
175
|
file:,
|
177
176
|
out_file:,
|
178
177
|
source_map:,
|
179
|
-
source_map_contents:,
|
180
178
|
source_map_root:)
|
181
179
|
return if map.nil? || map.empty?
|
182
180
|
|
@@ -201,26 +199,11 @@ module Sass
|
|
201
199
|
map_data['file'] = 'stdin.css'
|
202
200
|
end
|
203
201
|
|
204
|
-
map_data['sourcesContent'] = [] if source_map_contents
|
205
|
-
|
206
|
-
file = File.absolute_path(file) unless file.nil?
|
207
|
-
|
208
202
|
map_data['sources'].map! do |source|
|
209
203
|
if source.start_with? 'file://'
|
210
204
|
path = Url.file_url_to_path(source)
|
211
|
-
content = if path == file && !data.nil?
|
212
|
-
data
|
213
|
-
else
|
214
|
-
begin
|
215
|
-
File.read(path)
|
216
|
-
rescue StandardError
|
217
|
-
nil
|
218
|
-
end
|
219
|
-
end
|
220
|
-
map_data['sourcesContent'].push(content) if source_map_contents
|
221
205
|
relative_path(source_map_dir, path)
|
222
206
|
else
|
223
|
-
map_data['sourcesContent'].push(nil) if source_map_contents
|
224
207
|
source
|
225
208
|
end
|
226
209
|
end
|
data/lib/sass/embedded.rb
CHANGED
@@ -34,6 +34,7 @@ module Sass
|
|
34
34
|
load_paths: [],
|
35
35
|
|
36
36
|
source_map: false,
|
37
|
+
source_map_include_sources: false,
|
37
38
|
style: :expanded,
|
38
39
|
|
39
40
|
functions: {},
|
@@ -55,6 +56,7 @@ module Sass
|
|
55
56
|
syntax: nil,
|
56
57
|
url: nil,
|
57
58
|
source_map: source_map,
|
59
|
+
source_map_include_sources: source_map_include_sources,
|
58
60
|
style: style,
|
59
61
|
functions: functions,
|
60
62
|
importers: importers,
|
@@ -81,6 +83,7 @@ module Sass
|
|
81
83
|
url: nil,
|
82
84
|
|
83
85
|
source_map: false,
|
86
|
+
source_map_include_sources: false,
|
84
87
|
style: :expanded,
|
85
88
|
|
86
89
|
functions: {},
|
@@ -101,6 +104,7 @@ module Sass
|
|
101
104
|
syntax: syntax,
|
102
105
|
url: url,
|
103
106
|
source_map: source_map,
|
107
|
+
source_map_include_sources: source_map_include_sources,
|
104
108
|
style: style,
|
105
109
|
functions: functions,
|
106
110
|
importers: importers,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -192,8 +192,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
192
192
|
licenses:
|
193
193
|
- MIT
|
194
194
|
metadata:
|
195
|
-
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.
|
196
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.
|
195
|
+
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.13.0
|
196
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.13.0
|
197
197
|
funding_uri: https://github.com/sponsors/ntkme
|
198
198
|
post_install_message:
|
199
199
|
rdoc_options: []
|