sassc-embedded 1.68.3 → 1.68.5

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: ebda8193661d3e610338c37843843a7437ba861a3bc75e44a83b0f2fc6490248
4
- data.tar.gz: fd67e61a4b5ddceb37c96f6c7793c9d2d6322612267f183fe09bd7fe71d278ab
3
+ metadata.gz: 535cc6e2ea596f2cc432e3b35b2343275a3b7834c70247d6f73f3e63ca6f81d3
4
+ data.tar.gz: e2dde36180d8dd2b65917c8f1ff6f012ba7d121abebd439a3108d8bffe1783cb
5
5
  SHA512:
6
- metadata.gz: 84d93ee23538b49add2e6ef11446cda4db188f974d742eb4982fb476daef8625471f679032c59195a4c894facc5394b4c04bcd16b7de82ea788516c71929ad9b
7
- data.tar.gz: 8b776a2fd9357e6b4b0e9b515903c0fbde759574058ef8cb88c7a98e146520fbf5e784b2561bd9d90c382c3ff7dc07d3bb852e5931f100b02648610aea5e84a2
6
+ metadata.gz: 86ffffad006834ae4d0e4bbeec35c644416bb36d68575ddc317f4145d2cbb01841f6bfd80f860bd7f7745601f6b94fab119ea0ee8f7b8d70fa0616539dc15e29
7
+ data.tar.gz: 8a3c341f113349b604ca034108754f9d875a2e0a54bd2e9173b29cd6b24d881ddf2ad51208fd36ddfa765656ce7c2cbac38a2f64bf807b9422634eb64ad1d16f
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.68.3'
5
+ VERSION = '1.68.5'
6
6
  end
7
7
  end
@@ -15,7 +15,9 @@ module SassC
15
15
 
16
16
  base_importer = import_handler.setup(nil)
17
17
 
18
- result = ::Sass.compile_string(
18
+ sass = ::Sass::Embedded.new
19
+
20
+ result = sass.compile_string(
19
21
  @template,
20
22
  importer: base_importer,
21
23
  load_paths: load_paths,
@@ -64,6 +66,8 @@ module SassC
64
66
  URL.file_urls_to_relative_path(url, URL.path_to_file_url("#{Dir.pwd}/"))
65
67
  end
66
68
  raise SyntaxError.new(e.full_message, filename: path, line: line)
69
+ ensure
70
+ sass&.close
67
71
  end
68
72
 
69
73
  def dependencies
@@ -588,7 +592,7 @@ module SassC
588
592
  return if path.nil?
589
593
 
590
594
  path = "/#{path}" unless path.start_with?('/')
591
- URI::File.build([nil, escape(path)]).to_s
595
+ "file://#{escape(path)}"
592
596
  end
593
597
  end
594
598
 
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.68.3
4
+ version: 1.68.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-22 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-embedded
@@ -78,7 +78,7 @@ licenses:
78
78
  - MIT
79
79
  metadata:
80
80
  documentation_uri: https://rubydoc.info/gems/sassc
81
- source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.68.3
81
+ source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.68.5
82
82
  funding_uri: https://github.com/sponsors/ntkme
83
83
  post_install_message:
84
84
  rdoc_options: []