sasso 0.1.0-x86_64-linux → 0.1.1-x86_64-linux
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/CHANGELOG.md +12 -0
- data/lib/sasso/version.rb +1 -1
- data/lib/sasso.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c70ff84c7bf2830de04c3bb7f8cc5309a952f77319429ff20543a966523f87cc
|
|
4
|
+
data.tar.gz: d897fd9fb89d6ffa576f232429eb585c6f64ee30bcce7012329c002d907711b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2652fd93c84c15a1cb4acc0890e0c0c5f33cc7727783c93b537770d59f361c12d6265dc3bc54451c98a2136d286e84581047140c12a84fd2150e13ec8635965
|
|
7
|
+
data.tar.gz: 852381c860bec3b41b4178fb9fef25328fb7fa8234ea1c6e33accb490a9194c9a08258842beda2aaf67eaaf75d0ef721e306203ca347b5dd5d7c1c82e711527a
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,18 @@ notes the exact core crate version it pins.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.1.1] - 2026-06-13
|
|
12
|
+
|
|
13
|
+
Pins the same core crate **v0.3.0**.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- `Sasso.compile(path)` now searches the entry file's own directory FIRST for
|
|
18
|
+
relative `@use`/`@forward`/`@import` (the `sass` CLI convention), so a file on
|
|
19
|
+
disk can import its sibling partials without the caller spelling out
|
|
20
|
+
`load_paths:`. An explicit `load_paths:` is still honored, after the
|
|
21
|
+
implicit entry-file directory.
|
|
22
|
+
|
|
11
23
|
## [0.1.0] - 2026-06-13
|
|
12
24
|
|
|
13
25
|
Initial release. In-process SCSS/Sass → CSS via a Rust native extension
|
data/lib/sasso/version.rb
CHANGED
data/lib/sasso.rb
CHANGED
|
@@ -52,6 +52,10 @@ module Sasso
|
|
|
52
52
|
|
|
53
53
|
# Compile the file at `path`. Syntax is inferred from the extension unless
|
|
54
54
|
# overridden; `url:` defaults to `path` so diagnostics get the dart-exact block.
|
|
55
|
+
#
|
|
56
|
+
# The entry file's own directory is searched FIRST for relative @use/@forward/
|
|
57
|
+
# @import (the `sass` CLI convention — a file on disk can always import its
|
|
58
|
+
# siblings), ahead of any caller-supplied `load_paths:`.
|
|
55
59
|
def compile(path, **opts)
|
|
56
60
|
src = File.read(path)
|
|
57
61
|
inferred =
|
|
@@ -60,7 +64,9 @@ module Sasso
|
|
|
60
64
|
when ".css" then :css
|
|
61
65
|
else :scss
|
|
62
66
|
end
|
|
63
|
-
|
|
67
|
+
given = Array(opts.delete(:load_paths)).map(&:to_s)
|
|
68
|
+
load_paths = [File.dirname(path.to_s), *given]
|
|
69
|
+
compile_string(src, syntax: inferred, url: path.to_s, load_paths: load_paths, **opts)
|
|
64
70
|
end
|
|
65
71
|
|
|
66
72
|
def validate!(value, allowed, name)
|