Merge pull request #1730 from mojombo/pathname-to-s
Use Pathname#to_s instead of Pathname#to_path
This commit is contained in:
		
						commit
						c120b96638
					
				| 
						 | 
				
			
			@ -37,7 +37,7 @@ module Jekyll
 | 
			
		|||
        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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue