mirror of https://github.com/rails/rails
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:
parent
fba1064153
commit
695dc5f984
|
@ -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 -%>
|
||||
|
||||
|
|
Loading…
Reference in New Issue