hanami-sasso 0.1.1 → 0.1.2

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: 4890dd8fff08afcb9f2384601f4b1e64fa5e1a96fbd95e14313ba2081dcf01d0
4
- data.tar.gz: ca31c01cec51ad7b9de361e630d890afb7732cf677a079a2efd8c6149adee0e9
3
+ metadata.gz: 315106e023562a74e105f47a8dfc7d15d63efb084c8d1fce9c5f3e21e815e660
4
+ data.tar.gz: 57b624b6fd75a7104f119c798f9fb4c3c36bd7232bd0d338e78083d82bc3778f
5
5
  SHA512:
6
- metadata.gz: 233d1c6f08b211d7435e644784d5a09663700db7f91b106125ac83c829e1d946839d2722b752b7d12484d6d3e812359ab64b64d47f592db3673632983f4a7264
7
- data.tar.gz: 45e98bbf18700d74c239c1fe984b7b9827de89638d500f2873657aed52f857309bc3fc2c6ab245f49e7740f8e708d3e073d79298fe5188989561396c971c0bbb
6
+ metadata.gz: fb3890de732902250be1020c2fe15e8f1350e94f8cc76ff92b417cba977298525a6ece36903ca853109e4fbad28c9c5eddc2704447e91502f170a3c4069baac0
7
+ data.tar.gz: 0f5962c1af1f52284fc5cde4c56c170e62728b874b23ed7ab72449052cfdd474319238d3a5ed5838599587291431809de39891101409045b204202e3005c30f0
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.1.2] - 2026-06-25
9
+
10
+ ### Changed
11
+
12
+ - Now requires the `sasso` gem **>= 0.2.7** (was `>= 0.2.3`), whose library API
13
+ omits the trailing newline (adopting core sasso 0.6.3, byte-for-byte dart-sass
14
+ parity). The compiler re-adds the conventional trailing newline when writing a
15
+ build artifact, matching dart-sass's CLI for both styles: expanded builds are
16
+ unchanged (and source-mapped expanded builds keep dart's blank line before the
17
+ `sourceMappingURL` footer), and compressed builds now end with a single
18
+ newline too (previously none).
19
+
8
20
  ## [0.1.1] - 2026-06-15
9
21
 
10
22
  ### Changed
data/hanami-sasso.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  # integrates with Hanami's `assets:precompile` when present but never loads the
33
33
  # framework itself. Targets Hanami 2.1+.
34
34
  spec.add_dependency "rake", ">= 13.0"
35
- spec.add_dependency "sasso", ">= 0.2.3", "< 1"
35
+ spec.add_dependency "sasso", ">= 0.2.7", "< 1"
36
36
 
37
37
  spec.add_development_dependency "bundler"
38
38
  spec.add_development_dependency "minitest", "~> 5.0"
@@ -67,7 +67,9 @@ module HanamiSasso
67
67
  write_source_map(dest, result.source_map)
68
68
  File.write(dest, result.css + source_map_footer(File.basename(dest)))
69
69
  else
70
- File.write(dest, ::Sasso.compile(src, style: @style, load_paths: @load_paths))
70
+ # sasso >= 0.2.7's library API omits the trailing newline; a built CSS
71
+ # artifact conventionally ends with one (and dart-sass's CLI writes it).
72
+ File.write(dest, "#{::Sasso.compile(src, style: @style, load_paths: @load_paths)}\n")
71
73
  end
72
74
  dest
73
75
  end
@@ -100,7 +102,9 @@ module HanamiSasso
100
102
 
101
103
  def source_map_footer(css_basename)
102
104
  comment = "/*# sourceMappingURL=#{css_basename}.map */"
103
- @style == :compressed ? "#{comment}\n" : "\n#{comment}\n"
105
+ # sasso >= 0.2.7's `result.css` has no trailing newline, so the expanded
106
+ # footer supplies the line terminator AND dart's blank separator line.
107
+ @style == :compressed ? "#{comment}\n" : "\n\n#{comment}\n"
104
108
  end
105
109
 
106
110
  def relative_source(url, from_dir)
@@ -3,5 +3,5 @@
3
3
  module HanamiSasso
4
4
  # The plugin version floats independently of the `sasso` compiler gem; the
5
5
  # gemspec pins the compiler with a range.
6
- VERSION = "0.1.1"
6
+ VERSION = "0.1.2"
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-sasso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - momiji-rs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-15 00:00:00.000000000 Z
11
+ date: 2026-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.3
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.3
43
+ version: 0.2.7
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1'