This project is archived and is in readonly mode.

#3849 ✓resolved
Lucas Efe

[PATCH] Fixed missing newline characters after gem and add_source generator actions

Reported by Lucas Efe | February 4th, 2010 @ 02:30 PM

A generator that uses the "gem" or "add_source" actions, when executed, it generates the Gemfile wrong. It concatenate the lines, without adding the newline character at the end of the line.

You get something like this:

# Gemfile
gem "rake",  ">= 0.8.7"gem "mocha", ">= 0.9.8"

instead of

# Gemfile
gem "rake",  ">= 0.8.7"
gem "mocha", ">= 0.9.8"

Same happens if you use add_source.

This patch fixes this issue.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages