Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix: Pathname.glob uses Dir.glob which doesn't work well with a Pa…

…thname, so send it a string instead.
  • Loading branch information...
commit 74e6b52c6cce67f24f92df799233d723e4ec74c3 1 parent 2e1ab52
Kieran Pilkington authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/more.rb
View
2  lib/more.rb
@@ -166,7 +166,7 @@ def all_less_files
def pathname_from_array(array)
path_spec = array.dup
path_spec[-1] = path_spec[-1] + ".{less,lss}"
- Pathname.glob(self.source_path.join(*path_spec))[0]
+ Pathname.glob(File.join(self.source_path.to_s, *path_spec))[0]
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.