discourse: Filter out :require_name option when creating the Gemfile

:require_name is internal to Discourse and Bundler throws an error
when it's passed through to the Gemfile.
This commit is contained in:
talyz
2022-08-12 12:21:05 +02:00
parent 7feea0d062
commit f34bc06abc
@@ -407,6 +407,7 @@ def update_plugins():
gemfile_text = ''
for line in repo.get_file('plugin.rb', rev).splitlines():
if 'gem ' in line:
line = ','.join(filter(lambda x: ":require_name" not in x, line.split(',')))
gemfile_text = gemfile_text + line + os.linesep
version_file_match = version_file_regex.match(line)