From fb83f04fb2a54a688dac73feab4d8aa9f94b3f0b Mon Sep 17 00:00:00 2001 From: Alexey Karapetov Date: Fri, 16 Nov 2018 18:46:54 -0800 Subject: [PATCH 1/2] Add example --- CHANGELOG.md | 8 +++++++- example/pubspec_version.md | 9 +++++++++ lib/pubspec_version.dart | 2 +- pubspec.yaml | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 example/pubspec_version.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 307977e..74595b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.1] - 2018-11-16 +### Changed +- Minor documentation changes. + ## [0.2.0] - 2018-11-16 ### Breaking change - This is now a standalone cli app. @@ -22,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial version -[Unreleased]: https://github.com/f3ath/pubspec-version/compare/0.1.0...HEAD +[Unreleased]: https://github.com/f3ath/pubspec-version/compare/0.2.1...HEAD +[0.2.1]: https://github.com/f3ath/pubspec-version/compare/0.2.0...0.2.1 +[0.2.0]: https://github.com/f3ath/pubspec-version/compare/0.1.0...0.2.0 [0.1.0]: https://github.com/f3ath/pubspec-version/compare/0.0.2...0.1.0 [0.0.2]: https://github.com/f3ath/pubspec-version/compare/0.0.1...0.0.2 diff --git a/example/pubspec_version.md b/example/pubspec_version.md new file mode 100644 index 0000000..052917b --- /dev/null +++ b/example/pubspec_version.md @@ -0,0 +1,9 @@ +#### Examples +Before | Command | After +--- | --- | --- +1.2.3 | `pubver bump breaking` | 2.0.0 +0.2.1 | `pubver bump breaking` | 0.3.0 +0.2.1 | `pubver bump major` | 1.0.0 +0.2.1 | `pubver bump minor` | 0.3.0 +0.2.1 | `pubver bump patch` | 0.2.1 +0.2.1 | `pubver set 5.4.3-dev` | 5.4.3-dev \ No newline at end of file diff --git a/lib/pubspec_version.dart b/lib/pubspec_version.dart index a73e028..966834c 100644 --- a/lib/pubspec_version.dart +++ b/lib/pubspec_version.dart @@ -74,7 +74,7 @@ class BumpVersion extends Command { class SetVersion extends UpdateVersion { final name = 'set'; - final description = 'Sets the version.'; + final description = 'Sets the package version.'; SetVersion(Console c) : super(c); diff --git a/pubspec.yaml b/pubspec.yaml index 661055b..0b59be6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ author: "Alexey Karapetov " -description: 'A CLI tool to set/bump the package version in pubspec.yaml. Think of "npm version" for Dart.' +description: "A CLI tool to set/bump the package version in pubspec.yaml. Think of \"npm version\" for Dart." homepage: "https://github.com/f3ath/pubspec-version" name: "pubspec_version" -version: "0.2.0" +version: "0.2.1" dependencies: args: "^1.5.0" pub_semver: "^1.4.2" From 60e9796b483ff279d748060c1a9c8d5360139eda Mon Sep 17 00:00:00 2001 From: Alexey Karapetov Date: Fri, 16 Nov 2018 19:09:55 -0800 Subject: [PATCH 2/2] Rename example --- CHANGELOG.md | 7 ++++++- example/{pubspec_version.md => readme.md} | 0 pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) rename example/{pubspec_version.md => readme.md} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74595b7..aa53a7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.2] - 2018-11-16 +### Changed +- Minor documentation changes. + ## [0.2.1] - 2018-11-16 ### Changed - Minor documentation changes. @@ -26,7 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial version -[Unreleased]: https://github.com/f3ath/pubspec-version/compare/0.2.1...HEAD +[Unreleased]: https://github.com/f3ath/pubspec-version/compare/0.2.2...HEAD +[0.2.2]: https://github.com/f3ath/pubspec-version/compare/0.2.1...0.2.2 [0.2.1]: https://github.com/f3ath/pubspec-version/compare/0.2.0...0.2.1 [0.2.0]: https://github.com/f3ath/pubspec-version/compare/0.1.0...0.2.0 [0.1.0]: https://github.com/f3ath/pubspec-version/compare/0.0.2...0.1.0 diff --git a/example/pubspec_version.md b/example/readme.md similarity index 100% rename from example/pubspec_version.md rename to example/readme.md diff --git a/pubspec.yaml b/pubspec.yaml index 0b59be6..fdce500 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: "Alexey Karapetov " description: "A CLI tool to set/bump the package version in pubspec.yaml. Think of \"npm version\" for Dart." homepage: "https://github.com/f3ath/pubspec-version" name: "pubspec_version" -version: "0.2.1" +version: "0.2.2" dependencies: args: "^1.5.0" pub_semver: "^1.4.2"