lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.0.0 vs lib/nanoc/cli/commands/show-plugins.rb in nanoc-4.0.1
- old
+ new
@@ -15,11 +15,11 @@
end
# Get list of plugins (before and after)
plugins_before = Nanoc::Int::PluginRegistry.instance.all
site.code_snippets if site
- plugins_after = Nanoc::Int::PluginRegistry.instance.all
+ plugins_after = Nanoc::Int::PluginRegistry.instance.all
# Divide list of plugins into builtin and custom
plugins_builtin = plugins_before
plugins_custom = plugins_after - plugins_before
@@ -30,10 +30,10 @@
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}:"