Skip to content

Commit

Permalink
Use Pathname#to_s instead of Pathname#to_path
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Nov 16, 2013
1 parent 1d81f25 commit dfffc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/commands/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.watch(site, options)
destination = options['destination']

begin
dest = Pathname.new(destination).relative_path_from(Pathname.new(source)).to_path
dest = Pathname.new(destination).relative_path_from(Pathname.new(source)).to_s
ignored = Regexp.new(Regexp.escape(dest))
rescue ArgumentError
# Destination is outside the source, no need to ignore it.
Expand Down

0 comments on commit dfffc2e

Please sign in to comment.