lib/core/facets/file.rb in facets-2.4.3 vs lib/core/facets/file.rb in facets-2.4.4

- old
+ new

@@ -1,6 +1,6 @@ -require 'facets/file/null.rb' -require 'facets/file/read.rb' -require 'facets/file/rewrite.rb' -require 'facets/file/rootname.rb' -require 'facets/file/write.rb' +dir, base = *File.split(__FILE__) +base = base.chomp('.rb') +Dir[File.join(dir, base, '*')].each do |lib| + require "facets/#{base}/#{File.basename(lib)}" +end