Skip to content

Running into undefined method 'parse' for class CGI on Ruby 4.0.1 #1680

Description

@kushagra-03

Thanks for the great work!
Trying to integrate devise_toke_auth with a rails 8 app, ran into this undefined method 'parse' for class CGI on Ruby 4.0.1.

Another issue after I got the above to work:
no implicit conversion of Regexp into String

class Wildcat
    def self.parse_to_regex(str)
      escaped = Regexp.escape(str).gsub('\*','.*?')
      Regexp.new("^#{escaped}$", Regexp::IGNORECASE)
    end

Help would be appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions