Skip to content

Commit 3bfd273

Browse files
committed
release: 1.0.1
1 parent c7dace2 commit 3bfd273

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# PathKit Changelog
22

3-
## TBD
3+
## 1.0.1 (2021-09-22)
44

55
### Enhancements
66

7+
- Adds support for Xcode 13.
8+
79
- Path's can now be tested against a glob-like pattern using
810
`Path(...).match(pattern)`.
911

PathKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'PathKit'
3-
spec.version = '1.0.0'
3+
spec.version = '1.0.1'
44
spec.summary = 'Effortless path operations in Swift.'
55
spec.homepage = 'https://github.com/kylef/PathKit'
66
spec.license = { :type => 'BSD', :file => 'LICENSE' }

Sources/PathKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ extension Path {
456456
Path.current = self
457457
defer { Path.current = previous }
458458
try closure()
459-
}
459+
}
460460
}
461461

462462

Tests/PathKitTests/PathKitSpec.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ describe("PathKit") {
4949
$0.it("can be converted to a string description") {
5050
try expect(Path("/usr/bin/swift").description) == "/usr/bin/swift"
5151
}
52-
52+
5353
$0.it("can be converted to a string") {
5454
try expect(Path("/usr/bin/swift").string) == "/usr/bin/swift"
5555
}
56-
56+
5757
$0.it("can be converted to a url") {
5858
try expect(Path("/usr/bin/swift").url) == URL(fileURLWithPath: "/usr/bin/swift")
5959
}
@@ -290,12 +290,12 @@ describe("PathKit") {
290290
let current = Path.current
291291
let error = ThrowError()
292292

293-
try expect({
293+
try expect {
294294
try Path("/usr/bin").chdir {
295295
try expect(Path.current) == Path("/usr/bin")
296296
throw error
297297
}
298-
}).toThrow(error)
298+
}.toThrow(error)
299299

300300
try expect(Path.current) == current
301301
}
@@ -324,9 +324,9 @@ describe("PathKit") {
324324
$0.it("errors when you read from a non-existing file as NSData") {
325325
let path = Path("/tmp/pathkit-testing")
326326

327-
try expect({
327+
try expect {
328328
try path.read() as Data
329-
}).toThrow()
329+
}.toThrow()
330330
}
331331

332332
$0.it("can read a String from a file") {
@@ -339,9 +339,9 @@ describe("PathKit") {
339339
$0.it("errors when you read from a non-existing file as a String") {
340340
let path = Path("/tmp/pathkit-testing")
341341

342-
try expect({
342+
try expect {
343343
try path.read() as String
344-
}).toThrow()
344+
}.toThrow()
345345
}
346346
}
347347

0 commit comments

Comments
 (0)