Please release 3.4.5: master has been versioned 3.4.5 since 2025-09-10 while rubygems still has 3.4.4
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with lib/rexml/rexml.rb to confirm the 3.4.5 version and NEWS.md to review the release notes through 3.4.4. Then check the project’s release process and the changes since the 3.4.4 tag. Done means preparing the 3.4.5 release, updating NEWS.md, and publishing the gem; the request also raises whether security advisories are appropriate for two fixes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Request
Could you please cut a new gem release? master has been versioned
3.4.5 since 2025-09-10 (commit 39e7e28f, right after the 3.4.4 tag), but
the latest gem on rubygems.org is still 3.4.4 (2025-09-10). In the
meantime ~60 PRs have been merged, including several robustness fixes and
large performance wins. Ruby 4.0.10 (and current 3.4.x) still bundle 3.4.4,
so none of these reach users, and gem update rexml cannot help either.
Selected unreleased changes
Robustness / resource exhaustion:
- #312 — fix infinite entity expansion by detecting circular references
- #358 — avoid stack exhaustion in
REXML::Formatters::Default#write_element - #370 — stop substituting entities with an empty value
- #372 — reject invalid character references in entity expansion
- #344 — make the library Ractor-compatible
Performance:
- #311 —
REXML::Document#add/#add_elementno longer O(n²) - #313 —
REXML::Parent#index - #310, #315 —
XPathParser#step - #330, #356, #359 — sorting / document order of nodesets
- #333 — namespace cache strategy
- #341 —
preceding-sibling,following-sibling,following,
descendantaxes - #298, #299, #300, #302, #303 — SAX2 parser and
parse_idcleanups
XPath / parsing correctness:
- #317, #318, #322, #328 — parenthesized XPath expressions
- #320 — nodesets always in document order
- #324 —
normalize-space() - #337 —
string-length()without an argument - #339 — positional predicates using
last() - #342 — XPath variable handling
- #343 — XPath functions related to names
- #369 — allowlist instead of denylist for available functions
- #366 — reject underscored function names
- #373 —
lang()must not match a non-sublanguage prefix - #374 — return Infinity/NaN instead of raising
- #371 — do not mutate text nodes while pretty printing
- #377, #378 — accept processing instructions in the internal DTD subset and
non-ASCII names in DOCTYPE / PIs / DTD declarations
(The list is from git log v3.4.4..master; I can be more exhaustive if useful.)
Why it matters — Document#add example
Parser#parse builds the document via Document#add, which rescans the
children list on every insertion. Measured with Ruby 4.0.10's bundled rexml
3.4.4 vs. master (benchmark parses <root><item/>…</root> with n elements):
| n elements | 3.4.4 | master (#311) |
|---|---|---|
| 2 000 | 134 ms | 22 ms |
| 4 000 | 523 ms | 43 ms |
| 8 000 | 2.32 s | 171 ms |
| 16 000 | 13.1 s | 161 ms |
That is a user-visible O(n²) → O(n) improvement for any large XML document,
plus the circular-entity and stack-exhaustion fixes close straightforward DoS
vectors on untrusted input.
Suggestion
- bump to 3.4.5 (already in
lib/rexml/rexml.rb), or pick a version you
prefer if the XPath behaviour changes warrant a minor bump; - add a
3.4.5section toNEWS.md(it currently stops at 3.4.4); - tag and push the gem, so it can be picked up by Ruby's bundled gems and by
gem update.
If you consider #312 / #358 security-relevant, a GitHub security advisory
would also let distros track them properly.
- Ngôn ngữ chính
- Ruby
- Star
- 182
- Fork
- 108
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ruby/rexml
-
XPath: mod uses floored modulo instead of truncating remainderCó thể đã có người làm @sourya2704 đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
XPath: and/or/div/mod right after a predicate raise ParseExceptionCó thể đã có người làm @FFspiky đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
open-feature/ruby-sdk-contrib#340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zold-io/wts.zold.io#651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
erkamyaman/rust-anything#788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
TheOdinProject/curriculum#31579 ·
Maintainer thường phản hồi trong vòng 1 ngày