diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c2967b..47e493b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] - ReleaseDate +## [0.2.0] - 2022-02-26 + ### Added - Initial release @@ -17,4 +19,5 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Support for updating the manifests in existing bags -[Unreleased]: https://github.com/pwinckles/bagr/compare/v0.1.0...HEAD +[Unreleased]: https://github.com/pwinckles/bagr/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/pwinckles/bagr/compare/v0.1.0...v0.2.0 diff --git a/Cargo.lock b/Cargo.lock index deb35a1..e54fb6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,7 +39,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bagr" -version = "0.2.0-dev" +version = "0.2.0" dependencies = [ "ansi_term", "atty", diff --git a/Cargo.toml b/Cargo.toml index 255e552..a17538a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bagr" -version = "0.2.0-dev" +version = "0.2.0" edition = "2021" authors = ["Peter Winckles "] description = "A CLI for interacting with BagIt bags" diff --git a/release.toml b/release.toml index e9c4c48..cc5979a 100644 --- a/release.toml +++ b/release.toml @@ -1,7 +1,7 @@ pre-release-replacements = [ {file="CHANGELOG.md", search="Unreleased", replace="{{version}}"}, - {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1}, + {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...v{{version}}", exactly=1}, {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"}, {file="CHANGELOG.md", search="", replace="\n\n## [Unreleased] - ReleaseDate", exactly=1}, - {file="CHANGELOG.md", search="", replace="\n[Unreleased]: https://github.com/pwinckles/bagr/compare/{{tag_name}}...HEAD", exactly=1}, + {file="CHANGELOG.md", search="", replace="\n[Unreleased]: https://github.com/pwinckles/bagr/compare/v{{version}}...HEAD", exactly=1}, ] \ No newline at end of file diff --git a/tests/cmd/bag/copy-bag.out/bag-dst/bag-info.txt b/tests/cmd/bag/copy-bag.out/bag-dst/bag-info.txt index bc8d03d..e79205e 100644 --- a/tests/cmd/bag/copy-bag.out/bag-dst/bag-info.txt +++ b/tests/cmd/bag/copy-bag.out/bag-dst/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 14.2 diff --git a/tests/cmd/bag/copy-bag.out/bag-dst/tagmanifest-sha256.txt b/tests/cmd/bag/copy-bag.out/bag-dst/tagmanifest-sha256.txt index b1948c4..5ed8cb8 100644 --- a/tests/cmd/bag/copy-bag.out/bag-dst/tagmanifest-sha256.txt +++ b/tests/cmd/bag/copy-bag.out/bag-dst/tagmanifest-sha256.txt @@ -1,3 +1,3 @@ -b185d8df154396e06b7a3ad1b7541e69b85b31cd88ac3c255aca26090e34e295 bag-info.txt +2c23c9e1dec20f1e98f9945a338285a5a2b50beb12e1c26bd36c97061759ad07 bag-info.txt 1712ecfb074bf29c4188ad3421032509159a09739fd604f8fe57038b4ddefcc9 bagit.txt 71dd116c77785566afd33650737cc84e950e4b976e63ef31d4975a3e4a596963 manifest-sha256.txt diff --git a/tests/cmd/bag/default.out/bag-info.txt b/tests/cmd/bag/default.out/bag-info.txt index bc8d03d..e79205e 100644 --- a/tests/cmd/bag/default.out/bag-info.txt +++ b/tests/cmd/bag/default.out/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 14.2 diff --git a/tests/cmd/bag/default.out/tagmanifest-sha512.txt b/tests/cmd/bag/default.out/tagmanifest-sha512.txt index 8b74473..8b51ba5 100644 --- a/tests/cmd/bag/default.out/tagmanifest-sha512.txt +++ b/tests/cmd/bag/default.out/tagmanifest-sha512.txt @@ -1,3 +1,3 @@ -6401266e4ca549f31c4a89b200ecf2153d011513caffed41752b2550366d1f7b244be9494a72e146063e8deab81c52dfd03a497abd01521bf47a6a165809c689 bag-info.txt +3cd6b4b7aab393073b90fa43964455f08c8739fa68d10eb156828c85843c0099ff0121debd42af6dcd39a687ee48a4d3ae20643194bd01d7ef9b4e52b384d78f bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 49ed4e071201e8a98e4a01497496916259fffe296e85a6a0d422934c5021a3ff2482feb77d0a4d948a4ddd5204c7f83c4c7b6416c9a90d649185388e2430f8fb manifest-sha512.txt diff --git a/tests/cmd/bag/dst-child-of-src.out/dst/bag-info.txt b/tests/cmd/bag/dst-child-of-src.out/dst/bag-info.txt index bc8d03d..e79205e 100644 --- a/tests/cmd/bag/dst-child-of-src.out/dst/bag-info.txt +++ b/tests/cmd/bag/dst-child-of-src.out/dst/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 14.2 diff --git a/tests/cmd/bag/dst-child-of-src.out/dst/tagmanifest-sha256.txt b/tests/cmd/bag/dst-child-of-src.out/dst/tagmanifest-sha256.txt index b1948c4..5ed8cb8 100644 --- a/tests/cmd/bag/dst-child-of-src.out/dst/tagmanifest-sha256.txt +++ b/tests/cmd/bag/dst-child-of-src.out/dst/tagmanifest-sha256.txt @@ -1,3 +1,3 @@ -b185d8df154396e06b7a3ad1b7541e69b85b31cd88ac3c255aca26090e34e295 bag-info.txt +2c23c9e1dec20f1e98f9945a338285a5a2b50beb12e1c26bd36c97061759ad07 bag-info.txt 1712ecfb074bf29c4188ad3421032509159a09739fd604f8fe57038b4ddefcc9 bagit.txt 71dd116c77785566afd33650737cc84e950e4b976e63ef31d4975a3e4a596963 manifest-sha256.txt diff --git a/tests/cmd/bag/exclude-hidden.out/bag-info.txt b/tests/cmd/bag/exclude-hidden.out/bag-info.txt index ebb965d..041c282 100644 --- a/tests/cmd/bag/exclude-hidden.out/bag-info.txt +++ b/tests/cmd/bag/exclude-hidden.out/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 8.3 diff --git a/tests/cmd/bag/exclude-hidden.out/tagmanifest-sha512.txt b/tests/cmd/bag/exclude-hidden.out/tagmanifest-sha512.txt index 5e85b63..5b432b1 100644 --- a/tests/cmd/bag/exclude-hidden.out/tagmanifest-sha512.txt +++ b/tests/cmd/bag/exclude-hidden.out/tagmanifest-sha512.txt @@ -1,3 +1,3 @@ -efaa3d4799f1b15158bbabd75cf61cffb373fe5d90b7c23c0b8dddf4faf73fa769d6b5524adeb0041cfc7ac8e37602891f39a3f47d5f91e444d8339fca340863 bag-info.txt +8bf4e430b5fcfada9bb9b817b93a9791d4c4e49394ff9e94b607668832028233e2d08536cdebd4dc1c5859bd171ffd56806acbb41fa989a3772eb4fddecec146 bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 5a28b2a76ab419ade5480aebc00353710390059236b66c9d990f05749499bc182841b2dc6a2202c26905af9fe2842b197d49a3773dd5c658257f38e8e15a60db manifest-sha512.txt diff --git a/tests/cmd/bag/include-hidden.out/bag-info.txt b/tests/cmd/bag/include-hidden.out/bag-info.txt index 092c4db..18eb2e5 100644 --- a/tests/cmd/bag/include-hidden.out/bag-info.txt +++ b/tests/cmd/bag/include-hidden.out/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 20.7 diff --git a/tests/cmd/bag/include-hidden.out/tagmanifest-sha512.txt b/tests/cmd/bag/include-hidden.out/tagmanifest-sha512.txt index d8c7872..0f4317b 100644 --- a/tests/cmd/bag/include-hidden.out/tagmanifest-sha512.txt +++ b/tests/cmd/bag/include-hidden.out/tagmanifest-sha512.txt @@ -1,3 +1,3 @@ -1be1e5577fd7126eaa15c61d990c7d2df7d40c4cf9a0532f7b04f9567c601d56f5a8f39b3c5952a89154cba3d2abb55bd12121eca87c32ae135589b0e58c7407 bag-info.txt +33b6a476ad222d4b4387b520c4e70ddd6b8c8cef627968964a709cbef2c0595a4a37b4812c18eeb25ee5de00a0e40f54d1488ad281ff20142484cb48e23ff1b6 bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 93752716206a4b67df21d804a781d0a763f971dd6265f12a921595bcccd7dd8a900a6d3dc4b10913fd33dda70478405bb76bf6ccb910347a14c1436476c10c5a manifest-sha512.txt diff --git a/tests/cmd/bag/manifest-encoding.out/bag-info.txt b/tests/cmd/bag/manifest-encoding.out/bag-info.txt index 4d0071c..c193c01 100644 --- a/tests/cmd/bag/manifest-encoding.out/bag-info.txt +++ b/tests/cmd/bag/manifest-encoding.out/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 51.4 diff --git a/tests/cmd/bag/manifest-encoding.out/tagmanifest-sha256.txt b/tests/cmd/bag/manifest-encoding.out/tagmanifest-sha256.txt index 4506c64..9f8fb88 100644 --- a/tests/cmd/bag/manifest-encoding.out/tagmanifest-sha256.txt +++ b/tests/cmd/bag/manifest-encoding.out/tagmanifest-sha256.txt @@ -1,3 +1,3 @@ -8062954a58df1c52b9a03eadaace16a4313352747b2fbef0c48892ae05839cd4 bag-info.txt +d024cd217b2f9e47e3410bc3e80911a59b5ab41b0264b13bcee1d681bd44c54b bag-info.txt 1712ecfb074bf29c4188ad3421032509159a09739fd604f8fe57038b4ddefcc9 bagit.txt 67ece71458557c4350bb1499d0ac660220b7f8cd8ecdd1daa6c1bd3ddc037e79 manifest-sha256.txt diff --git a/tests/cmd/bag/multiple-digests.out/bag-info.txt b/tests/cmd/bag/multiple-digests.out/bag-info.txt index bc8d03d..e79205e 100644 --- a/tests/cmd/bag/multiple-digests.out/bag-info.txt +++ b/tests/cmd/bag/multiple-digests.out/bag-info.txt @@ -1,3 +1,3 @@ Bagging-Date: 2022-02-16 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 14.2 diff --git a/tests/cmd/bag/multiple-digests.out/tagmanifest-blake2b256.txt b/tests/cmd/bag/multiple-digests.out/tagmanifest-blake2b256.txt index ca6fd8a..399051a 100644 --- a/tests/cmd/bag/multiple-digests.out/tagmanifest-blake2b256.txt +++ b/tests/cmd/bag/multiple-digests.out/tagmanifest-blake2b256.txt @@ -1,4 +1,4 @@ -c1bd6854ece4818b209c2edfed5b97585d7fab40e478e1db7094f77b7a9d23e1 bag-info.txt +e9b4835215d3fbc81e669f956e7f3dbe734f72755d6566629795745c712cf800 bag-info.txt 595719c47cb5ac284af5207475a6125f752c01473ad1d114bee4a58a482ff0fc bagit.txt c047435b8900f9462568b82a1e4bec6b6fdd4e7098a8f6d6b042a7817bd977c5 manifest-blake2b256.txt 09ba37a86a4f0c4bec5d82bc063ad2c806e48518adfee6d86190c563abec9429 manifest-md5.txt diff --git a/tests/cmd/bag/multiple-digests.out/tagmanifest-md5.txt b/tests/cmd/bag/multiple-digests.out/tagmanifest-md5.txt index eaaa7c1..4e8204c 100644 --- a/tests/cmd/bag/multiple-digests.out/tagmanifest-md5.txt +++ b/tests/cmd/bag/multiple-digests.out/tagmanifest-md5.txt @@ -1,4 +1,4 @@ -461631c9a862649dd7c153535e518281 bag-info.txt +7bd235bcb64377074e2d3a21a0ff1eab bag-info.txt eaa2c609ff6371712f623f5531945b44 bagit.txt d120fba31c8cf9a3bbb963c52f7fe678 manifest-blake2b256.txt 3f380469d3061ae331051622e48d9910 manifest-md5.txt diff --git a/tests/cmd/rebag/basic-rebag.out/bag-info.txt b/tests/cmd/rebag/basic-rebag.out/bag-info.txt index ada1f15..1365242 100644 --- a/tests/cmd/rebag/basic-rebag.out/bag-info.txt +++ b/tests/cmd/rebag/basic-rebag.out/bag-info.txt @@ -1,4 +1,4 @@ Custom-Tag: some value Bagging-Date: 2022-02-17 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 32.3 diff --git a/tests/cmd/rebag/basic-rebag.out/tagmanifest-sha512.txt b/tests/cmd/rebag/basic-rebag.out/tagmanifest-sha512.txt index a0cd0aa..f02dd22 100644 --- a/tests/cmd/rebag/basic-rebag.out/tagmanifest-sha512.txt +++ b/tests/cmd/rebag/basic-rebag.out/tagmanifest-sha512.txt @@ -1,3 +1,3 @@ -a95056684e84ae8905cb1b49f3e8bf759a51f37ef7f927b5ae14b8fd64fa2d95c043b8fc02fda2ca199e35b9678c4eed030f7bf0b41a8983f26ccc906ab655a4 bag-info.txt +1c01b06f65a859e5a642bd008792e500d0368577b0731b1f3e5836b7e172f078e165cb63466d2dad291607f13f3bb1f40d524baa13bede60b369a4641c433be1 bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 222233b1fae28d5b4ec8affc4603888583a78e4c1efeda057837acdb2c4f1660197443859dd217fcea89f26088abc6b8da9ea99f518abce30a7b898750b069af manifest-sha512.txt diff --git a/tests/cmd/rebag/new-tag-files.out/bag-info.txt b/tests/cmd/rebag/new-tag-files.out/bag-info.txt index ada1f15..1365242 100644 --- a/tests/cmd/rebag/new-tag-files.out/bag-info.txt +++ b/tests/cmd/rebag/new-tag-files.out/bag-info.txt @@ -1,4 +1,4 @@ Custom-Tag: some value Bagging-Date: 2022-02-17 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 Payload-Oxum: 32.3 diff --git a/tests/cmd/rebag/new-tag-files.out/tagmanifest-sha512.txt b/tests/cmd/rebag/new-tag-files.out/tagmanifest-sha512.txt index 92fe84e..0459ddf 100644 --- a/tests/cmd/rebag/new-tag-files.out/tagmanifest-sha512.txt +++ b/tests/cmd/rebag/new-tag-files.out/tagmanifest-sha512.txt @@ -1,4 +1,4 @@ -a95056684e84ae8905cb1b49f3e8bf759a51f37ef7f927b5ae14b8fd64fa2d95c043b8fc02fda2ca199e35b9678c4eed030f7bf0b41a8983f26ccc906ab655a4 bag-info.txt +1c01b06f65a859e5a642bd008792e500d0368577b0731b1f3e5836b7e172f078e165cb63466d2dad291607f13f3bb1f40d524baa13bede60b369a4641c433be1 bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 5e5327eaa39e894d04731ca08a1f8f938d09bae2e19d13293aa52b1030dba982131d0e4d7900ee93fc44a289ea09b06772b78547f92dfe5b4d435f3592479968 custom-tags.txt 222233b1fae28d5b4ec8affc4603888583a78e4c1efeda057837acdb2c4f1660197443859dd217fcea89f26088abc6b8da9ea99f518abce30a7b898750b069af manifest-sha512.txt diff --git a/tests/cmd/rebag/only-tag-changes.out/bag-info.txt b/tests/cmd/rebag/only-tag-changes.out/bag-info.txt index 77d41c6..30129c7 100644 --- a/tests/cmd/rebag/only-tag-changes.out/bag-info.txt +++ b/tests/cmd/rebag/only-tag-changes.out/bag-info.txt @@ -2,4 +2,4 @@ Payload-Oxum: 14.2 New-Tag: here Another-Tag: there Bagging-Date: 2022-02-17 -Bag-Software-Agent: bagr v0.2.0-dev +Bag-Software-Agent: bagr v0.2.0 diff --git a/tests/cmd/rebag/only-tag-changes.out/tagmanifest-sha512.txt b/tests/cmd/rebag/only-tag-changes.out/tagmanifest-sha512.txt index d02332d..f5eb4f6 100644 --- a/tests/cmd/rebag/only-tag-changes.out/tagmanifest-sha512.txt +++ b/tests/cmd/rebag/only-tag-changes.out/tagmanifest-sha512.txt @@ -1,3 +1,3 @@ -1e7f6c3bccd658568f90e151cd2564b37f726214d9c05fabe0e23f7e8fa4c37561c696d3f8a556a4c0f0823209c66031072def83c9bfcfe0eb727d3adf6a1c87 bag-info.txt +d4b99ba0ec34be2bb35239f66eaec9e151693825e6c6ee5247f2a621ef1b4de974a650076e343c335694e539f3cf0650288a81e90d76b6230256561ae740a906 bag-info.txt 1d73ae108d4109b61f56698a5e19ee1f8947bdf8940bbce6adbe5e0940c2363caace6a547b4f1b3ec6a4fd2b7fa845e9cb9d28823bc72c59971718bb26f2fbd8 bagit.txt 49ed4e071201e8a98e4a01497496916259fffe296e85a6a0d422934c5021a3ff2482feb77d0a4d948a4ddd5204c7f83c4c7b6416c9a90d649185388e2430f8fb manifest-sha512.txt