lib/pdk/module.rb in pdk-1.13.0 vs lib/pdk/module.rb in pdk-1.14.0

- old
+ new

@@ -1,7 +1,5 @@ -require 'pathspec' - module PDK module Module DEFAULT_IGNORED = [ '/pkg/', '~*', @@ -11,9 +9,11 @@ '/spec/fixtures/modules/', '/vendor/', ].freeze def default_ignored_pathspec(ignore_dotfiles = true) + require 'pathspec' + PathSpec.new(DEFAULT_IGNORED).tap do |ps| ps.add('.*') if ignore_dotfiles end end module_function :default_ignored_pathspec