lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.0.0b4 vs lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.0.0rc1

- old
+ new

@@ -30,11 +30,11 @@ max_identifiers_length = plugin_with_longest_identifiers[:identifiers].join(', ').size PLUGIN_CLASS_ORDER.each do |superclass| plugins_with_this_superclass = { builtin: plugins_builtin.select { |p| p[:superclass] == superclass }, - custom: plugins_custom.select { |p| p[:superclass] == superclass } + custom: plugins_custom.select { |p| p[:superclass] == superclass }, } # Print kind kind = name_for_plugin_class(superclass) puts "#{kind}:" @@ -56,11 +56,11 @@ relevant_plugins.sort_by { |k| k[:identifiers].join(', ') }.each do |plugin| # Display puts format( " %-#{max_identifiers_length}s (%s)", plugin[:identifiers].join(', '), - plugin[:class].to_s.sub(/^::/, '') + plugin[:class].to_s.sub(/^::/, ''), ) end end puts @@ -70,16 +70,16 @@ private PLUGIN_CLASS_ORDER = [ Nanoc::Filter, Nanoc::DataSource, - Nanoc::Extra::Deployer + Nanoc::Extra::Deployer, ] unless defined? PLUGIN_CLASS_ORDER PLUGIN_CLASSES = { Nanoc::Filter => 'Filters', Nanoc::DataSource => 'Data Sources', - Nanoc::Extra::Deployer => 'Deployers' + Nanoc::Extra::Deployer => 'Deployers', } unless defined? PLUGIN_CLASSES def name_for_plugin_class(klass) PLUGIN_CLASSES[klass] end