sassc-embedded 1.69.1 → 1.70.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 +4 -4
- data/README.md +16 -7
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +21 -21
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a1d6d7f744b77407d5d03ab046589505f9b33251eb8440e61a8230725ea3160
|
4
|
+
data.tar.gz: fb40b19e534709b43f83a26d3358efe8c7a6e0f493da6d1c2e358efc51a9c1a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f300bc7794f77fb090e4264bb62f79f1836a69be5a21a4b8e2889315bfa30dc18f46b372476ff9e8c5ac39d36e867bbb63c5d994eeb45ab64f8f12ac86d5660
|
7
|
+
data.tar.gz: 74441eae5009812fa2058cdbe992da2ca24dd3ddb5cfb4518b7bde3544a4bfde6fc1ebbe628b671726d7da528d81e48a9d48cb663664f21e324f2824c816db4c
|
data/README.md
CHANGED
@@ -7,13 +7,22 @@ Use `sass-embedded` with SassC Ruby!
|
|
7
7
|
|
8
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
|
-
|
11
|
-
|
12
|
-
- [`
|
13
|
-
- [`
|
14
|
-
- [`
|
15
|
-
- [`
|
16
|
-
- [`
|
10
|
+
## Which Sass implementation should I use for my Ruby project?
|
11
|
+
|
12
|
+
- [`sass-embedded`](https://github.com/sass-contrib/sass-embedded-host-ruby) is recommended for all projects. It is compatible with:
|
13
|
+
- [`dartsass-rails >=0.5.0`](https://github.com/rails/dartsass-rails)
|
14
|
+
- [`haml >=6.0.9`](https://github.com/haml/haml)
|
15
|
+
- [`silm >=5.2.0`](https://github.com/slim-template/slim)
|
16
|
+
- [`sinatra >=3.1.0`](https://github.com/sinatra/sinatra)
|
17
|
+
- [`tilt >=2.0.11`](https://github.com/jeremyevans/tilt)
|
18
|
+
- [`sassc-embedded`](https://github.com/sass-contrib/sassc-embedded-shim-ruby) is recommended for existing projects still using `sassc` or `sprockets`. It is compatible with:
|
19
|
+
- [`dartsass-sprockets`](https://github.com/tablecheck/dartsass-sprockets)
|
20
|
+
- [`sassc`](https://github.com/sass/sassc-ruby)
|
21
|
+
- [`sassc-rails`](https://github.com/sass/sassc-rails)
|
22
|
+
- [`sprockets`](https://github.com/rails/sprockets)
|
23
|
+
- [`sprockets-rails`](https://github.com/rails/sprockets-rails)
|
24
|
+
- [`sassc`](https://github.com/sass/sassc-ruby) [is deprecated](https://sass-lang.com/blog/libsass-is-deprecated/).
|
25
|
+
- [`sass`](https://github.com/sass/ruby-sass) [has reached end-of-life](https://sass-lang.com/blog/ruby-sass-is-unsupported/).
|
17
26
|
|
18
27
|
## Install
|
19
28
|
|
data/lib/sassc/embedded.rb
CHANGED
@@ -180,27 +180,6 @@ module SassC
|
|
180
180
|
Script::ValueConversion.from_native(native_value, @options)
|
181
181
|
end
|
182
182
|
end
|
183
|
-
|
184
|
-
begin
|
185
|
-
begin
|
186
|
-
raise RuntimeError
|
187
|
-
rescue StandardError
|
188
|
-
raise ::Sass::ScriptError
|
189
|
-
end
|
190
|
-
rescue StandardError => e
|
191
|
-
unless e.full_message.include?(e.cause.full_message)
|
192
|
-
::Sass::ScriptError.class_eval do
|
193
|
-
def full_message(...)
|
194
|
-
full_message = super(...)
|
195
|
-
if cause
|
196
|
-
"#{full_message}\n#{cause.full_message(...)}"
|
197
|
-
else
|
198
|
-
full_message
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
183
|
end
|
205
184
|
|
206
185
|
class ImportHandler
|
@@ -425,6 +404,27 @@ module SassC
|
|
425
404
|
end
|
426
405
|
|
427
406
|
module Script
|
407
|
+
class Value
|
408
|
+
class String
|
409
|
+
# Returns the quoted string representation of `contents`.
|
410
|
+
#
|
411
|
+
# @options opts :quote [String]
|
412
|
+
# The preferred quote style for quoted strings. If `:none`, strings are
|
413
|
+
# always emitted unquoted. If `nil`, quoting is determined automatically.
|
414
|
+
# @options opts :sass [String]
|
415
|
+
# Whether to quote strings for Sass source, as opposed to CSS. Defaults to `false`.
|
416
|
+
def self.quote(contents, opts = {})
|
417
|
+
contents = ::Sass::Value::String.new(contents, quoted: opts[:quote] != :none).to_s
|
418
|
+
opts[:sass] ? contents.gsub('#', '\#') : contents
|
419
|
+
end
|
420
|
+
|
421
|
+
def to_s(opts = {})
|
422
|
+
opts = { quote: :none }.merge!(opts) if @type == :identifier
|
423
|
+
self.class.quote(@value, opts)
|
424
|
+
end
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
428
|
module ValueConversion
|
429
429
|
def self.from_native(value, options)
|
430
430
|
case value
|
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.70.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-14 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.70'
|
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.70'
|
27
27
|
description: An embedded sass shim for SassC.
|
28
28
|
email:
|
29
29
|
- i@ntk.me
|
@@ -77,8 +77,9 @@ homepage: https://github.com/sass-contrib/sassc-embedded-shim-ruby
|
|
77
77
|
licenses:
|
78
78
|
- MIT
|
79
79
|
metadata:
|
80
|
+
bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
|
80
81
|
documentation_uri: https://rubydoc.info/gems/sassc
|
81
|
-
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.
|
82
|
+
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.70.1
|
82
83
|
funding_uri: https://github.com/sponsors/ntkme
|
83
84
|
rubygems_mfa_required: 'true'
|
84
85
|
post_install_message:
|