makiri 0.5.0-x86_64-linux → 0.5.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: 64d3fbdbe21dbbfddf413832c97e9f5f32dc020ff0c3f01efb75232fca32085c
4
- data.tar.gz: 37990c3d0d3032aa088240d76edfcfeb4a4f598d87e770aef7a21a19a7de5446
3
+ metadata.gz: ea6ff730f6101691a99227068367191e08111260fa201bce629206f83d30640d
4
+ data.tar.gz: 79fec36f098e05d42a24b719e792b77366e9a5eac089af94fcda8c202716f0f6
5
5
  SHA512:
6
- metadata.gz: 933fcc0d10a4923c0c1f1541845a6a46b60dc8091cbe54fcd8edd85e7d17321decff9d080f294997a2c21608ae948557e94cc971514c37f6c72de751fa9d4b23
7
- data.tar.gz: b3159878da760a16387247bd0e32a6c15e84d85dac066bb334397b27e9ba98429c73144c8ae0a35b513420826aebbc24b5a74b19988857274dfa72afea69b714
6
+ metadata.gz: 0a8e04b05931820dd293e34a0f1235b0c66aa8906af020caf2b88351b46ccd143aa06101d00624147895f246ff115058efb5356e9349f65b3b0ba83b969d49ca
7
+ data.tar.gz: 1ffa1e0a24cd6de4ef3e7c893aaef16569c793be23a57677ef4f17c34e1780b86ec594d03223eb699b77d8b7a0086e615c7cd3cab3fd96cb096dc5f95dfc840c
data/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## [0.5.1] - 2026-06-22
4
4
 
5
- The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ ### Changed
6
+
7
+ * Faster CSS queries that reuse the same selector: compiled selectors are now
8
+ cached and reused across queries instead of being re-parsed each time.
7
9
 
8
10
  ## [0.5.0] - 2026-06-14
9
11
 
@@ -362,7 +364,8 @@ libxml2 / libxslt dependency at any layer**.
362
364
  domxpath, CSS differential vs `Nokogiri::HTML5`). GitHub Actions CI across
363
365
  Ruby 3.2–4.0 × Ubuntu/macOS plus a sanitizer job.
364
366
 
365
- [Unreleased]: https://github.com/takahashim/makiri/compare/v0.5.0...HEAD
367
+ [Unreleased]: https://github.com/takahashim/makiri/compare/v0.5.1...HEAD
368
+ [0.5.1]: https://github.com/takahashim/makiri/compare/v0.5.0...v0.5.1
366
369
  [0.5.0]: https://github.com/takahashim/makiri/compare/v0.4.0...v0.5.0
367
370
  [0.4.0]: https://github.com/takahashim/makiri/compare/v0.3.0...v0.4.0
368
371
  [0.3.0]: https://github.com/takahashim/makiri/compare/v0.2.0...v0.3.0
data/Rakefile CHANGED
@@ -303,6 +303,13 @@ task "bench:xml" => :compile do
303
303
  end
304
304
  end
305
305
 
306
+ desc "Run the CSS selector-query benchmark on a note.com-style SPA page (set BENCH_CARDS)"
307
+ task "bench:css" => :compile do
308
+ Bundler.with_unbundled_env do
309
+ sh "#{FileUtils::RUBY} -Ilib bench/bench_css_query.rb"
310
+ end
311
+ end
312
+
306
313
  namespace :conformance do
307
314
  desc "WHATWG HTML5 parsing conformance: run html5lib-tests through Makiri"
308
315
  task html5: :compile do
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makiri
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - takahashim