Skip to content

Commit

Permalink
Ruby 2.7 support (#331)
Browse files Browse the repository at this point in the history
* add Ruby 2.7.0 to build matrix
* fix deprecation warning
  • Loading branch information
avdv authored Jan 7, 2020
2 parents 50ee8da + 524a9b6 commit bbda8b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rvm:
- '2.4'
- '2.5'
- '2.6'
- '2.7'

before_install:
- gem --version
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ file 'man/colorls.1' => ['man/colorls.1.ronn', 'lib/colorls/flags.rb'] do

flags = ColorLS::Flags.new
attributes = {
date: Date.iso8601(`git log -1 --pretty=format:%aI -- man/colorls.1`),
date: Date.iso8601(`git log -1 --pretty=format:%cI -- man/colorls.1`),
manual: 'colorls Manual',
organization: "colorls #{ColorLS::VERSION}"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/colorls/flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def process

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
Expand Down

0 comments on commit bbda8b8

Please sign in to comment.