Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Error: in 'block in retrieve': undefined method 'index' for #<Bundler::Definition #42

Description

@bluciam

Running gemsurance produces the error:

gemsurance-0.10.0/lib/gemsurance/gem_info_retriever.rb:122:in block in retrieve': undefined method index' for #<Bundler::Definition:0x000056301356c6a8> (NoMethodError)

The bundler version is at 2.2.29 as specified in the dependency list in https://rubygems.org/gems/gemsurance/versions/0.10.0/dependencies:

 bundler 2.2.29 >= 1.2, < 3.0
 gems 1.2.0 >= 0.8
 git 1.9.1 ~> 1.2

Looking at the file lib/bundler/definition.rb for bundler version 2.2.29, I found no definition of method index. The method is present in older versions of bundler.

Running bundle _2.1.4_ exec gemsurance produced the desired output, the file gemsurance_report.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions