Commit f16f6e1e authored by Fabio Pelosin's avatar Fabio Pelosin

[#197] Check options only with a single hash for quoting

parent 0dc35613
...@@ -55,26 +55,28 @@ module Pod ...@@ -55,26 +55,28 @@ module Pod
end end
def appledoc_options def appledoc_options
options = ['--project-name', name, options = [
'--docset-desc', description, '--project-name', name,
'--project-company', company, '--docset-desc', description,
'--docset-copyright', copyright, '--project-company', company,
'--company-id', docs_id, '--docset-copyright', copyright,
'--ignore', '.m', '--company-id', docs_id,
'--keep-undocumented-objects', '--ignore', '.m',
'--keep-undocumented-members'] '--keep-undocumented-objects',
'--keep-undocumented-members',
'--keep-intermediate-files'
]
index = index_file index = index_file
options += ['--index-desc', index] if index options += ['--index-desc', index] if index
options += spec_appledoc_options options += spec_appledoc_options
options += ['--output', @target_path.to_s]
options += ['--keep-intermediate-files']
end end
def generate(install = false) def generate(install = false)
options = appledoc_options options = appledoc_options
options += ['--output', @target_path.to_s]
options += install ? ['--create-docset'] : ['--no-create-docset'] options += install ? ['--create-docset'] : ['--no-create-docset']
options += files options += files
options.map!{|s| s !~ /--.*|".*"/ ? %Q["#{s}"] : s } options.map!{|s| s !~ /-.*|".*"/ ? %Q["#{s}"] : s }
@target_path.mkpath @target_path.mkpath
@pod.chdir do @pod.chdir do
appledoc options.join(' ') appledoc options.join(' ')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment