Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Metrics/BlockLength:
- spec/**/*

Metrics/ClassLength:
Max: 165
Max: 174

Metrics/CyclomaticComplexity:
Max: 15
Expand Down
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<div>`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 `<div>`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
Expand Down
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
html2text (0.5.0)
html2text (0.6.0)
nokogiri (>= 1.0, < 2.0)

GEM
Expand All @@ -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)
Expand Down Expand Up @@ -79,6 +81,7 @@ GEM
PLATFORMS
arm64-darwin
ruby
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
Expand Down
2 changes: 1 addition & 1 deletion lib/html2text/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class Html2Text
VERSION = '0.5.0'
VERSION = '0.6.0'
end