Skip to content

Conversation

@7F11
Copy link

@7F11 7F11 commented Nov 25, 2025

I know nothing about Ruby. I just guess that the Time object has no more overloaded =~ operator in Ruby 3.3.
This is why I got these error messages:

/var/www/dudle/timestring.rb:28:in `initialize': undefined method `=~' for an instance of Time (NoMethodError)
        from /var/www/dudle/timestring.rb:51:in `new'
        from /var/www/dudle/timestring.rb:51:in `now'
        from /var/www/dudle/timepollhead.rb:413:in `block (2 levels) in edit_column_htmlform'
        from /var/www/dudle/timepollhead.rb:410:in `each'
        from /var/www/dudle/timepollhead.rb:410:in `block in edit_column_htmlform'
        from /var/www/dudle/timepollhead.rb:378:in `each'
        from /var/www/dudle/timepollhead.rb:378:in `edit_column_htmlform'
        from /var/www/dudle/poll.rb:545:in `edit_column_htmlform'
        from /var/www/dudle/ktest/edit_columns.cgi:45:in `<main>'

I provide an experimental patch that seems to work.

7F11 and others added 2 commits May 26, 2025 20:18
…lize': undefined method `=~' for an instance of Time (NoMethodError)" after a Debian trixie upgrade (with Ruby 3.3)
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