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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user