sassc-embedded 1.64.0 → 1.64.2

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: a17b1cef768356ef3f6e43a55502adbba7ebd45da75563fc5490289262eced91
4
- data.tar.gz: d09b3fcfa43e8f7a7a78bc188d19a5a970e9b7b468e533b0f58d49909b303182
3
+ metadata.gz: c0c3f79381ebf1f13b2b1a3e049acc02fe092da0fd229a87095014e93347c317
4
+ data.tar.gz: c99f48ee690cc56999888b6f92013a18ef6f6df3f2cc7baa9fd2080393078026
5
5
  SHA512:
6
- metadata.gz: bfeb102dc0496cead90ca751d94d72cad51c2c132095654cdc0baad049f54909b284d928be53f248dee7d3b74452f0a1181c018b11714b965b8de53736c7f3f5
7
- data.tar.gz: a9946e66a973528c32dd77ee778da708a62c3ea6095e9bc0a37cf661698f0add59cb69cb8f9a433380442a5a21a3d6c545a4e066d442ae0453c203d34d3d5654
6
+ metadata.gz: 2065c04a11cc220990695434439602abb7b99710463b3da0541a25a2ef451a31e64ccce15852edd4e6a0e74c9c8ae3cd2cee0fc862e51e1ed20817ddc374095a
7
+ data.tar.gz: e1c3107e97173a4018676c10244cee380099d0d615283e838b2191460d0c310ee83ab15316c9525c011bf55c778bc1c58678ce6fb11babecede27de818fbb761
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.64.0'
5
+ VERSION = '1.64.2'
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
 
@@ -14,9 +13,11 @@ module SassC
14
13
  def render
15
14
  return @template.dup if @template.empty?
16
15
 
16
+ base_importer = import_handler.setup(nil)
17
+
17
18
  result = ::Sass.compile_string(
18
19
  @template,
19
- importer: import_handler.setup(nil),
20
+ importer: base_importer,
20
21
  load_paths: load_paths,
21
22
  syntax: syntax,
22
23
  url: file_url,
@@ -27,7 +28,7 @@ module SassC
27
28
  style: output_style,
28
29
 
29
30
  functions: functions_handler.setup(nil, functions: @functions),
30
- importers: @options.fetch(:importers, []),
31
+ importers: (base_importer.nil? ? [] : [base_importer]).concat(@options.fetch(:importers, [])),
31
32
 
32
33
  alert_ascii: @options.fetch(:alert_ascii, false),
33
34
  alert_color: @options.fetch(:alert_color, nil),
@@ -46,7 +47,7 @@ module SassC
46
47
  unless @source_map.nil? || omit_source_map_url?
47
48
  url = URL.parse(output_url || file_url)
48
49
  source_mapping_url = if source_map_embed?
49
- "data:application/json;base64,#{Base64.strict_encode64(@source_map)}"
50
+ "data:application/json;base64,#{[@source_map].pack('m0')}"
50
51
  else
51
52
  URL.parse(source_map_file_url).route_from(url).to_s
52
53
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.0
4
+ version: 1.64.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-18 00:00:00.000000000 Z
11
+ date: 2023-09-05 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'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: sassc
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -68,8 +54,8 @@ homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
68
54
  licenses:
69
55
  - MIT
70
56
  metadata:
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
57
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.64.2
58
+ source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.64.2
73
59
  funding_uri: https://github.com/sponsors/ntkme
74
60
  post_install_message:
75
61
  rdoc_options: []