sassc-embedded 1.63.0 → 1.64.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: 9d7ed4c41b59c9da71323d18edaf73506cf634a2e9039fc050077a46acc0bb04
4
- data.tar.gz: 63a8b3809af3bb71724361f1bb1123486fd4f30b4e503d0c2ded02c9d05016e1
3
+ metadata.gz: a17b1cef768356ef3f6e43a55502adbba7ebd45da75563fc5490289262eced91
4
+ data.tar.gz: d09b3fcfa43e8f7a7a78bc188d19a5a970e9b7b468e533b0f58d49909b303182
5
5
  SHA512:
6
- metadata.gz: 1d1b9e29fb88ed4b1fa114ec9ff657b9b62f913da04a7201ceebd13e5d6c66d9228cae4076beb8319f7344372a592f78063ee9311e0c22fd47b02e8d9f61bba2
7
- data.tar.gz: f28204b7ca9218f562a7fae9984dbece8afaacd36f26ee9726eac40d7e90c4076f231a4e1138e0a0be9e229581920953b60f3e74542131dc74acbac10529fb95
6
+ metadata.gz: bfeb102dc0496cead90ca751d94d72cad51c2c132095654cdc0baad049f54909b284d928be53f248dee7d3b74452f0a1181c018b11714b965b8de53736c7f3f5
7
+ data.tar.gz: a9946e66a973528c32dd77ee778da708a62c3ea6095e9bc0a37cf661698f0add59cb69cb8f9a433380442a5a21a3d6c545a4e066d442ae0453c203d34d3d5654
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.63.0'
5
+ VERSION = '1.64.0'
6
6
  end
7
7
  end
@@ -317,7 +317,7 @@ module SassC
317
317
  end
318
318
 
319
319
  canonical_url = "#{Protocol::IMPORT}#{next_id}"
320
- @importer_results[canonical_url] = imports_to_native(imports)
320
+ @importer_results[canonical_url] = imports_to_native(imports, from_import)
321
321
  canonical_url
322
322
  elsif url.start_with?(Protocol::LOADED)
323
323
  canonical_url = Protocol::LOADED
@@ -371,7 +371,7 @@ module SassC
371
371
  end
372
372
  end
373
373
 
374
- def imports_to_native(imports)
374
+ def imports_to_native(imports, from_import)
375
375
  {
376
376
  contents: imports.flat_map do |import|
377
377
  id = next_id
@@ -392,9 +392,10 @@ module SassC
392
392
  }
393
393
  end
394
394
  end
395
+ at_rule = from_import ? '@import' : '@forward'
395
396
  [
396
- "@import \"#{Protocol::IMPORT}#{id}\";",
397
- "@import \"#{Protocol::LOADED}#{id}\";"
397
+ "#{at_rule} \"#{Protocol::IMPORT}#{id}\";",
398
+ "#{at_rule} \"#{Protocol::LOADED}#{id}\";"
398
399
  ]
399
400
  end.join("\n"),
400
401
  syntax: :scss
metadata CHANGED
@@ -1,15 +1,29 @@
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.0
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-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: base64
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: sassc
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.63'
47
+ version: '1.64'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.63'
54
+ version: '1.64'
41
55
  description: An embedded sass shim for SassC.
42
56
  email:
43
57
  - i@ntk.me
@@ -54,8 +68,8 @@ homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
54
68
  licenses:
55
69
  - MIT
56
70
  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
71
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.64.0
72
+ source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.0
59
73
  funding_uri: https://github.com/sponsors/ntkme
60
74
  post_install_message:
61
75
  rdoc_options: []
@@ -65,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 2.7.0
82
+ version: 3.0.0
69
83
  required_rubygems_version: !ruby/object:Gem::Requirement
70
84
  requirements:
71
85
  - - ">="