Skip to content

Commit

Permalink
release: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Sep 22, 2021
1 parent c7dace2 commit 3bfd273
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# PathKit Changelog

## TBD
## 1.0.1 (2021-09-22)

### Enhancements

- Adds support for Xcode 13.

- Path's can now be tested against a glob-like pattern using
`Path(...).match(pattern)`.

Expand Down
2 changes: 1 addition & 1 deletion PathKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'PathKit'
spec.version = '1.0.0'
spec.version = '1.0.1'
spec.summary = 'Effortless path operations in Swift.'
spec.homepage = 'https://github.com/kylef/PathKit'
spec.license = { :type => 'BSD', :file => 'LICENSE' }
Expand Down
2 changes: 1 addition & 1 deletion Sources/PathKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ extension Path {
Path.current = self
defer { Path.current = previous }
try closure()
}
}
}


Expand Down
16 changes: 8 additions & 8 deletions Tests/PathKitTests/PathKitSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ describe("PathKit") {
$0.it("can be converted to a string description") {
try expect(Path("/usr/bin/swift").description) == "/usr/bin/swift"
}

$0.it("can be converted to a string") {
try expect(Path("/usr/bin/swift").string) == "/usr/bin/swift"
}

$0.it("can be converted to a url") {
try expect(Path("/usr/bin/swift").url) == URL(fileURLWithPath: "/usr/bin/swift")
}
Expand Down Expand Up @@ -290,12 +290,12 @@ describe("PathKit") {
let current = Path.current
let error = ThrowError()

try expect({
try expect {
try Path("/usr/bin").chdir {
try expect(Path.current) == Path("/usr/bin")
throw error
}
}).toThrow(error)
}.toThrow(error)

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

try expect({
try expect {
try path.read() as Data
}).toThrow()
}.toThrow()
}

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

try expect({
try expect {
try path.read() as String
}).toThrow()
}.toThrow()
}
}

Expand Down

0 comments on commit 3bfd273

Please sign in to comment.