lib/jekyll-feed/generator.rb in jekyll-feed-0.15.1 vs lib/jekyll-feed/generator.rb in jekyll-feed-0.16.0

- old
+ new

@@ -52,12 +52,13 @@ # Returns a hash representing all collections to be processed and their metadata # in the form of { collection_name => { categories = [...], path = "..." } } def collections return @collections if defined?(@collections) - @collections = if config["collections"].is_a?(Array) + @collections = case config["collections"] + when Array config["collections"].map { |c| [c, {}] }.to_h - elsif config["collections"].is_a?(Hash) + when Hash config["collections"] else {} end