Skip to content

Commit

Permalink
Bump podspec to 4.5.0, updated CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
drmohundro committed Feb 21, 2018
1 parent 1b8d10f commit d2440e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SWXMLHash.podspec
Original file line number Diff line number Diff line change
@@ -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' }
Expand Down

0 comments on commit d2440e3

Please sign in to comment.