Fix deprecation warning on Ruby 2.7

```
lib/colorls/flags.rb:50: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
lib/colorls/core.rb:5: warning: The called method `initialize is defined here
```
This commit is contained in:
Claudio Bley 2020-01-07 22:08:02 +01:00
parent ee54e9ba22
commit d4aa862f79

View file

@ -47,7 +47,7 @@ module ColorLS
puts '' if i.positive?
puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
Core.new(path, @opts).ls
Core.new(path, **@opts).ls
rescue SystemCallError => e
STDERR.puts "#{path}: #{e}".colorize(:red)
end