Skip to content

Commit

Permalink
Merge pull request #967 from realm/jf-sync-fsname
Browse files Browse the repository at this point in the history
Prefer filesystem spelling of pathnames
  • Loading branch information
johnfairh authored May 10, 2018
2 parents 4ed1fbf + 6c2d287 commit 54fc957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

##### Bug Fixes

* None.
* Fix crash with pre-existing `Docs` directory.
[John Fairhurst](https://github.com/johnfairh)
[#965](https://github.com/realm/jazzy/issues/965)

## 0.9.3

Expand Down
3 changes: 2 additions & 1 deletion lib/jazzy/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class << self
attr_accessor :base_path

def expand_path(path)
Pathname(path).expand_path(base_path) # nil means Pathname.pwd
abs_path = Pathname(path).expand_path(base_path) # nil means Pathname.pwd
Pathname(Dir[abs_path][0] || abs_path) # Use existing filesystem spelling
end

# ──────── Build ────────
Expand Down

0 comments on commit 54fc957

Please sign in to comment.