From 375075dd0edab3b6c878a12d3b6b8bcebd167e19 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Tue, 27 Sep 2011 17:19:49 +0300 Subject: [PATCH] Remove extra one-element hash from categories JSON. The categories JSON file must now just contain an array, just like the JSON files for videos, guides and examples do. Simplicity FTW! --- lib/jsduck/categories.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsduck/categories.rb b/lib/jsduck/categories.rb index 690d1f63..a55604d9 100644 --- a/lib/jsduck/categories.rb +++ b/lib/jsduck/categories.rb @@ -13,7 +13,7 @@ module JsDuck # Parses categories in JSON file def parse(path) - @categories = JsonDuck.read(path)["categories"] + @categories = JsonDuck.read(path) # Perform expansion on all class names containing * wildcard @categories.each do |cat| -- GitLab