lib/command/list.rb in narou-1.2.6 vs lib/command/list.rb in narou-1.2.7
- old
+ new
@@ -43,10 +43,12 @@
disp_id = ((frozen ? "*" : "") + id.to_s).rjust(4)
disp_id = disp_id.sub("*", "<cyan>*</cyan>").termcolor if frozen
puts [
disp_id,
novel["last_update"].strftime("%y/%m/%d").tap { |s|
- if s == today
+ if novel["new_arrivals_date"] && novel["new_arrivals_date"].strftime("%y/%m/%d") == today
+ s.replace "<bold><magenta>#{s}</magenta></bold>".termcolor
+ elsif s == today
s.replace "<bold><green>#{s}</green></bold>".termcolor
end
},
novel["title"],
@options["url"] ? novel["toc_url"] : nil