Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#3849

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.

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Lucas Efe
    Lucas Efe
    • Tag set to rails 3.0 generators

    Looks like I forgot to include the diff file.

    February 4th, 2010 @ 02:31 PM

  2. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to resolved
    • Importance changed from to Low

    This is no longer an issue. It must have been fixed along the way.

    October 7th, 2010 @ 11:28 AM