From 6fd05f770f6401012d92223797b88128d7f3a931 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Tue, 24 Nov 2026 15:42:43 -0500 Subject: [PATCH 1/2] fix(rubocop): raise ClassLength limit to 174 #45 added same_text_as_parent? and stripped_text_length after #48 capped the class at 165 lines, failing RuboCop on master. Co-Authored-By: Claude Opus 5.5 --- .rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index aff55a6..d2f7764 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -19,7 +19,7 @@ Metrics/BlockLength: - spec/**/* Metrics/ClassLength: - Max: 165 + Max: 174 Metrics/CyclomaticComplexity: Max: 15 From 46d03312ed600f30de6434c15f100357107f8cf7 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Tue, 24 Nov 2026 15:42:43 -0500 Subject: [PATCH 2/2] chore(release): prep 0.6.0 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 14 ++++++++++++-- Gemfile.lock | 5 ++++- lib/html2text/version.rb | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33c10b4..93bde91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/soundasleep/html2text_ruby/compare/v0.5.0...master) +## [Unreleased](https://github.com/soundasleep/html2text_ruby/compare/v0.6.0...master) + +## [0.6.0](https://github.com/soundasleep/html2text_ruby/compare/v0.5.0...v0.6.0) - 2026-11-24 +### Added +- Enforce 100% line and branch coverage with SimpleCov; `rake` now runs RuboCop as well as the specs ([#47](https://github.com/soundasleep/html2text_ruby/pull/47)) + ### Changed -- Convert documents with many sibling `
`s in linear instead of quadratic time: the stripped text lengths of a nested div and its parent are compared first, so the parent's text is no longer computed for every div (e.g. 625 KB of sibling divs: 13 s → 0.2 s) +- Convert documents with many sibling `
`s in linear instead of quadratic time: the stripped text lengths of a nested div and its parent are compared first, so the parent's text is no longer computed for every div (e.g. 625 KB of sibling divs: 13 s → 0.2 s) ([#45](https://github.com/soundasleep/html2text_ruby/pull/45)) +- Re-enable RuboCop's complexity cops, with limits ratcheted to the current worst case ([#48](https://github.com/soundasleep/html2text_ruby/pull/48)) +- Update development dependencies: bundler 4.1.0, bundler-audit 0.9.3, `actions/checkout` v7, and nokogiri 1.19.5 and json 2.21.2 in the lockfile ([#43](https://github.com/soundasleep/html2text_ruby/pull/43), [#44](https://github.com/soundasleep/html2text_ruby/pull/44), [#46](https://github.com/soundasleep/html2text_ruby/pull/46), [#47](https://github.com/soundasleep/html2text_ruby/pull/47)) + +### Removed +- Unused private helpers `previous_node_name` and `previous_node_is_text?`; subclasses calling them should copy them ([#47](https://github.com/soundasleep/html2text_ruby/pull/47)) ## [0.5.0](https://github.com/soundasleep/html2text_ruby/compare/v0.4.0...v0.5.0) - 2026-07-08 ### Added diff --git a/Gemfile.lock b/Gemfile.lock index 14f51dd..7006989 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - html2text (0.5.0) + html2text (0.6.0) nokogiri (>= 1.0, < 2.0) GEM @@ -22,6 +22,8 @@ GEM racc (~> 1.4) nokogiri (1.19.5-arm64-darwin) racc (~> 1.4) + nokogiri (1.19.5-x64-mingw-ucrt) + racc (~> 1.4) nokogiri (1.19.5-x86_64-linux-gnu) racc (~> 1.4) parallel (2.1.0) @@ -79,6 +81,7 @@ GEM PLATFORMS arm64-darwin ruby + x64-mingw-ucrt x86_64-linux DEPENDENCIES diff --git a/lib/html2text/version.rb b/lib/html2text/version.rb index a087dae..a608b2b 100644 --- a/lib/html2text/version.rb +++ b/lib/html2text/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true class Html2Text - VERSION = '0.5.0' + VERSION = '0.6.0' end