From a3326cd1c0584238bc96e1257795cc5bd617b58f Mon Sep 17 00:00:00 2001 From: Aaron Van Bokhoven Date: Mon, 8 Feb 2016 11:51:25 -1000 Subject: [PATCH] Fix Bootstrap Sass Append to Gemfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the gemfile does not have an empty line at the end, append_to_file will append ‘gem bootstrap-sass’ to the last line. - Added a line break to the beginning of ‘gem bootstrap-sass’ to ensure it’s on a new line. --- lib/generators/react_on_rails/bootstrap_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/react_on_rails/bootstrap_generator.rb b/lib/generators/react_on_rails/bootstrap_generator.rb index fc7066c98..0c343b89f 100644 --- a/lib/generators/react_on_rails/bootstrap_generator.rb +++ b/lib/generators/react_on_rails/bootstrap_generator.rb @@ -62,7 +62,7 @@ def strip_application_scss_of_incompatible_sprockets_statements end def add_bootstrap_sprockets_to_gemfile - append_to_file("Gemfile", "gem 'bootstrap-sass'\n") + append_to_file("Gemfile", "\ngem 'bootstrap-sass'\n") end def add_bootstrap_sprockets_to_application_js