diff options
author | Karen Etheridge <ether@cpan.org> | 2017-12-09 18:43:08 -0800 |
---|---|---|
committer | Karen Etheridge <ether@cpan.org> | 2017-12-09 19:15:00 -0800 |
commit | da086d4821d1152e4fd8b73f336cac319f7dc4c2 (patch) | |
tree | fc43509234287fa9d45ff36303c06f24c201bea4 | |
parent | 437e55167a8070e4723d73d04a40ff2386acc4e0 (diff) | |
download | uri-da086d4821d1152e4fd8b73f336cac319f7dc4c2.tar.gz |
switch version management to [@Git::VersionManager]
This has been tested in a side branch with [FakeRelease].
-rw-r--r-- | dist.ini | 37 |
1 files changed, 13 insertions, 24 deletions
@@ -5,7 +5,7 @@ main_module = lib/URI.pm copyright_holder = Gisle Aas copyright_year = 1998 -[VersionFromMainModule] +; for version management, see the end of this file ; Gather stuff in [Git::GatherDir] @@ -170,12 +170,6 @@ remote_branch = master ;;; post-release actions -[CopyFilesFromRelease] -filename = LICENSE - -[NextRelease] -format = %-9v %{yyyy-MM-dd}d - [ReadmeAnyFromPod / Markdown_Readme] source_filename = lib/URI.pm type = markdown @@ -183,22 +177,17 @@ filename = README.md location = root phase = release -[Git::Commit / release snapshot] -allow_dirty = Changes -allow_dirty = LICENSE -allow_dirty = README.md -commit_msg = %N-%v%t%n%n%c - -[Git::Tag] - -[BumpVersionAfterRelease] -:version = 0.016 -all_matching = 1 - -[Git::Commit / post-release commit] -allow_dirty_match = ^lib/.*\.pm$ -commit_msg = increment $VERSION after %v release - -[Git::Push] +; the distribution version is read from lib/URI.pm's $VERSION. +; at release, all matching versions are bumped. +; To change the release version, update *every* .pm file's +; $VERSION. You can do this easily with this oneliner (e.g. for 1.70 -> 2.00): +; perl -p -i -e's/.VERSION = .\K1.70/2.00/;' `find lib -type f` +; (and don't forget to add $VERSION = eval $VERSION; for underscore releases!) +[@Git::VersionManager] +:version = 0.003 +bump_only_matching_versions = 1 +commit_files_after_release = LICENSE +commit_files_after_release = README.md +release snapshot.commit_msg = %N-%v%t%n%n%c [ConfirmRelease] |