Repository navigation
Remove obsolete constants - #216
Merged
Merged
Conversation
eregon
approved these changes
Aug 7, 2026
eregon
left a comment
Member
There was a problem hiding this comment.
Nice cleanup!
IIRC there might be a test or spec checking that, but regardless that test/spec should be removed.
matzbot
pushed a commit
to ruby/ruby
that referenced
this pull request
Aug 12, 2026
(ruby/strscan#216) Undocumented `::ScanError` and `::Id`. `StringScanner::ScanError` should be used instead of the former, and the latter is completely useless now. ruby/strscan@63ee0ac310
rkh
pushed a commit
to sinatra/mustermann
that referenced
this pull request
Oct 7, 2026
strscan removed the deprecated top-level ScanError constant (ruby/strscan#216), so Mustermann::StringScanner fails to load on Ruby head. Subclass StringScanner::Error, which ScanError was an alias for, and require strscan instead of relying on another library loading it.
tenderlove
added a commit
to tenderlove/strscan
that referenced
this pull request
Nov 19, 2026
* master: (32 commits) [DOC] Inline UTF-8 docs into C code (ruby#224) Use rb_len_t for String lengths and positions (ruby#222) Reset the number of registers after string pattern match (ruby#221) Fix match registers when position is larger than INT_MAX (ruby#220) Don't match from the middle of a character (ruby#219) Add ext/strscan/depend (ruby#218) Fix matched_size when the stored string is shrunk (ruby#217) Use benchmark_driver Remove obsolete constants (ruby#216) Fix `charpos` when the stored string is shrunk Handle shrunk captures on TruffleRuby Return nil for empty integer captures Constrain rdoc and rbs on JRuby Add missing shrunk check in integer_at (ruby#212) Declare TypedData with RUBY_TYPED_THREAD_SAFE_FREE (ruby#211) Bump actions/checkout from 6 to 7 (ruby#210) Bump rubygems/configure-rubygems-credentials from 2.0.0 to 2.1.0 (ruby#209) [Feature #21943] Add `StringScanner#integer_at` (ruby#205) [DOC] Correct `StringScanner#named_captures` (ruby#208) Fix call-seq return values (ruby#207) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Undocumented
::ScanErrorand::Id.StringScanner::ScanErrorshould be used instead of the former, and the latter is completely useless now.