Skip to content

Commit

Permalink
Version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogeon committed Feb 17, 2018
1 parent 0d9ead2 commit 315c602
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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].
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "palette"
version = "0.2.1" #automatically updated
version = "0.3.0" #automatically updated
authors = ["Erik Hedvall <[email protected]>"]
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"]
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ 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

Add the following lines to your `Cargo.toml` file:

```toml
[dependencies]
palette = "0.2"
palette = "0.3"
```

### Optional Features
Expand Down
9 changes: 7 additions & 2 deletions scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ issues=()
git log --pretty="%an<%ae>;%H;%ad;%s" --date=short |
{
while read line; do
if [[ $line =~ Homu\<[email protected]\>\;.* ]]; then
parts="$(echo "$line" | sed 's/.*;\([^;]*\);.*;Auto merge of #\([0-9]*\)*/\1 \2/g')"
if [[ $line =~ Homu\<[email protected]\>\;.* ]] || [[ $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')"
Expand Down
2 changes: 2 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 315c602

Please sign in to comment.