From 15286085587316c484418e89478f478b3847e823 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 6 Apr 2023 21:07:04 -0500 Subject: [PATCH] Tools lib files formatted with standard --- bin/lib/tools/file.rb | 6 +++--- bin/lib/tools/icons.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/lib/tools/file.rb b/bin/lib/tools/file.rb index 76365f5..39b541e 100644 --- a/bin/lib/tools/file.rb +++ b/bin/lib/tools/file.rb @@ -9,10 +9,10 @@ class ToolsFile private def format_tools - Hash[tools_file.lines.map do |tool| + tools_file.lines.map do |tool| name, version, source = tool.split - [name, { version: version, source: source }] - end] + [name, {version: version, source: source}] + end.to_h end def tools_file diff --git a/bin/lib/tools/icons.rb b/bin/lib/tools/icons.rb index 753cceb..8828f7b 100644 --- a/bin/lib/tools/icons.rb +++ b/bin/lib/tools/icons.rb @@ -7,7 +7,7 @@ module ToolIcons "python" => "\e[0;33m", "ruby" => "\e[1;31m", "rust" => "\e[1;37m", - "yarn" => "\e[0;34m", + "yarn" => "\e[0;34m" }.freeze def tool_icon(tool)