lib/faster_path/optional/refinements.rb in faster_path-0.2.3 vs lib/faster_path/optional/refinements.rb in faster_path-0.2.4

- old
+ new

@@ -32,14 +32,13 @@ def add_trailing_separator(pth) FasterPath.add_trailing_separator(pth) end private :add_trailing_separator - # Do NOT remove; waiting for fix in ruru - # def children(with_dir=true) - # FasterPathname::Public.allocate.send(:children_compat, @path, with_dir) - # end if !!ENV['WITH_REGRESSION'] + def children(with_dir=true) + FasterPath.children_compat(@path, with_dir) + end if !!ENV['WITH_REGRESSION'] def chop_basename(pth) FasterPath.chop_basename(pth) end private :chop_basename @@ -51,13 +50,12 @@ def directory? FasterPath.directory?(@path) end - # Do NOT remove; waiting for fix in ruru - # def entries - # FasterPathname::Public.allocate.send(:entries_compat, @path) - # end if !!ENV['WITH_REGRESSION'] + def entries + FasterPath.entries_compat(@path) + end if !!ENV['WITH_REGRESSION'] def has_trailing_separator?(pth) FasterPath.has_trailing_separator?(pth) end