Adding version detection
This commit is contained in:
parent
3c72e87152
commit
bb816f046c
1 changed files with 6 additions and 2 deletions
|
@ -196,7 +196,11 @@ def install(module):
|
|||
if module.params['pre_release']:
|
||||
cmd.append('--pre')
|
||||
if not module.params['include_doc']:
|
||||
cmd.append('--no-document')
|
||||
if major and major < 2:
|
||||
cmd.append('--no-rdoc')
|
||||
cmd.append('--no-ri')
|
||||
else:
|
||||
cmd.append('--no-document')
|
||||
cmd.append(module.params['gem_source'])
|
||||
if module.params['build_flags']:
|
||||
cmd.extend([ '--', module.params['build_flags'] ])
|
||||
|
|
Loading…
Reference in a new issue