sassc-embedded 1.63.0 → 1.64.1

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: 9d7ed4c41b59c9da71323d18edaf73506cf634a2e9039fc050077a46acc0bb04
4
- data.tar.gz: 63a8b3809af3bb71724361f1bb1123486fd4f30b4e503d0c2ded02c9d05016e1
3
+ metadata.gz: 519d9a7796c0476fcb6fade84dbd2cf9f2d8fdee276ac28dfc9fb13895640645
4
+ data.tar.gz: 6baaf9cd2d19147644f6c1c320492947f4af5f4c1e4886437e1906cda93643fd
5
5
  SHA512:
6
- metadata.gz: 1d1b9e29fb88ed4b1fa114ec9ff657b9b62f913da04a7201ceebd13e5d6c66d9228cae4076beb8319f7344372a592f78063ee9311e0c22fd47b02e8d9f61bba2
7
- data.tar.gz: f28204b7ca9218f562a7fae9984dbece8afaacd36f26ee9726eac40d7e90c4076f231a4e1138e0a0be9e229581920953b60f3e74542131dc74acbac10529fb95
6
+ metadata.gz: ac771c550f630bb8d1d363dc7d84a9c18d04161b54f91eed048651db39e0e1ba06d65b249dfec6604fb14c3b9e1ff552c911a54d10e61ea3795e808acfbdb259
7
+ data.tar.gz: 5d84bbc68bcf6f3ad056f9c7bcd49421a63286a9eb3892eef4c4048d3817e398c31693d2eaf6a88c244e8168ec21dafd0b1d435be845e9b9f5df76eddff07521
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.63.0'
5
+ VERSION = '1.64.1'
6
6
  end
7
7
  end
@@ -3,7 +3,6 @@
3
3
  require 'sassc'
4
4
  require 'sass-embedded'
5
5
 
6
- require 'base64'
7
6
  require 'json'
8
7
  require 'uri'
9
8
 
@@ -46,7 +45,7 @@ module SassC
46
45
  unless @source_map.nil? || omit_source_map_url?
47
46
  url = URL.parse(output_url || file_url)
48
47
  source_mapping_url = if source_map_embed?
49
- "data:application/json;base64,#{Base64.strict_encode64(@source_map)}"
48
+ "data:application/json;base64,#{[@source_map].pack('m0')}"
50
49
  else
51
50
  URL.parse(source_map_file_url).route_from(url).to_s
52
51
  end
@@ -317,7 +316,7 @@ module SassC
317
316
  end
318
317
 
319
318
  canonical_url = "#{Protocol::IMPORT}#{next_id}"
320
- @importer_results[canonical_url] = imports_to_native(imports)
319
+ @importer_results[canonical_url] = imports_to_native(imports, from_import)
321
320
  canonical_url
322
321
  elsif url.start_with?(Protocol::LOADED)
323
322
  canonical_url = Protocol::LOADED
@@ -371,7 +370,7 @@ module SassC
371
370
  end
372
371
  end
373
372
 
374
- def imports_to_native(imports)
373
+ def imports_to_native(imports, from_import)
375
374
  {
376
375
  contents: imports.flat_map do |import|
377
376
  id = next_id
@@ -392,9 +391,10 @@ module SassC
392
391
  }
393
392
  end
394
393
  end
394
+ at_rule = from_import ? '@import' : '@forward'
395
395
  [
396
- "@import \"#{Protocol::IMPORT}#{id}\";",
397
- "@import \"#{Protocol::LOADED}#{id}\";"
396
+ "#{at_rule} \"#{Protocol::IMPORT}#{id}\";",
397
+ "#{at_rule} \"#{Protocol::LOADED}#{id}\";"
398
398
  ]
399
399
  end.join("\n"),
400
400
  syntax: :scss
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.63.0
4
+ version: 1.64.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-08 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.63'
33
+ version: '1.64'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.63'
40
+ version: '1.64'
41
41
  description: An embedded sass shim for SassC.
42
42
  email:
43
43
  - i@ntk.me
@@ -54,8 +54,8 @@ homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
54
54
  licenses:
55
55
  - MIT
56
56
  metadata:
57
- documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.63.0
58
- source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.63.0
57
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.64.1
58
+ source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.1
59
59
  funding_uri: https://github.com/sponsors/ntkme
60
60
  post_install_message:
61
61
  rdoc_options: []
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.7.0
68
+ version: 3.0.0
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="