1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/packaging/language
patchback[bot] d4633cfcd5
gem: Fix get_installed_versions: correctly parse "default" version. (#783) (#918)
* Fix get_installed_versions: correctly parse "default" version.

gem query output of

    bundler (default: 2.1.4, 1.17.2)

Gets parsed as:

    ['default:', '1.17.2']

Fix this by skipping "default: " if present in the list of versions - by adding
it as an optional part of the regex, grouped as a non-capturing group to keep
the index of existing group.

This now correctly parses the above input as

    ['2.1.4:', '1.17.2']

Fixes #782

* Fix gem get_installed_versions (cont): add changelog fragment

* Update changelogs/fragments/783-fix-gem-installed-versions.yaml as per suggestion

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6dc98c08fd)

Co-authored-by: Vlad Mencl <vladimir.mencl@reannz.co.nz>
2020-09-17 20:01:58 +02:00
..
bower.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
bundler.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
composer.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
cpanm.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
easy_install.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
gem.py gem: Fix get_installed_versions: correctly parse "default" version. (#783) (#918) 2020-09-17 20:01:58 +02:00
maven_artifact.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
npm.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
pear.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
pip_package_info.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
yarn.py yarn: Fix handling of empty outdated & scoped packages (#474) 2020-07-23 10:19:32 +03:00