Skip to content

Wrong gem version installed → File.exists? undefined #15

@roolo

Description

@roolo

When I run rvm gemset empty I get

ERROR:  While executing gem ... (NoMethodError)
    undefined method 'exists?' for class File

      File.exists?( File.join( gem_install_dir, 'gems', spec.full_name ) )
          ^^^^^^^^
Did you mean?  exist?

I see the command is installing gem-empty-1.1.2, which doesn't have the exist? yet. In current version of gem-empty it
seems to be fixed. Seems like versions specification mistake maybe? 🤷

Not sure if it is in RVM or here, so starting here.

Versions

Ruby

 $ ruby --version
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]

RubyGems

 $ gem --version
3.6.2

RVM

 $ rvm --version
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions