Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created January 14, 2012 07:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/1610669 to your computer and use it in GitHub Desktop.
Save krainboltgreene/1610669 to your computer and use it in GitHub Desktop.
case
when public_api.any?(&:changed?) or public_api.any?(&:removed?)
version.major.succ!
when public_api.any?(&:new?) or private_api.any?(&:new_or_changed?)
version.minor.succ!
when public_api.any?(&:fixed?) or private_api.any?(&:fixed?)
version.patch.succ!
when documentation.any?(&:new_or_changed?) or tests.any?(&:new_or_changed?)
version.patch.succ!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment