Skip to content

Trying to publish without changing version creates undefined method satisfied_by? error #570

@thenickcox

Description

@thenickcox

I tried to publish a version of my gem, but I forgot to change the version in version.rb. It gave me this error, which made sense.

Pushing to rubygems.org...
gem push dronestream-0.1.1.gem
Pushing gem to https://rubygems.org...
Repushing of gem versions is not allowed.
Please use `gem yank` to remove bad gem releases.

So I changed the version from 0.1.1 to 0.2.0. It successfully registered the gem, but when I ran gem update dronestream, I got this:

Updating installed gems
Updating dronestream
ERROR:  While executing gem ... (NoMethodError)
    undefined method `satisfied_by?' for #<Gem::Version "0.2.0">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions