Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

the source path method returns a Pathname in Ruby 1.9, which is

incompatible with Dir[]. I changed it to call to_s on the Pathname,
which works fine in 1.8 as well where we'd just be calling to_s on a
String.
  • Loading branch information...
commit 3b4096c8021f09f68ef6848c3e83b6a6aeb26537 1 parent 7b50da3
@aub aub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/more.rb
View
2  lib/more.rb
@@ -164,7 +164,7 @@ def clean
# Array of Pathname instances for all the less source files.
def all_less_files
- Dir[Less::More.source_path.join("**", "*.{css,less,lss}")].map! {|f| Pathname.new(f) }
+ Dir[Less::More.source_path.join("**", "*.{css,less,lss}").to_s].map! {|f| Pathname.new(f) }
end
# Converts ["foo", "bar"] into a `Pathname` based on Less::More.source_path.
Please sign in to comment.
Something went wrong with that request. Please try again.