File tree 4 files changed +13
-11
lines changed
4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
# PathKit Changelog
2
2
3
- ## TBD
3
+ ## 1.0.1 (2021-09-22)
4
4
5
5
### Enhancements
6
6
7
+ - Adds support for Xcode 13.
8
+
7
9
- Path's can now be tested against a glob-like pattern using
8
10
` Path(...).match(pattern) ` .
9
11
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
2
spec . name = 'PathKit'
3
- spec . version = '1.0.0 '
3
+ spec . version = '1.0.1 '
4
4
spec . summary = 'Effortless path operations in Swift.'
5
5
spec . homepage = 'https://github.com/kylef/PathKit'
6
6
spec . license = { :type => 'BSD' , :file => 'LICENSE' }
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ extension Path {
456
456
Path . current = self
457
457
defer { Path . current = previous }
458
458
try closure ( )
459
- }
459
+ }
460
460
}
461
461
462
462
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ describe("PathKit") {
49
49
$0. it ( " can be converted to a string description " ) {
50
50
try expect ( Path ( " /usr/bin/swift " ) . description) == " /usr/bin/swift "
51
51
}
52
-
52
+
53
53
$0. it ( " can be converted to a string " ) {
54
54
try expect ( Path ( " /usr/bin/swift " ) . string) == " /usr/bin/swift "
55
55
}
56
-
56
+
57
57
$0. it ( " can be converted to a url " ) {
58
58
try expect ( Path ( " /usr/bin/swift " ) . url) == URL ( fileURLWithPath: " /usr/bin/swift " )
59
59
}
@@ -290,12 +290,12 @@ describe("PathKit") {
290
290
let current = Path . current
291
291
let error = ThrowError ( )
292
292
293
- try expect ( {
293
+ try expect {
294
294
try Path ( " /usr/bin " ) . chdir {
295
295
try expect ( Path . current) == Path ( " /usr/bin " )
296
296
throw error
297
297
}
298
- } ) . toThrow ( error)
298
+ } . toThrow ( error)
299
299
300
300
try expect ( Path . current) == current
301
301
}
@@ -324,9 +324,9 @@ describe("PathKit") {
324
324
$0. it ( " errors when you read from a non-existing file as NSData " ) {
325
325
let path = Path ( " /tmp/pathkit-testing " )
326
326
327
- try expect ( {
327
+ try expect {
328
328
try path. read ( ) as Data
329
- } ) . toThrow ( )
329
+ } . toThrow ( )
330
330
}
331
331
332
332
$0. it ( " can read a String from a file " ) {
@@ -339,9 +339,9 @@ describe("PathKit") {
339
339
$0. it ( " errors when you read from a non-existing file as a String " ) {
340
340
let path = Path ( " /tmp/pathkit-testing " )
341
341
342
- try expect ( {
342
+ try expect {
343
343
try path. read ( ) as String
344
- } ) . toThrow ( )
344
+ } . toThrow ( )
345
345
}
346
346
}
347
347
You can’t perform that action at this time.
0 commit comments