Update yaml and monkeys to support hexstring colors

This commit is contained in:
George Pickering 2020-05-28 15:02:37 -04:00
parent b2def8eea9
commit e345cfca8b
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
class String
def colorize(color)
self.color(color.to_sym)
self.color(color)
end
def remove(pattern)

View file

@ -16,7 +16,7 @@ module ColorLS
return yaml unless aliase
yaml.to_a.map! { |k, v| [k, v.to_sym] }.to_h
yaml.to_a.map! { |k, v| v.include?('#') ? [k, v] : [k, v.to_sym] }.to_h
end
def read_file(filepath)

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "COLORLS" "1" "April 2020" "colorls 1.4.0" "colorls Manual"
.TH "COLORLS" "1" "May 2020" "colorls 1.4.1" "colorls Manual"
.
.SH "NAME"
\fBcolorls\fR \- list directory contents with colors and icons