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

- old
+ new

@@ -148,22 +148,22 @@ description: 'The directory that contains the source to be documented', default: Pathname.pwd, parse: ->(sd) { expand_path(sd) } config_attr :excluded_files, - command_line: ['-e', '--exclude file1,file2,directory3,…fileN', Array], - description: 'Files/directories to be excluded from documentation. '\ + command_line: ['-e', '--exclude filepath1,filepath2,…filepathN', Array], + description: 'Source file pathnames to be excluded from documentation. '\ 'Supports wildcards.', default: [], parse: ->(files) do Array(files).map { |f| expand_path(f).to_s } end config_attr :swift_version, command_line: '--swift-version VERSION', default: nil, parse: ->(v) do - return nil if v.empty? + return nil if v.to_s.empty? raise 'jazzy only supports Swift 2.0 or later.' if v.to_f < 2 v end # ──────── Metadata ────────