lib/warp/dir/store.rb in warp-dir-1.5.0 vs lib/warp/dir/store.rb in warp-dir-1.6.0
- old
+ new
@@ -66,9 +66,16 @@
end
raise ::Warp::Dir::Errors::PointNotFound.new(name_or_point) unless result
result
end
+ def clean!
+ points_collection.select(&:missing?).tap do |p|
+ points_collection.reject!(&:missing?)
+ save!
+ end
+ end
+
def save!
serializer.persist!
end
# a version of add that save right after.