Quotation mark for gems with options in Gemfile template:

Use the same quote (') for gems with extra options used by  AppGenerator
in the Gemfile template.
This commit is contained in:
Rodrigo Ramírez Norambuena 2020-03-13 02:10:00 -03:00
parent fba1064153
commit 695dc5f984
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ ruby <%= "'#{RUBY_VERSION}'" -%>
<%= gem.commented_out ? '# ' : '' %>gem '<%= gem.name %>'<%= %(, '#{gem.version}') if gem.version -%>
<% if gem.options.any? -%>
, <%= gem.options.map { |k,v|
"#{k}: #{v.inspect}" }.join(', ') %>
"#{k}: #{v.inspect.gsub('"', '\'')}" }.join(', ') %>
<% end -%>
<% end -%>