Skip to content

Commit 76c62c4

Browse files
committed
Releasing version 0.2.0.
1 parent 94de481 commit 76c62c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Next
22

3+
## [0.2.0](https://github.com/DenTelezhkin/Swarm/releases/tag/0.2.0)
4+
35
### Breaking
46

57
* `Spider` protocol no longer requires `init(url:)` initializer, `url` parameter is passed in `request(url:completion:)` method instead.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Scrapper: SwarmDelegate {
6161
If you build a package, based on Swarm, add following code to Package.swift:
6262

6363
```swift
64-
.package(url: "https://github.com/DenTelezhkin/Swarm.git", .upToNextMajor(from: "0.1.0"))
64+
.package(url: "https://github.com/DenTelezhkin/Swarm.git", .upToNextMajor(from: "0.2.0"))
6565
```
6666

6767
### CocoaPods
@@ -121,7 +121,7 @@ By default, `Swarm` uses `Foundation.URLSession` as network transport for all ne
121121

122122
```swift
123123
func spider(for url: ScrappableURL) -> Spider {
124-
let spider = URLSessionSpider(url: url)
124+
let spider = URLSessionSpider()
125125

126126
// Handle cookies instead of ignoring them
127127
spider.httpShouldHandleCookies = true
@@ -143,9 +143,7 @@ You can also implement your own network transport, if you need, by implementing
143143

144144
```swift
145145
public protocol Spider {
146-
init(url: ScrappableURL)
147-
148-
func request(completion: @escaping (Data?, URLResponse?, Error?) -> Void)
146+
func request(url: ScrappableURL, completion: @escaping (Data?, URLResponse?, Error?) -> Void)
149147
}
150148
```
151149

Swarm.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Swarm"
3-
s.version = "0.1.0"
3+
s.version = "0.2.0"
44
s.summary = "Simple, fast, modular Web-scrapping engine written in Swift"
55
s.homepage = "https://github.com/DenTelezhkin/Swarm"
66
s.license = 'MIT'

0 commit comments

Comments
 (0)