CHANGELOG.md in shaped-0.6.4 vs CHANGELOG.md in shaped-0.7.0

- old
+ new

@@ -1,5 +1,16 @@ +## v0.7.0 (2020-06-24) +### BREAKING CHANGES +- Rename the `Or` shape to `Any` +- Add a `Method` shape (where the shape description is the name of a method which, when called on a + test object, must return a truthy value). This is a breaking change because the `Shaped::Shape` + constructor will now return an instance of `Shaped::Shapes::Method` rather than + `Shaped::Shapes::Equality` when called with a Symbol argument. + +### Added +- Add an `All` shape (w/ multiple sub-shapes, all of which must be matched) + ## v0.6.4 (2020-06-22) ### Fixed - Make it possible to specify optional keys in a Hash shape (using an `Or` shape as the value) ### Docs @@ -90,10 +101,10 @@ ### Added - Added new shape/matcher types (plus preexisting but relocated `Shaped::Shapes::Array` and `Shaped::Shapes::Hash`): 1. `Shaped::Shapes::Class` 2. `Shaped::Shapes::Equality` - 3. `Shaped::Shapes::Or` + 3. `Shaped::Shapes::Any` - All hashes and arrays in shape definitions are parsed "recursively" as shape definitions. For example, instead of: ```rb Shaped::Array([