lib/reek/source/source_locator.rb in reek-1.3.3 vs lib/reek/source/source_locator.rb in reek-1.3.4
- old
+ new
@@ -6,10 +6,10 @@
#
# Finds Ruby source files in a filesystem.
#
class SourceLocator
def initialize(paths)
- @paths = paths
+ @paths = paths.map {|path| path.chomp('/') }
end
def all_sources
valid_paths.map {|path| File.new(path).to_reek_source }
end