Skip to content

Conversation

@visini
Copy link

@visini visini commented Jan 6, 2026

In Ruby 4, StringScanner#empty? blows up with NoMethodError. This replaces it with StringScanner#eos?.

https://docs.ruby-lang.org/en/master/StringScanner.html#method-i-eos-3F


Additionally, I've removed one line from the gemspec:

[!] There was an error while loading `ruby-msg.gemspec`: undefined method 'has_rdoc=' for an instance of Gem::Specification. Bundler cannot continue.

 #  from /Users/visini/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/bundler/gems/ruby-msg-dccc7c36f863/ruby-msg.gemspec:25
 #  -------------------------------------------
 #  
 >      s.has_rdoc = true
 #      s.extra_rdoc_files = ['README.rdoc', 'ChangeLog']
 #  -------------------------------------------

visini added 2 commits January 6, 2026 11:41
In Ruby 4, StringScanner#empty? blows up with NoMethodError. This
replaces it with StringScanner#eos? which works as expected.

https://docs.ruby-lang.org/en/master/StringScanner.html#method-i-eos-3F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant