sassc-embedded 1.69.0 → 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: c04abf5053341fb764551c0a073a9be7a8545996aa1d27331577288041f131a6
4
- data.tar.gz: 6a728d5feeaee82c588e27d4f991f6cc1be6d8d4f53422866293f0b59806c1f1
3
+ metadata.gz: c255de6b5398fbe5a3297b2e0102089a3a4feb4536abf882a14ccb2c422b0743
4
+ data.tar.gz: 956dd771d4345eaf8c6f71f594e3e8e03ff929648c5796e1243cd5a2b18e9b0e
5
5
  SHA512:
6
- metadata.gz: 3c03befafd99e889c349817b9cd4d11101302b860a436423c0c62a1b4c23c91d1b6c4612d356cfd4b786c535aabe6b0b189ff10b3fa7e6afc9aab59a3cb1da54
7
- data.tar.gz: 264b18e4c69f5853364831be6ea9f984cacdd3c5ffb8e15d35b85564e7341482c1a7a821429b3f717a071302363af49c80bb0a0ccd01fbde707299974479476a
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.0'
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.0
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-29 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,9 +77,11 @@ 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.0
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
84
+ rubygems_mfa_required: 'true'
83
85
  post_install_message:
84
86
  rdoc_options: []
85
87
  require_paths: