lib/coconductor/commands/detect.rb in coconductor-0.9.4 vs lib/coconductor/commands/detect.rb in coconductor-0.10.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + class CoconductorCLI < Thor desc 'detect [PATH]', 'Detect the code of conduct of the given project', default: Dir.pwd option :confidence, type: :numeric, default: Coconductor.confidence_threshold, desc: 'Confidence threshold' option :diff, type: :boolean, desc: 'Compare the code of conduct to the closest match' option :code_of_conduct, type: :string, desc: 'The key of the code of conduct to compare (implies --diff)' @@ -55,10 +57,10 @@ when :matcher value.class when :confidence Licensee::ContentHelper.format_percent(value) when :method - value.to_s.tr('_', ' ').capitalize + ':' + "#{value.to_s.tr('_', ' ').capitalize}:" else value end end end