Browse files

Add missing newlines to end of files

This causes GitHub to show a warning in the diff. A newline is added by
default when using Vim, so the file would be changed by simply opening
the file and saving. Neither are ideal.

Hat tip @salbertson
  • Loading branch information...
1 parent 11f4401 commit 258105dc59bd3467594bdc7f1c3c51076e553013 @croaky croaky committed Jul 14, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/suspenders/app_builder.rb
  2. +1 −1 templates/disable_xml_params.rb
View
4 lib/suspenders/app_builder.rb
@@ -196,7 +196,7 @@ def generate_rspec
def configure_capybara_webkit
append_file 'spec/spec_helper.rb' do
- "\nCapybara.javascript_driver = :webkit"
+ "\nCapybara.javascript_driver = :webkit\n"
end
end
@@ -292,7 +292,7 @@ def disable_xml_params
def setup_default_rake_task
append_file 'Rakefile' do
- "task(:default).clear\ntask :default => [:spec]"
+ "task(:default).clear\ntask :default => [:spec]\n"
end
end
View
2 templates/disable_xml_params.rb
@@ -1,3 +1,3 @@
# Protect against injection attacks
# http://www.kb.cert.org/vuls/id/380039
-ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)
+ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)

0 comments on commit 258105d

Please sign in to comment.