sassc-embedded 1.68.5 → 1.69.0
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 +4 -4
- data/README.md +2 -2
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +6 -10
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c04abf5053341fb764551c0a073a9be7a8545996aa1d27331577288041f131a6
|
|
4
|
+
data.tar.gz: 6a728d5feeaee82c588e27d4f991f6cc1be6d8d4f53422866293f0b59806c1f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c03befafd99e889c349817b9cd4d11101302b860a436423c0c62a1b4c23c91d1b6c4612d356cfd4b786c535aabe6b0b189ff10b3fa7e6afc9aab59a3cb1da54
|
|
7
|
+
data.tar.gz: 264b18e4c69f5853364831be6ea9f984cacdd3c5ffb8e15d35b85564e7341482c1a7a821429b3f717a071302363af49c80bb0a0ccd01fbde707299974479476a
|
data/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Embedded Sass Shim for SassC Ruby
|
|
2
2
|
|
|
3
|
-
[](https://github.com/sass-contrib/sassc-embedded-shim-ruby/actions/workflows/build.yml)
|
|
4
4
|
[](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/
|
|
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
|
|
data/lib/sassc/embedded.rb
CHANGED
|
@@ -15,13 +15,11 @@ module SassC
|
|
|
15
15
|
|
|
16
16
|
base_importer = import_handler.setup(nil)
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
result = sass.compile_string(
|
|
18
|
+
result = ::Sass.compile_string(
|
|
21
19
|
@template,
|
|
22
20
|
importer: base_importer,
|
|
23
|
-
load_paths
|
|
24
|
-
syntax
|
|
21
|
+
load_paths:,
|
|
22
|
+
syntax:,
|
|
25
23
|
url: file_url,
|
|
26
24
|
|
|
27
25
|
charset: @options.fetch(:charset, true),
|
|
@@ -65,9 +63,7 @@ module SassC
|
|
|
65
63
|
path = if url&.start_with?(Protocol::FILE)
|
|
66
64
|
URL.file_urls_to_relative_path(url, URL.path_to_file_url("#{Dir.pwd}/"))
|
|
67
65
|
end
|
|
68
|
-
raise SyntaxError.new(e.full_message, filename: path, line:
|
|
69
|
-
ensure
|
|
70
|
-
sass&.close
|
|
66
|
+
raise SyntaxError.new(e.full_message, filename: path, line:)
|
|
71
67
|
end
|
|
72
68
|
|
|
73
69
|
def dependencies
|
|
@@ -157,7 +153,7 @@ module SassC
|
|
|
157
153
|
end.new
|
|
158
154
|
functions_wrapper.options = @options
|
|
159
155
|
|
|
160
|
-
Script.custom_functions(functions:
|
|
156
|
+
Script.custom_functions(functions:).each do |custom_function|
|
|
161
157
|
callback = lambda do |native_argument_list|
|
|
162
158
|
function_arguments = arguments_from_native_list(native_argument_list)
|
|
163
159
|
begin
|
|
@@ -171,7 +167,7 @@ module SassC
|
|
|
171
167
|
raise e
|
|
172
168
|
end
|
|
173
169
|
|
|
174
|
-
@callbacks[Script.formatted_function_name(custom_function, functions:
|
|
170
|
+
@callbacks[Script.formatted_function_name(custom_function, functions:)] = callback
|
|
175
171
|
end
|
|
176
172
|
|
|
177
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.
|
|
4
|
+
version: 1.69.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-29 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.
|
|
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.
|
|
26
|
+
version: '1.69'
|
|
27
27
|
description: An embedded sass shim for SassC.
|
|
28
28
|
email:
|
|
29
29
|
- i@ntk.me
|
|
@@ -73,12 +73,12 @@ 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/
|
|
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/
|
|
81
|
+
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.69.0
|
|
82
82
|
funding_uri: https://github.com/sponsors/ntkme
|
|
83
83
|
post_install_message:
|
|
84
84
|
rdoc_options: []
|
|
@@ -89,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
89
89
|
requirements:
|
|
90
90
|
- - ">="
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: 3.
|
|
92
|
+
version: 3.1.0
|
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - ">="
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
97
|
version: '0'
|
|
98
98
|
requirements: []
|
|
99
|
-
rubygems_version: 3.
|
|
99
|
+
rubygems_version: 3.5.3
|
|
100
100
|
signing_key:
|
|
101
101
|
specification_version: 4
|
|
102
102
|
summary: Use dart-sass with SassC!
|