lib/jazzy/config.rb in jazzy-0.13.2 vs lib/jazzy/config.rb in jazzy-0.13.3

- old
+ new

@@ -57,11 +57,11 @@ private def full_command_line_name long_option_names = command_line.map do |opt| - Regexp.last_match(1) if opt =~ %r{ + Regexp.last_match(1) if opt.to_s =~ %r{ ^-- # starts with double dash (?:\[no-\])? # optional prefix for booleans ([^\s]+) # long option name }x end @@ -287,10 +287,18 @@ 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 :pod_sources, + command_line: ['--pod-sources url1,url2,…urlN', Array], + description: 'A list of sources to find pod dependencies. Used only '\ + 'with --podspec when the podspec contains references to '\ + 'privately hosted pods. You must include the default pod '\ + 'source if public pods are also used.', + default: [] + config_attr :docset_icon, command_line: '--docset-icon FILEPATH', parse: ->(di) { expand_path(di) } config_attr :docset_path, @@ -318,9 +326,14 @@ config_attr :github_file_prefix, command_line: '--github-file-prefix PREFIX', description: 'GitHub URL file prefix of this project (e.g. '\ 'https://github.com/realm/realm-cocoa/tree/v0.87.1)' + + config_attr :docset_playground_url, + command_line: '--docset-playground-url URL', + description: 'URL of an interactive playground to demonstrate the '\ + 'framework, linked to from the docset.' # ──────── Doc generation options ──────── config_attr :disable_search, command_line: '--disable-search', description: ['Avoid generating a search index. '\