From 5f14b6e637ca833e32d7dfa1426d78ac502bf50e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 28 Mar 2014 13:08:46 -0400 Subject: [PATCH] Rename prerelease to pre_release. --- library/packaging/gem | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/packaging/gem b/library/packaging/gem index 643f38d8db..0d1a157a1f 100644 --- a/library/packaging/gem +++ b/library/packaging/gem @@ -67,9 +67,9 @@ options: description: - Version of the gem to be installed/removed. required: false - prerelease: + pre_release: description: - - Allow installation of prerelease versions of the gem. + - Allow installation of pre-release versions of the gem. required: false default: "no" version_added: "1.6" @@ -180,7 +180,7 @@ def install(module): cmd.append('--user-install') else: cmd.append('--no-user-install') - if module.params['prerelease']: + if module.params['pre_release']: cmd.append('--pre') cmd.append('--no-rdoc') cmd.append('--no-ri') @@ -198,7 +198,7 @@ def main(): repository = dict(required=False, aliases=['source'], type='str'), state = dict(required=False, default='present', choices=['present','absent','latest'], type='str'), user_install = dict(required=False, default=True, type='bool'), - prerelease = dict(required=False, default=False, type='bool'), + pre_release = dict(required=False, default=False, type='bool'), version = dict(required=False, type='str'), ), supports_check_mode = True,