lib/quality/config.rb in quality-15.0.0 vs lib/quality/config.rb in quality-15.0.1
- old
+ new
@@ -11,20 +11,40 @@
:output_dir, :punchlist_regexp
extend Forwardable
def_delegators(:source_file_globber,
- :ruby_dirs=, :ruby_dirs,
- :source_dirs=, :source_dirs,
- :extra_files=, :extra_files,
- :exclude_files=, :exclude_files,
- :extra_ruby_files=, :extra_ruby_files,
- :ruby_file_extensions=, :ruby_file_extensions,
- :source_file_extensions=, :source_file_extensions,
+ :ruby_dirs_arr=, :ruby_dirs_arr,
+ :source_dirs_arr=, :source_dirs_arr,
+ :extra_source_files_arr=, :extra_source_files_arr,
+ :exclude_files_arr=, :exclude_files_arr,
+ :extra_ruby_files_arr=, :extra_ruby_files_arr,
+ :ruby_file_extensions_arr=, :ruby_file_extensions_arr,
+ :ruby_file_extensions_glob=, :ruby_file_extensions_glob,
+ :source_file_extensions_arr=, :source_file_extensions_arr,
+ :source_file_extensions_glob=, :source_file_extensions_glob,
:source_files_glob,
:source_files_exclude_glob,
:ruby_files_glob,
- :ruby_files)
+ :ruby_files_arr)
+
+ alias_method(:extra_files, :extra_source_files_arr)
+ alias_method(:extra_files=, :extra_source_files_arr=)
+ alias_method(:extra_ruby_files, :extra_ruby_files_arr)
+ alias_method(:extra_ruby_files=, :extra_ruby_files_arr=)
+ alias_method(:ruby_files, :ruby_files_arr)
+ alias_method(:ruby_dirs, :ruby_dirs_arr)
+ alias_method(:ruby_dirs=, :ruby_dirs_arr=)
+ alias_method(:source_dirs, :source_dirs_arr)
+ alias_method(:source_dirs=, :source_dirs_arr=)
+ alias_method(:exclude_files, :exclude_files_arr)
+ alias_method(:exclude_files=, :exclude_files_arr=)
+ alias_method(:ruby_file_extensions, :ruby_file_extensions_glob)
+ alias_method(:ruby_file_extensions=, :ruby_file_extensions_glob=)
+
+ # This was named and documented poorly early on
+ alias_method(:source_file_extensions, :source_file_extensions_glob)
+ alias_method(:source_file_extensions=, :source_file_extensions_glob=)
def source_file_globber
@source_file_globber ||=
SourceFinder::SourceFileGlobber.new(globber: @globber)
end