sasso-rails 0.1.5 → 0.1.6

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: c6608f26711bf73d29ec2d86536328dc0de6ada6dd634c10845a2ab5cc7ace4f
4
- data.tar.gz: 359caa6deb1675ddbd90d8f0174d9892adb5a5604c3460976f1e8a320245c321
3
+ metadata.gz: fcadbccdd6218359fa702c4cd5d40d8a77719ab640d73fdb9f669e7cfbf0a34f
4
+ data.tar.gz: ec46192843d26baeaf154a518aee04d3f756be19264fd08694ab21be7cff5927
5
5
  SHA512:
6
- metadata.gz: 1c9d539580067b05c211c08e4f84264141c98dbdf4a2ea13846fb7a10b6a0193d40c7674b605c1e6f31c680b41959a9944b4513350a3206b937d69eede7c4ee5
7
- data.tar.gz: e91613f7038d1348dbb8d2b0d49d49b6281fb073b7972049910bd747bf920f7ecdec10bcf925c75da23a7cf8566853ce2ca8b118395e322931d8ba3e2f2ab3d8
6
+ metadata.gz: 6fa62b124804aa1b1f729d7d6170ec49cc7f6f9834cde807045de50b5cd658a27b141dd69f81e528109c5e66d25e0f70387bc5fadacb517b16ab39a72787bf36
7
+ data.tar.gz: ff0b99c3290096d3d8c8fc6c734f4a1e3e33b33b3e28dbccdfef552e2d9848bc968630d2ad03763017a7a496e25ea36c1e48eb1044745f6fe39567fa2ace72f2
data/CHANGELOG.md CHANGED
@@ -8,6 +8,21 @@ the engine-gem version range it requires.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.1.6] - 2026-06-25
12
+
13
+ Requires the `sasso` gem **>= 0.2.7** (was `>= 0.2.6`).
14
+
15
+ ### Changed
16
+
17
+ - Bumped the `sasso` engine-gem floor to **>= 0.2.7**, whose library API now
18
+ omits the trailing newline (adopting core sasso 0.6.3, byte-for-byte dart-sass
19
+ parity). The compiler re-adds the conventional trailing newline when writing a
20
+ build artifact, matching dart-sass's CLI for **both** styles:
21
+ - **Expanded** builds are unchanged (`…}\n`), and source-mapped expanded
22
+ builds keep dart's blank line before the `sourceMappingURL` footer.
23
+ - **Compressed** builds now end with a single newline (`…}\n`) too — they
24
+ previously had none, a one-byte deviation from dart-sass's CLI.
25
+
11
26
  ## [0.1.5] - 2026-06-25
12
27
 
13
28
  Requires the `sasso` gem **>= 0.2.6** (was `>= 0.2.3`).
@@ -60,7 +60,10 @@ module Sasso
60
60
  write_source_map(dest, result.source_map)
61
61
  File.write(dest, result.css + source_map_footer(File.basename(dest)))
62
62
  else
63
- File.write(dest, ::Sasso.compile(src, style: @style, load_paths: @load_paths))
63
+ # sasso >= 0.2.7's library API omits the trailing newline; a built CSS
64
+ # artifact conventionally ends with one (and dart-sass's CLI writes it),
65
+ # so append it here.
66
+ File.write(dest, "#{::Sasso.compile(src, style: @style, load_paths: @load_paths)}\n")
64
67
  end
65
68
  dest
66
69
  end
@@ -94,12 +97,13 @@ module Sasso
94
97
  File.write("#{dest}.map", JSON.generate(source_map))
95
98
  end
96
99
 
97
- # The `sourceMappingURL` footer for the built CSS. Matches dart-sass: the
98
- # expanded footer sits on its own line after the trailing newline; the
99
- # compressed footer is appended directly (no leading newline).
100
+ # The `sourceMappingURL` footer for the built CSS. Matches dart-sass: since
101
+ # sasso >= 0.2.7's `result.css` has no trailing newline, the expanded
102
+ # footer supplies the line terminator AND dart's blank separator line
103
+ # (`\n\n`); the compressed footer is appended directly (no leading newline).
100
104
  def source_map_footer(css_basename)
101
105
  comment = "/*# sourceMappingURL=#{css_basename}.map */"
102
- @style == :compressed ? "#{comment}\n" : "\n#{comment}\n"
106
+ @style == :compressed ? "#{comment}\n" : "\n\n#{comment}\n"
103
107
  end
104
108
 
105
109
  # A source URL made relative to the .map's directory (so a DevTools that
@@ -5,6 +5,6 @@ module Sasso
5
5
  # Versioned INDEPENDENTLY of both the `sasso` gem and the `sasso` crate.
6
6
  # The gemspec pins the engine gem with a range (sasso >= 0.1.1, < 1), so a
7
7
  # compiler bump does not force a lockstep release of this integration gem.
8
- VERSION = "0.1.5"
8
+ VERSION = "0.1.6"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sasso-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - momiji-rs
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.6
33
+ version: 0.2.7
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '1'
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.2.6
43
+ version: 0.2.7
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1'