From d2440e3d2316159faafb97602dd4f2fcad799ca0 Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Wed, 21 Feb 2018 14:47:23 -0600 Subject: [PATCH] Bump podspec to 4.5.0, updated CHANGELOG --- CHANGELOG.md | 12 +++++++++--- README.md | 6 +++--- SWXMLHash.podspec | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6113570..d510276d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,19 @@ +## v4.5.0 (February 21, 2018) + +* Changed `filter` support to `filterAll` and `filterChildren` (via + [#178](https://github.com/drmohundro/SWXMLHash/pull/178) and + [#170](https://github.com/drmohundro/SWXMLHash/issues/170)) + ## v4.4.1 (February 5, 2018) * Fix issue with `filter` and deserialization (via - [#171](https://github.com/drmohundro/SWXMLHash/pull/177)) + [#177](https://github.com/drmohundro/SWXMLHash/pull/177)) ## v4.4.0 (February 4, 2018) * Added `filter` support (via - [#171](https://github.com/drmohundro/SWXMLHash/pull/174) and - [#167](https://github.com/drmohundro/SWXMLHash/issues/170)) + [#174](https://github.com/drmohundro/SWXMLHash/pull/174) and + [#170](https://github.com/drmohundro/SWXMLHash/issues/170)) ## v4.3.6 (January 21, 2018) diff --git a/README.md b/README.md index c2f5e7f5..e15c3e7a 100644 --- a/README.md +++ b/README.md @@ -349,10 +349,10 @@ of the `XMLElement` class or by index as well. ```swift let subIndexer = xml!["root"]["catalog"]["book"] - .filter { elem, _ in elem.attribute(by: "id")!.text == "bk102" } - .filter { _, index in index >= 1 && index <= 3 } + .filterAll { elem, _ in elem.attribute(by: "id")!.text == "bk102" } + .filterChildren { _, index in index >= 1 && index <= 3 } -print(subIndexer[0].element?.text) +print(subIndexer.children[0].element?.text) ``` ### Error Handling diff --git a/SWXMLHash.podspec b/SWXMLHash.podspec index 7e142c34..ea816112 100644 --- a/SWXMLHash.podspec +++ b/SWXMLHash.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SWXMLHash' - s.version = '4.4.1' + s.version = '4.5.0' s.summary = 'Simple XML parsing in Swift' s.homepage = 'https://github.com/drmohundro/SWXMLHash' s.license = { type: 'MIT' }