Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Dan Croak committed Jul 15, 2013
1 parent 11f4401 commit 258105d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/suspenders/app_builder.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion 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.