Skip to content

Commit

Permalink
chore: minor adjustment to the newline event identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Nov 21, 2024
1 parent 7e4ca60 commit f1d8e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/site_maps/runner/event_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def on_sitemaps_runner_enqueue_process(event)
location: colorize(location, :lightgray)
)
if kwargs.any?
print_message("--> Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
print_message("└── Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
end
end

Expand All @@ -37,7 +37,7 @@ def on_sitemaps_runner_before_process_execution(event)
location: colorize(location, :lightgray)
)
if kwargs.any?
print_message("--> Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
print_message("└── Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
end
end

Expand All @@ -52,7 +52,7 @@ def on_sitemaps_runner_process_execution(event)
runtime: formatted_runtime(event[:runtime])
)
if kwargs.any?
print_message("--> Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
print_message("└── Keyword Arguments: {%<kwargs>s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "))
end
end

Expand Down
6 changes: 3 additions & 3 deletions spec/site_maps/runner/event_listener_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
it "prints message" do
expect { call! }.to output(<<~MSG).to_stdout
Enqueue process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)}
--> Keyword Arguments: {year: 2024, month: 11}
└── Keyword Arguments: {year: 2024, month: 11}
MSG
end
end
Expand Down Expand Up @@ -123,7 +123,7 @@
it "prints message" do
expect { call! }.to output(<<~MSG).to_stdout
Executing process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)}
--> Keyword Arguments: {year: 2024, month: 11}
└── Keyword Arguments: {year: 2024, month: 11}
MSG
end
end
Expand Down Expand Up @@ -176,7 +176,7 @@
it "prints message" do
expect { call! }.to output(<<~MSG).to_stdout
[#{formatted_runtime(1.32)}] Executed process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)}
--> Keyword Arguments: {year: 2024, month: 11}
└── Keyword Arguments: {year: 2024, month: 11}
MSG
end
end
Expand Down

0 comments on commit f1d8e26

Please sign in to comment.