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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7836057808dff01e36d4daecd7d6e3e495525d99960c80e646e98334bb1fbca6
4
- data.tar.gz: f39ee939d2597ae9c33d54191390b530d7da66bdb4424f7470bf7a3d4b719e0b
3
+ metadata.gz: 1a1d6d7f744b77407d5d03ab046589505f9b33251eb8440e61a8230725ea3160
4
+ data.tar.gz: fb40b19e534709b43f83a26d3358efe8c7a6e0f493da6d1c2e358efc51a9c1a2
5
5
  SHA512:
6
- metadata.gz: c6a16c289f8bb5dccbbb6c2417d290d09a158603f3fe8118500e00e75c2fc4c748acff0dfecb7c9acf94f0ad0158f67f17cd2ce9a3a63fed050d49cc784e7a2a
7
- data.tar.gz: 564a46198a0ddc3fca476de063144d03017aff9ffa5f1b2edc89b0a8b0c0595892e77debcd59cadbf293cce7b8b100030cc53413a1cc3a17633b345b83f62821
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
- It has been tested with:
11
-
12
- - [`bootstrap`](https://github.com/twbs/bootstrap-rubygem)
13
- - [`sassc`](https://github.com/sass/sassc-ruby)
14
- - [`sassc-rails`](https://github.com/sass/sassc-rails)
15
- - [`sprockets`](https://github.com/rails/sprockets)
16
- - [`sprockets-rails`](https://github.com/rails/sprockets-rails)
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.69.1'
5
+ VERSION = '1.70.1'
6
6
  end
7
7
  end
@@ -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.69.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: 2023-12-31 00:00:00.000000000 Z
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.69'
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.69'
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.69.1
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: