From c43d32d31e38de8e0b12eda2e7f924b5010785b7 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Wed, 19 Oct 2011 17:06:07 +0300 Subject: [PATCH] Categories#parse now includes validation. Simpler api to call from main app.rb --- lib/jsduck/app.rb | 1 - lib/jsduck/categories.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jsduck/app.rb b/lib/jsduck/app.rb index df848c9a..abbbe384 100644 --- a/lib/jsduck/app.rb +++ b/lib/jsduck/app.rb @@ -73,7 +73,6 @@ module JsDuck @categories = Categories.new(get_doc_formatter, @relations) if @opts.categories_path @categories.parse(@opts.categories_path) - @categories.validate else @categories.auto_generate end diff --git a/lib/jsduck/categories.rb b/lib/jsduck/categories.rb index ee35621b..61d48347 100644 --- a/lib/jsduck/categories.rb +++ b/lib/jsduck/categories.rb @@ -35,6 +35,8 @@ module JsDuck end.flatten end end + + validate end # Expands class name like 'Foo.*' into multiple class names. -- GitLab