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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3066176be4bd43c561ee5522260369b158047d3ec02e87092964aa69cf9c01e0
4
- data.tar.gz: daf1dc981ff96fb9371599f54bb9a9fdb105158400a7c1619ecc81131159434b
3
+ metadata.gz: c70ff84c7bf2830de04c3bb7f8cc5309a952f77319429ff20543a966523f87cc
4
+ data.tar.gz: d897fd9fb89d6ffa576f232429eb585c6f64ee30bcce7012329c002d907711b1
5
5
  SHA512:
6
- metadata.gz: a60cefefb9266526f3428c6215331523d61f2817d09000f796ef6e6fd8971c1f25c15967af6eae5f8caa3426d99280defd60b993f84cafedafdc9e5f5c05f5a4
7
- data.tar.gz: bf8b42e28d2b1fa39268a0f5f43443043e7de8f1b1af95942460ced394473a688de3e3f794d742d2724fb7d0de2a4da7d0eeca987e3099541e291670c90d48b1
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
@@ -3,5 +3,5 @@
3
3
  module Sasso
4
4
  # The gem version floats INDEPENDENTLY of the core `sasso` crate version; the
5
5
  # native extension pins the crate exactly (ext/sasso/Cargo.toml: sasso = "=…").
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
  end
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
- compile_string(src, syntax: inferred, url: path.to_s, **opts)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sasso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - momiji-rs