Skip to content

Correctly handle beta and pre gems #12

Description

@joonty

If a gem version is in beta or pre (the final part of the version can be any string, I think), pessimize doesn't currently work correctly. For example, the debugger2 gem has version "1.0.0.beta2", but using the constraint "~> 1.0" doesn't seem to include beta gems.

There are two ways round this:

  1. Don't add constraints to beta/pre gems, i.e. gem "debugger2"
  2. Specify the exact version for beta/pre gems, i.e. gem "debugger2", "1.0.0.beta2"

I'm leaning towards 1, as it's not ideal to lock down a gem version to always be in beta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions