File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11Pod ::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' }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments