lib/buff/ignore/ignore_file.rb in buff-ignore-1.1.0 vs lib/buff/ignore/ignore_file.rb in buff-ignore-1.1.1

- old
+ new

@@ -23,13 +23,13 @@ # a list of options to pass to the ignore file # # @option [#to_s] options :base # the base directory to apply ignores from def initialize(filepath, options = {}) + raise IgnoreFileNotFound.new(filepath) unless filepath && File.exists?(filepath) + @filepath = File.expand_path(filepath) @options = options - - raise IgnoreFileNotFound.new(filepath) unless File.exists?(filepath) end # Apply the ignore to the list, returning a new list of filtered files # # @example