Skip to content
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...
1 parent 2e1ab52 commit 74e6b52c6cce67f24f92df799233d723e4ec74c3 Kieran Pilkington committed Oct 9, 2009
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

0 comments on commit 74e6b52

Please sign in to comment.
Something went wrong with that request. Please try again.