Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aplha, beta and rc bumps #81

Closed
wants to merge 2 commits into from
Closed

Add aplha, beta and rc bumps #81

wants to merge 2 commits into from

Conversation

mckomo
Copy link

@mckomo mckomo commented Oct 5, 2018

Changes:

  • Add alpha, beta, rc bumps compatible with https://semver.org
  • Refactor require statemets to allow test Rake tasks locally

image

Usage:

  • bump alpha produces following versions 1.2.3 => 1.2.3-alpha, 1.2.3-alpha => 1.2.3-alpha.1, 1.2.3-alpha.10 => 1.2.3-alpha.11
  • bump beta produces following versions 1.2.3 => 1.2.3-beta, 1.2.3-alpha => 1.2.3-beta, 1.2.3-beta => 1.2.3-beta.1, 1.2.3-beta.10 => 1.2.3-beta.11
  • bump rc produces following versions 1.2.3 => 1.2.3-rc, 1.2.3-beta => 1.2.3-rc, 1.2.3-rc => 1.2.3-rc.1, 1.2.3-rc.10 => 1.2.3-rc.11
  • bump pre produces following versions 1.2.3.alpha.21 => 1.2.3-beta, 1.2.3.beta.1 => 1.2.3-rc, 1.2.3.rc => 1.2.3-rc

Note: You cannot downgrade prerelease versions (e.g. from beta to alpha).

➜  bin/bump beta
Bump version 0.7.0 to 0.7.0-beta
➜  bin/bump alpha
../bump/lib/bump.rb:226:in `next_prerelease': Cannot bump prerelease version from beta to alpha (RuntimeError)

This PR is addressing #78

@mckomo mckomo mentioned this pull request Oct 5, 2018
@grosser
Copy link
Collaborator

grosser commented Oct 5, 2018

I'm more on the 👎 side of things since:

  • the only alpha bump I'd do is 1.2.3 -> 1.3.0.alpha / 1.2.3 -> 2.0.0.alpha
  • it's not that hard to do them manually
  • very few projects need alpha/beta/rc bumps

@mckomo
Copy link
Author

mckomo commented Oct 10, 2018

I came to the conclusion that you are totally right with 1 point.

@mckomo mckomo closed this Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants