Skip to content

Commit

Permalink
Merge pull request #251 from mgeisler/release-0.13.1
Browse files Browse the repository at this point in the history
Release 0.13.1
  • Loading branch information
mgeisler authored Dec 10, 2020
2 parents 12954d0 + 7b7e45c commit 45dc705
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Update changelog for version ${{ needs.setup.outputs.new-version }}
id: changelog
uses: actions/github-script@v2
uses: actions/github-script@v3
with:
script: |
var fs = require('fs')
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
if (content.match('## Unreleased')) {
content = content.replace('## Unreleased', `${heading}\n${changelog}`)
} else {
content = content.replace('## Version, `${heading}\n${changelog}\n\n$$ Version`)
content = content.replace('## Version', `${heading}\n${changelog}\n\n## Version`)
}
fs.writeFileSync('CHANGELOG.md', content)
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
run: git push origin

- name: Create pull request
uses: actions/github-script@v2
uses: actions/github-script@v3
with:
script: |
const pr = await github.pulls.create({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Lookup ${{ steps.vars.outputs.version }} tag
id: need-release
uses: actions/github-script@v2
uses: actions/github-script@v3
with:
script: |
const version = '${{ steps.vars.outputs.version }}'
Expand Down
40 changes: 26 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@
This file lists the most important changes made in each release of
`textwrap`.

## Version 0.13.0 — December 5th, 2020
## Version 0.13.1 (2020-12-10)

This is a bugfix release which fixed the width computations for
colored text.

* [#245](https://github.com/mgeisler/textwrap/pull/245): Support
deleting a word with Ctrl-Backspace in the interactive demo
* [#246](https://github.com/mgeisler/textwrap/pull/246): Show build
type (debug/release) in interactive demo
* [#249](https://github.com/mgeisler/textwrap/pull/249): Correctly
compute width while skipping over ANSI escape sequences

## Version 0.13.0 (2020-12-05)

This is a major release which rewrites the core logic, adds many new
features, and fixes a couple of bugs. Most programs which use
Expand Down Expand Up @@ -157,7 +169,7 @@ Thanks to @CryptJar and @Koxiat for their support in the PRs above!
* [#216](https://github.com/mgeisler/textwrap/pull/216): Forbid the
use of unsafe code.

## Version 0.12.1 — July 3rd, 2020
## Version 0.12.1 (2020-07-03)

This is a bugfix release.

Expand All @@ -167,7 +179,7 @@ This is a bugfix release.
broken and would cause extra whitespace to be inserted when words
were longer than the line width.

## Version 0.12.0 — June 26th, 2020
## Version 0.12.0 (2020-06-26)

The code has been updated to the [Rust 2018 edition][rust-2018] and
each new release of `textwrap` will only support the latest stable
Expand All @@ -185,7 +197,7 @@ US-English. This slims down the dependency.
* Fixed [#158][issue-158]: Unintended wrapping when using external splitter.
* Fixed [#177][issue-177]: Update examples to the 2018 edition.

## Version 0.11.0 — December 9th, 2018
## Version 0.11.0 (2018-12-09)

Due to our dependencies bumping their minimum supported version of
Rust, the minimum version of Rust we test against is now 1.22.0.
Expand All @@ -194,7 +206,7 @@ Rust, the minimum version of Rust we test against is now 1.22.0.
trailing newlines. Thanks @bbqsrc!
* Fixed [#151][issue-151]: Release of version with hyphenation 0.7.

## Version 0.10.0 — April 28th, 2018
## Version 0.10.0 (2018-04-28)

Due to our dependencies bumping their minimum supported version of
Rust, the minimum version of Rust we test against is now 1.17.0.
Expand All @@ -204,7 +216,7 @@ Rust, the minimum version of Rust we test against is now 1.17.0.
* Fixed [#122][issue-122]: Take newlines into account when wrapping.
* Fixed [#129][issue-129]: Panic on string with em-dash.

## Version 0.9.0 — October 5th, 2017
## Version 0.9.0 (2017-10-05)

The dependency on `term_size` is now optional, and by default this
feature is not enabled. This is a *breaking change* for users of
Expand All @@ -217,7 +229,7 @@ Added a regression test for the case where `width` is set to

* Fixed [#101][issue-101]: Make `term_size` an optional dependency.

## Version 0.8.0 — September 4th, 2017
## Version 0.8.0 (2017-09-04)

The `Wrapper` stuct is now generic over the type of word splitter
being used. This means less boxing and a nicer API. The
Expand All @@ -232,7 +244,7 @@ if you will be iterating over the wrapped lines one by one.
@hcpl!
* Fixed [#81][issue-81]: Set `html_root_url`.

## Version 0.7.0 — July 20th, 2017
## Version 0.7.0 (2017-07-20)

Version 0.7.0 changes the return type of `Wrapper::wrap` from
`Vec<String>` to `Vec<Cow<'a, str>>`. This means that the output lines
Expand All @@ -250,7 +262,7 @@ important for you so we can provide a work around.
* Fixed [#58][issue-58]: Add a "fast_wrap" function.
* Fixed [#61][issue-61]: Documentation errors.

## Version 0.6.0 — May 22nd, 2017
## Version 0.6.0 (2017-05-22)

Version 0.6.0 adds builder methods to `Wrapper` for easy one-line
initialization and configuration:
Expand All @@ -264,7 +276,7 @@ words, not even at existing hyphens.

* Fixed [#28][issue-28]: Support not squeezing whitespace.

## Version 0.5.0 — May 15th, 2017
## Version 0.5.0 (2017-05-15)

Version 0.5.0 has *breaking API changes*. However, this only affects
code using the hyphenation feature. The feature is now optional, so
Expand All @@ -287,22 +299,22 @@ Other changes include optimizations, so version 0.5.0 is roughly
* Fixed [#36][issue-36]: Support building without `hyphenation`.
* Fixed [#39][issue-39]: Respect non-breaking spaces.

## Version 0.4.0 — January 24th, 2017
## Version 0.4.0 (2017-01-24)

Documented complexities and tested these via `cargo bench`.

* Fixed [#13][issue-13]: Immediatedly add word if it fits.
* Fixed [#14][issue-14]: Avoid splitting on initial hyphens.

## Version 0.3.0 — January 7th, 2017
## Version 0.3.0 (2017-01-07)

Added support for automatic hyphenation.

## Version 0.2.0 — December 28th, 2016
## Version 0.2.0 (2016-12-28)

Introduced `Wrapper` struct. Added support for wrapping on hyphens.

## Version 0.1.0 — December 17th, 2016
## Version 0.1.0 (2016-12-17)

First public release with support for wrapping strings on whitespace.

Expand Down
11 changes: 2 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
[package]
name = "textwrap"
version = "0.13.0"
version = "0.13.1"
authors = ["Martin Geisler <[email protected]>"]
description = """
Textwrap is a library for word wrapping, indenting, and dedenting
strings.
You can use it to format strings (such as help and error messages) for
display in commandline applications. It is designed to be efficient
and handle Unicode characters correctly.
"""
description = "Powerful library for word wrapping, indenting, and dedenting strings"
documentation = "https://docs.rs/textwrap/"
repository = "https://github.com/mgeisler/textwrap"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
//!
//! [textwrap-macros]: https://docs.rs/textwrap-macros/
#![doc(html_root_url = "https://docs.rs/textwrap/0.13.0")]
#![doc(html_root_url = "https://docs.rs/textwrap/0.13.1")]
#![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
Expand Down
2 changes: 1 addition & 1 deletion tests/version-numbers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn test_readme_deps() {
fn test_changelog() {
version_sync::assert_contains_regex!(
"CHANGELOG.md",
r"^## Version {version} — .* \d\d?.., 20\d\d$"
r"^## Version {version} \(20\d\d-\d\d-\d\d\)"
);
}

Expand Down

0 comments on commit 45dc705

Please sign in to comment.