Created
January 14, 2012 07:58
-
-
Save krainboltgreene/1610669 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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