Skip to content

bundler trait infinite loop on windows #555

@dub357

Description

@dub357

If warbler cannot find the bundler.gemspec (a problem when bundler is installed as a 'default' gem via rubygems and likely a separate issue), then the search through the parent directory tree results in an infinite loop on Windows because the check (which uses a regular expression) only ends the loop if the path is either "." or "/". Neither of these represents the root path on Windows.

if full_gem_path.to_s =~ /^[\.\/]$/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions