Files
community.general/plugins/modules
Vlad Mencl 6dc98c08fd gem: Fix get_installed_versions: correctly parse "default" version. (#783)
* 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>
2020-09-03 07:47:34 +02:00
..
2020-07-30 06:35:12 +00:00
2020-08-18 09:10:41 +02:00
2020-03-09 09:11:07 +00:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-10 21:01:16 +03:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-07-17 07:39:37 +03:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00
2020-08-11 17:54:41 +02:00
2020-06-26 09:17:51 +02:00
2020-08-18 09:10:41 +02:00
2020-06-26 09:17:51 +02:00
2020-06-26 09:17:51 +02:00