dartsass-sprockets 3.2.0 → 3.2.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: 97ecd8e6a0a54de66fe07748636aa80c19d0a15e61259cf84fa4176bab3299f2
4
- data.tar.gz: 05040dc70d0af1710fd6e6525912fe684fdd12c09aae41b8e6784ab0c9677d1d
3
+ metadata.gz: 9a2da8ac4585dc1219da7fa83a1a51f76b7a68545ca9971664887d72baf80782
4
+ data.tar.gz: 25e69df6f4a1bdc15318297c2b087047b2b33e40793062df7e1eaf88a53bd93f
5
5
  SHA512:
6
- metadata.gz: ef8f73113bc5107745a3339297790c4ed857ed961c8d1935982fd9a5e05f0f35d66403db69b1f76bce7c2edfce3123a7e60d8df6af1ec970896499220fed08d4
7
- data.tar.gz: 1b82505cf1465ade855b79fd954a7047943600a0fc26ae25643f934768974db8441cdb2d44f2522a8f4d169cb4fe8b0432fa0196385df20fd4b61532823ad03a
6
+ metadata.gz: 69494bb5da2bed7d97fb784c475fef625a9b89f5d2246da2d6780f7f9f72ba9cf4caded668e770695c792edf1ab1033fdf0b91c65a7311f22f195162e08a7caf
7
+ data.tar.gz: e3d1bec2c6a13752fa1c3d0c2c69a01cd4411de624910e077ea22fae5df74dadc9c5f276f8526b50eab9538dec4851fe1a878c2db942e01246aee018e4355c54
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Dart Sass for Spockets
1
+ # Dart Sass for Sprockets
2
2
 
3
3
  [![build](https://github.com/tablecheck/dartsass-sprockets/actions/workflows/build.yml/badge.svg)](https://github.com/tablecheck/dartsass-sprockets/actions/workflows/build.yml)
4
4
  [![gem](https://badge.fury.io/rb/dartsass-sprockets.svg)](https://rubygems.org/gems/dartsass-sprockets)
@@ -83,16 +83,16 @@ and the [Dart Sass documentation](https://sass-lang.com/documentation/js-api/int
83
83
  |-------------------------|-----------------|-------------------------------------------------------------------------------------------------------------------------------|
84
84
  | `load_paths` | `Array<String>` | Additional paths to look for imported files. |
85
85
  | `inline_source_maps` | `Boolean` | If `true`, will append source maps inline to the generated CSS file. Refer to section below. |
86
- | `style`* | `Symbol` | `:expanded` (default) or `:compressed`. See note about CSS Minification below. |
86
+ | `style`* | `Symbol` | `:expanded` (default) or `:compressed`. Overridden by `Rails.config.assets.css_compressor`; see "CSS Minification" above. |
87
87
  | `charset`* | `Boolean` | Whether to include a @charset declaration or byte-order mark in the CSS output (default `true`). |
88
88
  | `logger`* | `Object` | An object to use to handle warnings and/or debug messages from Sass. |
89
89
  | `alert_ascii`* | `Boolean` | If `true`, Dart Sass will exclusively use ASCII characters in its error and warning messages (default `false`). |
90
90
  | `alert_color`* | `Boolean` | If `true`, Dart Sass will use ANSI color escape codes in its error and warning messages (default `false`). |
91
91
  | `verbose`* | `Boolean` | By default (`false`) Dart Sass logs up to five occurrences of each deprecation warning. Setting to `true` removes this limit. |
92
92
  | `quiet_deps`* | `Boolean` | If `true`, Dart Sass won’t print warnings that are caused by dependencies (default `false`). |
93
- | `silence_deprecations`* | `Array<String>` | An array of active deprecations to ignore. Refer to (deprecations)[dartsass-deprecations]. |
94
- | `fatal_deprecations`* | `Array<String>` | An array of deprecations to treat as fatal. Refer to (deprecations)[dartsass-deprecations]. |
95
- | `future_deprecations`* | `Array<String>` | An array of future deprecations to opt-into early. Refer to (deprecations)[dartsass-deprecations]. |
93
+ | `silence_deprecations`* | `Array<String>` | An array of active deprecations to ignore. Refer to [Dart Sass deprecations][dartsass-deprecations]. |
94
+ | `fatal_deprecations`* | `Array<String>` | An array of deprecations to treat as fatal. Refer to [Dart Sass deprecations][dartsass-deprecations]. |
95
+ | `future_deprecations`* | `Array<String>` | An array of future deprecations to opt-into early. Refer to [Dart Sass deprecations][dartsass-deprecations]. |
96
96
  | `importers`* | `Array<Object>` | Custom importers to use when resolving `@import` directives. |
97
97
 
98
98
  When changing config options in Development environment, you may need to clear
@@ -130,4 +130,4 @@ Note the following differences:
130
130
  4. Push to the branch (`git push origin my-new-feature`)
131
131
  5. Create a new Pull Request
132
132
 
133
- [dartsass-deprecations]: https://github.com/sass/sass/blob/40c50cb/js-api-doc/deprecations.d.ts#L260
133
+ [dartsass-deprecations]: https://sass-lang.com/documentation/js-api/interfaces/deprecations/
@@ -12,7 +12,10 @@ module Sprockets
12
12
  read_cache: false,
13
13
  style: :compressed
14
14
  }.merge(options).freeze
15
- @cache_key = SecureRandom.uuid
15
+
16
+ ver1 = SassC::Rails::VERSION
17
+ ver2 = SassC::Embedded::VERSION if defined?(SassC::Embedded::VERSION)
18
+ @cache_key = "#{self.class.name}:#{ver1}:#{ver2}:#{Sprockets::DigestUtils.digest(options)}".freeze
16
19
  end
17
20
 
18
21
  def call(*args)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Rails
5
- VERSION = '3.2.0'
5
+ VERSION = '3.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dartsass-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Boland
8
8
  - Johnny Shields
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-01-02 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
@@ -108,7 +107,6 @@ licenses:
108
107
  - MIT
109
108
  metadata:
110
109
  rubygems_mfa_required: 'true'
111
- post_install_message:
112
110
  rdoc_options: []
113
111
  require_paths:
114
112
  - lib
@@ -123,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
121
  - !ruby/object:Gem::Version
124
122
  version: '0'
125
123
  requirements: []
126
- rubygems_version: 3.5.11
127
- signing_key:
124
+ rubygems_version: 3.6.6
128
125
  specification_version: 4
129
126
  summary: Use Dart Sass with Sprockets and the Ruby on Rails asset pipeline.
130
127
  test_files: []