lib/jazzy/config.rb in jazzy-0.8.4 vs lib/jazzy/config.rb in jazzy-0.9.0

- old
+ new

@@ -209,10 +209,12 @@ description: 'Glob that matches available abstracts for categories', parse: ->(ag) { Pathname.glob(ag) } config_attr :podspec, command_line: '--podspec FILEPATH', + description: 'A CocoaPods Podspec that describes the Swift library to '\ + 'document', parse: ->(ps) { PodspecDocumenter.create_podspec(Pathname(ps)) if ps }, default: Dir['*.podspec{,.json}'].first config_attr :docset_icon, command_line: '--docset-icon FILEPATH', @@ -295,11 +297,11 @@ description: "Which theme to use. Specify either 'apple' (default), "\ "'fullwidth' or the path to your mustache templates and " \ 'other assets for a custom theme.', default: 'apple', parse: ->(t) do - if t == 'apple' || t == 'fullwidth' + if %w[apple fullwidth].include?(t) Pathname(__FILE__).parent + 'themes' + t else expand_path(t) end end @@ -323,14 +325,9 @@ command_line: '--assets-directory DIRPATH', description: 'DEPRECATED: Use --theme instead.', parse: ->(_) do raise '--assets-directory is deprecated: use --theme instead.' end - - config_attr :download_badge, - command_line: '--[no-]download-badge', - description: 'Download documentation coverage badge from shields.io.', - default: true # rubocop:enable Style/AlignParameters def initialize self.class.all_config_attrs.each do |attr|