sassc-embedded 1.69.1 → 1.70.0

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: 7836057808dff01e36d4daecd7d6e3e495525d99960c80e646e98334bb1fbca6
4
- data.tar.gz: f39ee939d2597ae9c33d54191390b530d7da66bdb4424f7470bf7a3d4b719e0b
3
+ metadata.gz: c255de6b5398fbe5a3297b2e0102089a3a4feb4536abf882a14ccb2c422b0743
4
+ data.tar.gz: 956dd771d4345eaf8c6f71f594e3e8e03ff929648c5796e1243cd5a2b18e9b0e
5
5
  SHA512:
6
- metadata.gz: c6a16c289f8bb5dccbbb6c2417d290d09a158603f3fe8118500e00e75c2fc4c748acff0dfecb7c9acf94f0ad0158f67f17cd2ce9a3a63fed050d49cc784e7a2a
7
- data.tar.gz: 564a46198a0ddc3fca476de063144d03017aff9ffa5f1b2edc89b0a8b0c0595892e77debcd59cadbf293cce7b8b100030cc53413a1cc3a17633b345b83f62821
6
+ metadata.gz: d279064506b4c9a19efa377d4ec14534d6dc04d6110d6a05616b969b4d2e8de17eaffce8b0ceb2f6abf4189929cff1ce35388a7c9dae9ac189963ed0fb661237
7
+ data.tar.gz: a482c18cc65d5d440d86be9b8d1df5a82f4a11bb428b1f3fb141aa22b72c04895206a33cb16a2e600fb80a21a22069734ab3e2a9c6b8537cd3810567e72e57d6
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.0'
6
6
  end
7
7
  end
@@ -425,6 +425,27 @@ module SassC
425
425
  end
426
426
 
427
427
  module Script
428
+ class Value
429
+ class String
430
+ # Returns the quoted string representation of `contents`.
431
+ #
432
+ # @options opts :quote [String]
433
+ # The preferred quote style for quoted strings. If `:none`, strings are
434
+ # always emitted unquoted. If `nil`, quoting is determined automatically.
435
+ # @options opts :sass [String]
436
+ # Whether to quote strings for Sass source, as opposed to CSS. Defaults to `false`.
437
+ def self.quote(contents, opts = {})
438
+ contents = ::Sass::Value::String.new(contents, quoted: opts[:quote] != :none).to_s
439
+ opts[:sass] ? contents.gsub('#', '\#') : contents
440
+ end
441
+
442
+ def to_s(opts = {})
443
+ opts = { quote: :none }.merge!(opts) if @type == :identifier
444
+ self.class.quote(@value, opts)
445
+ end
446
+ end
447
+ end
448
+
428
449
  module ValueConversion
429
450
  def self.from_native(value, options)
430
451
  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.0
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-01-18 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.0
82
83
  funding_uri: https://github.com/sponsors/ntkme
83
84
  rubygems_mfa_required: 'true'
84
85
  post_install_message: