sassc-embedded 1.0.3 → 1.0.6
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/README.md +16 -1
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +7 -3
- 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: 549a3c63651d41009f28d92d0d2790365bebb84bccf6032f678a291326dd9e01
|
4
|
+
data.tar.gz: 76f918e39226e2c6beb2ec29cd4416a678bdeb2dee2e3bb19a7a21bcc06c5d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef7775f76b00473a8c576d9dea876f3fb8ed4af76ad619f9bfd4b4a75f4250683b29df315e07aec38262d7c7702d2fd1fffbb83e887a1a2f253a36cf4e49c3e3
|
7
|
+
data.tar.gz: b210c166f0cdc23a984ef5bdf6d40f35d52e2dd7eebdd3fbb742d69c5f27b16f5acca8ea0fd8c0aaab420e826c1d93946f14f880643ae691cab31f818ae24fdd
|
data/README.md
CHANGED
@@ -10,6 +10,21 @@ This library polyfills [`sassc`](https://github.com/sass/sassc-ruby) with the [`
|
|
10
10
|
|
11
11
|
## Install
|
12
12
|
|
13
|
+
Add these lines to your application's Gemfile:
|
14
|
+
|
15
|
+
``` ruby
|
16
|
+
gem 'sassc', github: 'sass/sassc-ruby', ref: 'refs/pull/233/head'
|
17
|
+
gem 'sassc-embedded'
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
``` sh
|
23
|
+
bundle
|
24
|
+
```
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
13
28
|
``` sh
|
14
29
|
gem install sassc-embedded
|
15
30
|
```
|
@@ -36,6 +51,6 @@ See [rubydoc.info/gems/sassc](https://rubydoc.info/gems/sassc) for full API docu
|
|
36
51
|
|
37
52
|
4. Option `:line_comments` is ignored.
|
38
53
|
|
39
|
-
5.
|
54
|
+
5. Argument `parent_path` in `Importer#imports(path, parent_path)` is set to value of option `:filename`.
|
40
55
|
|
41
56
|
See [the dart-sass documentation](https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass) for other differences.
|
data/lib/sassc/embedded.rb
CHANGED
@@ -101,7 +101,7 @@ module SassC
|
|
101
101
|
data['file'] = Util::URI_PARSER.escape(relative_path(source_map_dir, output_path)) if output_path
|
102
102
|
|
103
103
|
data['sources'].map! do |source|
|
104
|
-
if source.start_with?
|
104
|
+
if source.start_with?('file:')
|
105
105
|
relative_path(source_map_dir, Util.file_url_to_path(source))
|
106
106
|
else
|
107
107
|
source
|
@@ -165,7 +165,7 @@ module SassC
|
|
165
165
|
def arguments_from_native_list(native_argument_list)
|
166
166
|
native_argument_list.map do |embedded_value|
|
167
167
|
Script::ValueConversion.from_native embedded_value, @options
|
168
|
-
end
|
168
|
+
end.compact
|
169
169
|
end
|
170
170
|
|
171
171
|
begin
|
@@ -214,7 +214,11 @@ module SassC
|
|
214
214
|
end
|
215
215
|
|
216
216
|
def canonicalize(url, **)
|
217
|
-
path =
|
217
|
+
path = if url.start_with?('file:')
|
218
|
+
Util.file_url_to_path(url)
|
219
|
+
else
|
220
|
+
Util::URI_PARSER.unescape(url)
|
221
|
+
end
|
218
222
|
canonical_url = Util.path_to_file_url(File.absolute_path(path))
|
219
223
|
|
220
224
|
if @importer_results.key?(canonical_url)
|
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: 1.0.
|
4
|
+
version: 1.0.6
|
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/1.0.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.0.6
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.6
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|