Skip to content

Commit 8471493

Browse files
committed
chore: Release 0.4.0
1 parent a3c8d61 commit 8471493

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

CHANGELOG.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased] - Unreleased
88

9+
## [0.4.0] - 2018-05-10
10+
### Added
11+
* Define oldest supported version of Rust as 1.22.
12+
* CI that ensures
13+
* works on Windows and Linux
14+
* works on 1.22 to nightly
15+
* **float:** `is_close` Predicate (see #11).
16+
* **path:**
17+
* File type predicates: `is_file`, `is_dir`, `is_symlink` (see #8).
18+
* Existence predicate: `exists`, `missing` (see #8).
19+
* **str:**
20+
* Basic string predicates: `is_empty`, `starts_with`, `ends_with`, and `contains` with optional count (see #25).
21+
* Regex predicate (see #12).
22+
* Edit-distance predicate (see #9).
23+
24+
### Changed
25+
* Clearly delineate API from prelude (see #17).
26+
* Switch `Predicate` trait from Associated Types to Generics.
27+
* **iter:**
28+
* Renamed `set` predicates as `iter` predicates to clarify the intent from some implementation.
29+
* Remove ambiguity of predicate factories (see #24):
30+
* `contains` -> `in_iter`
31+
* `contains_hashable` -> `in_hash`
32+
* Turned `contains_ord` into a specialization of `in_iter` by adding a `sort` method.
33+
934
## [0.3.0] - 2017-06-26
1035
### Added
1136
- `BoxPredicate` type that wraps a `Predicate` trait object to make it easier
@@ -34,6 +59,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3459
- Continuous integration with Travis (Linux) and AppVeyor (Windows)
3560
- Basic README
3661

37-
[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/v0.3.0...HEAD
62+
[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/v0.4.0...HEAD
63+
[0.4.0]: https://github.com/assert-rs/predicates-rs/compare/v0.3.0...v0.4.0
3864
[0.3.0]: https://github.com/assert-rs/predicates-rs/compare/v0.2.0...v0.3.0
3965
[0.2.0]: https://github.com/assert-rs/predicates-rs/compare/v0.1.0...v0.2.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "predicates"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Nick Stevens <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ First, add this to your `Cargo.toml`:
1717

1818
```toml
1919
[dependencies]
20-
predicates = "0.3"
20+
predicates = "0.4"
2121
```
2222

2323
Next, add this to your crate:

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//!
2525
//! ```toml
2626
//! [dependencies]
27-
//! predicates = "0.2"
27+
//! predicates = "0.4"
2828
//! ```
2929
//!
3030
//! ## Examples

0 commit comments

Comments
 (0)