Sitelet https://github.com/postmodern/chruby/issues/445
Skip to content

chruby 2.1 has surprise match #445

Description

@lloeki

Spot the mistake:

$ chruby
   ruby-1.9.3-p551
   ruby-2.0.0-p648
   ruby-2.1.10
   ruby-2.2.10
   ruby-2.3.8
   ruby-2.4.10
   ruby-2.5.8
   ruby-2.6.6
   ruby-2.7.1
$ chruby 2.1
$ chruby
   ruby-1.9.3-p551
   ruby-2.0.0-p648
   ruby-2.1.10
 * ruby-2.2.10
   ruby-2.3.8
   ruby-2.4.10
   ruby-2.5.8
   ruby-2.6.6
   ruby-2.7.1

The match is fairly naive, so to discriminate, one has to write either 2.1. or ruby-2.1 (both being incompatible with rbenv, which is sadly what may end up in .ruby-version)

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