sassc-embedded 1.0.3 → 1.0.6

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: 653470aa52eea5c7abe494d8ac3580ac2b5d7c1029286586751a73faf74aa55c
4
- data.tar.gz: 99e69744a6cbc30974008b302929cb3eea966645ec9c199667180ce944eb58b3
3
+ metadata.gz: 549a3c63651d41009f28d92d0d2790365bebb84bccf6032f678a291326dd9e01
4
+ data.tar.gz: 76f918e39226e2c6beb2ec29cd4416a678bdeb2dee2e3bb19a7a21bcc06c5d75
5
5
  SHA512:
6
- metadata.gz: 73f16f7eb7fae394d7ff2d7e98ae451e13caa17fc89cb89f55a17e572f869389c5d202ef0c0327610d00aaafcfeb9a8e5e610b0463c71d5ba0bf088a3f4af6c9
7
- data.tar.gz: '03942b1cc4f56e4b84402143bf85f5d97dae0a7f3b89d43c1b5dc246526856c5a6cc5936609362c5eb8d584a5a2054c34624a37dec7724f9cbec530e931fc1bb'
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. In `Importer#imports(path, parent_path)`, argument `path` is set to absolute path, and argument `parent_path` is set to value of option `:filename`.
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.0.3'
5
+ VERSION = '1.0.6'
6
6
  end
7
7
  end
@@ -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? 'file:'
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 = Util.file_url_to_path(url)
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.3
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.3
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.3
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: []