Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
Bump version to 2.1.0 (Swift 4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
honghaoz committed Oct 6, 2017
1 parent 8222ee4 commit 7f99606
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
2 changes: 1 addition & 1 deletion Ji.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Ji"
s.version = "2.0.1"
s.version = "2.1.0"
s.summary = "Ji (戟) is a Swift XML/HTML parser."
s.description = <<-DESC
Ji (戟) is a Swift wrapper on libxml2 for parsing XML/HTML.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="Ji.png" width=220 alt="Ji: a Swift XML/HTML parser" />
</h3>

# Ji 戟
# Ji 戟
[![CI Status](https://travis-ci.org/honghaoz/Ji.svg?branch=master)](https://travis-ci.org/honghaoz/Ji)
[![CocoaPods Version](https://img.shields.io/cocoapods/v/Ji.svg?style=flat)](http://cocoapods.org/pods/Ji)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-0473B3.svg?style=flat)](https:/Carthage/Carthage)
Expand Down Expand Up @@ -32,7 +32,7 @@ To integrate **Ji** into your Xcode project using CocoaPods, specify it in your
source 'https:/CocoaPods/Specs.git'
use_frameworks!

pod 'Ji', '~> 2.0.0'
pod 'Ji', '~> 2.1.0'
```

Then, run the following command:
Expand All @@ -46,7 +46,7 @@ $ pod install
To integrate `Ji` into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "honghaoz/Ji" ~> 2.0.0
github "honghaoz/Ji" ~> 2.1.0
```

### [Swift Package Manager (SPM)](https://swift.org/package-manager)
Expand All @@ -72,7 +72,7 @@ import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
dependencies: [
.Package(url: "https:/honghaoz/Ji.git", majorVersion: 2)
.Package(url: "https:/honghaoz/Ji.git", majorVersion: 2, minor: 1)
]
)
```
Expand Down Expand Up @@ -130,7 +130,7 @@ if let googleIndexData = googleIndexData {
let jiDoc = Ji(htmlData: googleIndexData)!
let htmlNode = jiDoc.rootNode!
print("html tagName: \(htmlNode.tagName)") // html tagName: Optional("html")
let aNodes = jiDoc.xPath("//body//a")
if let firstANode = aNodes?.first {
print("first a node tagName: \(firstANode.name)") // first a node tagName: Optional("a")
Expand Down

0 comments on commit 7f99606

Please sign in to comment.