Skip to content

Commit 7ad20ed

Browse files
committed
Merge pull request #41 from HeroicKatora/release-0.4.4
Release 0.4.4
2 parents 1355bf6 + 237978b commit 7ad20ed

File tree

6 files changed

+44
-5
lines changed

6 files changed

+44
-5
lines changed

.cirrus.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ nightly_task:
2727
test_script: cargo test --no-default-features --features "rocket-frontend"
2828
before_cache_script: rm -rf $CARGO_HOME/registry/index
2929

30+
release_task:
31+
only_if: $CIRRUS_BRANCH =~ 'release.*'
32+
container:
33+
image: rust:latest
34+
script: ./release
35+
3036
doc_task:
3137
container:
3238
image: rustlang/rust:nightly

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxide-auth"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
authors = ["Andreas Molzer <andreas.molzer@gmx.de>"]
55
repository = "https://github.com/HeroicKatora/oxide-auth.git"
66

Changes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ Versions follow SemVer, of course. Major milestone versions are named in
22
alphabetic order and will be accompanied by notes in [the migration
33
notes](Migration.md)
44

5+
# v0.4.4 (2019-Aug-09)
6+
7+
Bugfix release
8+
9+
- Fix `iter_private` to iterate private extension data instead of public. This
10+
was a consequence of a wrong return type, which will be corrected in `v0.5`.
11+
Until then, the `PublicExtensions` iterator yields private extension data if
12+
constructed in `iter_private`. The correct interface is already available
13+
under the terser names `public` and `private`.
14+
- Fix `Assertion` grants silently dropping private extensions instead of
15+
erroring (due to the above)
16+
- The `ephemeral` constructor of Assertion grant generator is now spelled
17+
correctly. The old version will stay available until `v0.5`.
18+
519
# v0.4.3 (2019-Jun-03)
620

721
Bugfix release

Migration.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ according migration note.
1111

1212
This document is independent of the [release notes](Changes.md).
1313

14+
# [NEXT] v0.5 – Enstatite
15+
16+
As advised in deprecation warnings, the iterators for public and private
17+
extension data of a grant are now constructed via the `public` and `private`
18+
method respectively and the older `iter_public` and `iter_private` method have
19+
been removed. The `is_private` method of `PublicExtensions` is now obsolete and
20+
has been removed since the return type of `private` is now correct.
21+
22+
The wrongly spelled `ephermal` constructor of the `Assertion` grant generator
23+
has been replaced by `ephemeral`.
24+
25+
The crate has been split into a core (`oxide-auth`) and several sub-crates for
26+
each frontend version
27+
1428
## v0.4.1
1529

1630
The iron frontend has been reworked greatly. It no longer wraps endpoint
@@ -28,7 +42,7 @@ Support for a Bearer token authorizing Middleware implementation has not yet
2842
been implemented. Also, see the notes on `QueryParamter` and module reordering
2943
below in the general migration notes for `v0.4.0`.
3044

31-
## v0.4.0 – Diamond
45+
# v0.4.0 – Diamond
3246

3347
Below is a reverse chronological list of recommended migration notes. These
3448
have been collected while improving incrementally in preview versions. Read

release

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ determine_new_version() {
44
}
55

66
check_notexists_version() {
7+
cirrus_agent="${CIRRUS_CI/?*/(Cirrus-CI)}"
8+
final_agent="Release-Script/1.0 ${cirrus_agent:-(local)} (for static-alloc) (author:HeroicKatora)"
9+
echo $final_agent
710
# Does the api information start with: '{"errors":'
8-
[[ $(wget -U "Release-Script (for oxide-auth) (author:HeroicKatora)" "https://crates.io/api/v1/crates/oxide-auth/$new_version" -qO -) == "{\"errors\":"* ]]
11+
[[ $(wget -U "%final_agent" "https://crates.io/api/v1/crates/oxide-auth/$new_version" -qO -) == "{\"errors\":"* ]]
912
}
1013

1114
count_wip_marker() {
@@ -23,11 +26,13 @@ new_version="$(determine_new_version)"
2326
[[ -z $(grep -vE '[0-9a-zA-Z.-]*' <<< "$new_version" ) ]] || { echo "Fail: Check version number: ${new_version}"; exit 1; }
2427

2528
is_force=""
29+
do_tag=""
2630

2731
for param in $@
2832
do
2933
case "$param" in
3034
-f) is_force="-f";;
35+
--tag) do_tag="yes";;
3136
--help) ;&
3237
-h) { cat << EOF
3338
usage: release [-f] [-h|--help] <version>
@@ -70,4 +75,4 @@ check_release_changes && { echo "Fail: No changelog regarding this release"; exi
7075
# Packaging works. Note: does not publish the version.
7176
cargo package || { echo "Fail: cargo could not package successfully"; exit 1; }
7277

73-
git tag -s $is_force "v$new_version"
78+
[[ -z $do_tag ]] || git tag -s $is_force "v$new_version"

0 commit comments

Comments
 (0)