lib/bently/recipe/gitignore-rails.rb in bently-0.1.0 vs lib/bently/recipe/gitignore-rails.rb in bently-1.0.0

- old
+ new

@@ -1,51 +1,35 @@ module Bently class GitignoreRails < Recipe - step :touch_gitignore + homepage 'https://github.com/github/gitignore/blob/master/Rails.gitignore' - protected - - def touch_gitignore - touch :file => '.gitignore', :with => gitignore + def initialize + append '.gitignore', gitignore end - def gitignore -%{ -# Configuration files -config/initializers/secret_token.rb -config/database.yml + protected -# Generated files -log/* -coverage/* - -#Documentation -.yardoc/ -doc/ - -# Uploaded files and local files -public/uploads/* -public/assets/* -tmp/**/* -tmp/* -*.sqlite3 -.env - -# Temporary files of every sort -.sass-cache/* -.DS_Store -.idea + def gitignore +%{*.rbc +*.sassc +.sass-cache +capybara-*.html +.rspec .rvmrc -*.swap -*.swo -*.swp -*~ -*# -nbproject -dump.rdb -} +/.bundle +/vendor/bundle +/log/* +/tmp/* +/db/*.sqlite3 +/public/system/* +/coverage/ +/spec/tmp/* +**.orig +rerun.txt +pickle-email-*.html +.project} end end end