From 315c60206c2094c97acf8ed7278177741cd0e389 Mon Sep 17 00:00:00 2001 From: Erik Hedvall Date: Sat, 17 Feb 2018 17:02:40 +0100 Subject: [PATCH] Version 0.3.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ Cargo.toml | 6 +++--- README.md | 8 ++++++-- scripts/changelog.sh | 9 +++++++-- version.sh | 2 ++ 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9686473d6..5f8d65f71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## Version 0.3.0 - 2018-02-17 + + * [#78][78]: Upgrade dependencies. + * [#60][60]: Generalize the RGB types over RGB standards. Closes [#66][66], [#31][31], [#58][58]. + * [#76][76]: Change dependency `num` to `num_traits` to shrink dependency tree. + * [#63][63]: Add rebeccapurple. + * [#61][61]: Restore the proper scale of Lab and Lch. Closes [#49][49]. + * [#56][56]: Make color spaces white point aware. Closes [#14][14]. + ## Version 0.2.1 - 2016-02-23 * [#39][39]: Implement color blending. Closes [#3][3]. @@ -31,6 +40,12 @@ ## Version 0.1.0 - 2016-01-12 +[78]: https://github.com/Ogeon/palette/pull/78 +[60]: https://github.com/Ogeon/palette/pull/60 +[76]: https://github.com/Ogeon/palette/pull/76 +[63]: https://github.com/Ogeon/palette/pull/63 +[61]: https://github.com/Ogeon/palette/pull/61 +[56]: https://github.com/Ogeon/palette/pull/56 [39]: https://github.com/Ogeon/palette/pull/39 [54]: https://github.com/Ogeon/palette/pull/54 [52]: https://github.com/Ogeon/palette/pull/52 @@ -51,6 +66,11 @@ [18]: https://github.com/Ogeon/palette/pull/18 [12]: https://github.com/Ogeon/palette/pull/12 [9]: https://github.com/Ogeon/palette/pull/9 +[66]: https://github.com/Ogeon/palette/issues/66 +[31]: https://github.com/Ogeon/palette/issues/31 +[58]: https://github.com/Ogeon/palette/issues/58 +[49]: https://github.com/Ogeon/palette/issues/49 +[14]: https://github.com/Ogeon/palette/issues/14 [3]: https://github.com/Ogeon/palette/issues/3 [32]: https://github.com/Ogeon/palette/issues/32 [44]: https://github.com/Ogeon/palette/issues/44 diff --git a/Cargo.toml b/Cargo.toml index 8f4affe4f..51456fada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "palette" -version = "0.2.1" #automatically updated +version = "0.3.0" #automatically updated authors = ["Erik Hedvall "] -exclude = ["scripts/*", "examples/*", "tests/*", "res/*", ".travis.yml", ".gitignore", "CHANGELOG.md", "version.sh"] +exclude = ["scripts/*", "examples/*", "tests/*", "res/*", ".travis.yml", ".gitignore", "CHANGELOG.md", "CONTRIBUTING.md", "version.sh"] description = "Makes linear color calculations and conversion easy and accessible for anyone." -documentation = "https://ogeon.github.io/docs/palette/master/palette/index.html" +documentation = "https://docs.rs/palette/0.3.0/palette/" repository = "https://github.com/Ogeon/palette" readme = "README.md" keywords = ["color", "colour", "space", "linear"] diff --git a/README.md b/README.md index be3f2cf82..e6e709760 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,11 @@ accessible for anyone. It provides both precision tools that lets you work in exactly the color space you want to, as well as a general color type that abstracts away some of the technical details. -[Online documentation](https://ogeon.github.io/docs/palette/master/palette/index.html). +## Online Documentation + +[Released](https://docs.rs/palette/0.3.0/palette/) + +[Master branch](https://ogeon.github.io/docs/palette/master/palette/index.html). ## Cargo.toml Entries @@ -16,7 +20,7 @@ Add the following lines to your `Cargo.toml` file: ```toml [dependencies] -palette = "0.2" +palette = "0.3" ``` ### Optional Features diff --git a/scripts/changelog.sh b/scripts/changelog.sh index b93dd0a48..b5303c1c8 100644 --- a/scripts/changelog.sh +++ b/scripts/changelog.sh @@ -10,10 +10,15 @@ issues=() git log --pretty="%an<%ae>;%H;%ad;%s" --date=short | { while read line; do - if [[ $line =~ Homu\\;.* ]]; then - parts="$(echo "$line" | sed 's/.*;\([^;]*\);.*;Auto merge of #\([0-9]*\)*/\1 \2/g')" + if [[ $line =~ Homu\\;.* ]] || [[ $line =~ ^bors\[bot\].* ]]; then + parts="$(echo "$line" | sed 's/.*;\([^;]*\);.*;.*#\([0-9]*\)*/\1 \2/g')" parts=($parts) description="$(git log -1 --pretty=format:%b ${parts[0]})" + + if [[ $line =~ ^bors\[bot\].* ]]; then + description="$(echo "$description" | sed 's/[0-9]*: \(\[.*\]\s*\)\?\(.*\) r=.* a=.*/\2/g')" + fi + header="$(echo "$description" | head -n 1)" fixes="$(echo "$description" | grep -iEo "(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #[0-9]+" | sed 's/.* #\([0-9]*\)/\1/g')" diff --git a/version.sh b/version.sh index 15dab6844..4b5ec598d 100644 --- a/version.sh +++ b/version.sh @@ -12,6 +12,8 @@ new_short_version="$(echo "$1" | sed 's/\([^.]\+\.[^.]\+\)\..*/\1/g')" echo "updating from $current_version to $1" sed -i 's/version = "'$current_version'" #automatically updated/version = "'$1'" #automatically updated/' Cargo.toml +sed -i 's/documentation\s*=\s*"https:\/\/docs.rs\/palette\/'$current_version'\/palette\/"/documentation = "https:\/\/docs.rs\/palette\/'$1'\/palette\/"/' Cargo.toml +sed -i 's/\[Released\](https:\/\/docs.rs\/palette\/'$current_version'\/palette\/)/[Released](https:\/\/docs.rs\/palette\/'$1'\/palette\/)/' README.md sed -i 's/palette = "'$current_short_version'"/palette = "'$new_short_version'"/' README.md bash scripts/changelog.sh