sassc-embedded 1.68.6 → 1.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b6364993b6000eb430dfe38d63a8741e4408715faf19310bf427aee02c694be
4
- data.tar.gz: c8442f00971e028dbc48c6137236c96df9d1cb72c0e97963e2d7479b5756ecb6
3
+ metadata.gz: 7836057808dff01e36d4daecd7d6e3e495525d99960c80e646e98334bb1fbca6
4
+ data.tar.gz: f39ee939d2597ae9c33d54191390b530d7da66bdb4424f7470bf7a3d4b719e0b
5
5
  SHA512:
6
- metadata.gz: 0faf40a82e4496e9d8ffa9fd4117a06f30984199b061e7ad564bf7bcc66c67ea6ead4ae95275badd92a64826c8e5b553b34b70ddc6c43a756de294bdb154963c
7
- data.tar.gz: 9e7da86f55f99a1a3daf226074e7b1926473dbe06e56280c8f138d86f6b43889c0fba2cfcc5b7573b24a3e13bb6301dd15f0469d8c0b68c57c416617a35b54b9
6
+ metadata.gz: c6a16c289f8bb5dccbbb6c2417d290d09a158603f3fe8118500e00e75c2fc4c748acff0dfecb7c9acf94f0ad0158f67f17cd2ce9a3a63fed050d49cc784e7a2a
7
+ data.tar.gz: 564a46198a0ddc3fca476de063144d03017aff9ffa5f1b2edc89b0a8b0c0595892e77debcd59cadbf293cce7b8b100030cc53413a1cc3a17633b345b83f62821
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Embedded Sass Shim for SassC Ruby
2
2
 
3
- [![build](https://github.com/ntkme/sassc-embedded-shim-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/sassc-embedded-shim-ruby/actions/workflows/build.yml)
3
+ [![build](https://github.com/sass-contrib/sassc-embedded-shim-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/sass-contrib/sassc-embedded-shim-ruby/actions/workflows/build.yml)
4
4
  [![gem](https://badge.fury.io/rb/sassc-embedded.svg)](https://rubygems.org/gems/sassc-embedded)
5
5
 
6
6
  Use `sass-embedded` with SassC Ruby!
7
7
 
8
- This library shims [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass-embedded`](https://github.com/ntkme/sass-embedded-host-ruby) implementation.
8
+ This library shims [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass-embedded`](https://github.com/sass-contrib/sass-embedded-host-ruby) implementation.
9
9
 
10
10
  It has been tested with:
11
11
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.68.6'
5
+ VERSION = '1.69.1'
6
6
  end
7
7
  end
@@ -8,10 +8,6 @@ require 'uri'
8
8
 
9
9
  require_relative 'embedded/version'
10
10
 
11
- module Sass
12
- Compiler = Embedded unless defined?(::Sass::Compiler)
13
- end
14
-
15
11
  module SassC
16
12
  class Engine
17
13
  def render
@@ -19,13 +15,11 @@ module SassC
19
15
 
20
16
  base_importer = import_handler.setup(nil)
21
17
 
22
- sass = ::Sass::Compiler.new
23
-
24
- result = sass.compile_string(
18
+ result = ::Sass.compile_string(
25
19
  @template,
26
20
  importer: base_importer,
27
- load_paths: load_paths,
28
- syntax: syntax,
21
+ load_paths:,
22
+ syntax:,
29
23
  url: file_url,
30
24
 
31
25
  charset: @options.fetch(:charset, true),
@@ -69,9 +63,7 @@ module SassC
69
63
  path = if url&.start_with?(Protocol::FILE)
70
64
  URL.file_urls_to_relative_path(url, URL.path_to_file_url("#{Dir.pwd}/"))
71
65
  end
72
- raise SyntaxError.new(e.full_message, filename: path, line: line)
73
- ensure
74
- sass&.close
66
+ raise SyntaxError.new(e.full_message, filename: path, line:)
75
67
  end
76
68
 
77
69
  def dependencies
@@ -161,7 +153,7 @@ module SassC
161
153
  end.new
162
154
  functions_wrapper.options = @options
163
155
 
164
- Script.custom_functions(functions: functions).each do |custom_function|
156
+ Script.custom_functions(functions:).each do |custom_function|
165
157
  callback = lambda do |native_argument_list|
166
158
  function_arguments = arguments_from_native_list(native_argument_list)
167
159
  begin
@@ -175,7 +167,7 @@ module SassC
175
167
  raise e
176
168
  end
177
169
 
178
- @callbacks[Script.formatted_function_name(custom_function, functions: functions)] = callback
170
+ @callbacks[Script.formatted_function_name(custom_function, functions:)] = callback
179
171
  end
180
172
 
181
173
  @callbacks
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.6
4
+ version: 1.69.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-02 00:00:00.000000000 Z
11
+ date: 2023-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-embedded
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.68'
19
+ version: '1.69'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.68'
26
+ version: '1.69'
27
27
  description: An embedded sass shim for SassC.
28
28
  email:
29
29
  - i@ntk.me
@@ -73,13 +73,14 @@ files:
73
73
  - vendor/github.com/sass/sassc-ruby/lib/sassc/util.rb
74
74
  - vendor/github.com/sass/sassc-ruby/lib/sassc/util/normalized_map.rb
75
75
  - vendor/github.com/sass/sassc-ruby/lib/sassc/version.rb
76
- homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
76
+ homepage: https://github.com/sass-contrib/sassc-embedded-shim-ruby
77
77
  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.6
81
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.69.1
82
82
  funding_uri: https://github.com/sponsors/ntkme
83
+ rubygems_mfa_required: 'true'
83
84
  post_install_message:
84
85
  rdoc_options: []
85
86
  require_paths:
@@ -89,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
90
  requirements:
90
91
  - - ">="
91
92
  - !ruby/object:Gem::Version
92
- version: 3.0.0
93
+ version: 3.1.0
93
94
  required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  requirements:
95
96
  - - ">="
96
97
  - !ruby/object:Gem::Version
97
98
  version: '0'
98
99
  requirements: []
99
- rubygems_version: 3.4.10
100
+ rubygems_version: 3.5.3
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: Use dart-sass with SassC!