Adding version detection

This commit is contained in:
Austin Brown 2015-06-29 23:13:29 -07:00
parent 3c72e87152
commit bb816f046c

View file

@ -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'] ])