lib/rake_script/logging.rb in rake_script-0.4.1 vs lib/rake_script/logging.rb in rake_script-0.4.2
- old
+ new
@@ -46,10 +46,10 @@
def puts_colored(*lines)
options = lines.pop
raise ArgumentError, 'last argument must be options hash'.freeze unless options.is_a?(Hash)
raise ArgumentError, 'provide at least one line'.freeze if lines.empty?
- formatted_lines = lines.map { |line| format_text(line, options) }
+ formatted_lines = lines.map { |line| format_text(line, **options) }
puts(*formatted_lines)
end
def puts_time(prefix: nil, color: :yellow, style: :bold)
time = Time.now.utc.strftime('%F %T %Z'.freeze)