sassc-embedded 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0520ad895979ec3c36838b7fdf5bac2430c923f873358606e49eb72f70776109
|
4
|
+
data.tar.gz: 2b60642cceca432904ad4f1cd0ab43f2501164e54a33e5e964758b80f29a3828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873f6c9d78221ad59c2e34f46d384496967e83480878a8e2db71de7166f2d6ec46ab960ca64f010ce7002736bfd6cea0b3a4b57f8eb7c7d020b655a77e132ba6
|
7
|
+
data.tar.gz: 354510f0d6a528603e3ac1aa3f32c3cb97fb166555508577e115375e4b30a34f889220fea4cd4d4eee95bbbc4c88ec62458d877535539836acb83a1bf7faaba2
|
data/lib/sassc/embedded.rb
CHANGED
@@ -22,7 +22,7 @@ module SassC
|
|
22
22
|
syntax: syntax,
|
23
23
|
url: file_url,
|
24
24
|
|
25
|
-
source_map: !source_map_file.nil?,
|
25
|
+
source_map: source_map_embed? || !source_map_file.nil?,
|
26
26
|
source_map_include_sources: source_map_contents?,
|
27
27
|
style: output_style,
|
28
28
|
|
@@ -52,6 +52,10 @@ module SassC
|
|
52
52
|
|
53
53
|
private
|
54
54
|
|
55
|
+
def output_path
|
56
|
+
@options[:output_path]
|
57
|
+
end
|
58
|
+
|
55
59
|
def file_url
|
56
60
|
@file_url ||= Util.path_to_file_url(filename || 'stdin')
|
57
61
|
end
|
@@ -89,6 +93,8 @@ module SassC
|
|
89
93
|
|
90
94
|
data = JSON.parse(source_map)
|
91
95
|
|
96
|
+
data['file'] = URI::DEFAULT_PARSER.escape(output_path) if output_path
|
97
|
+
|
92
98
|
data['sources'].map! do |source|
|
93
99
|
if source.start_with? 'file:'
|
94
100
|
relative_path(Dir.pwd, Util.file_url_to_path(source))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
@@ -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/0.1.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/0.1.3
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.3
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|