Remove guard and related gems/files

trunk
Matt Brictson 3 years ago
parent 0bc4057ade
commit c0a79759aa
No known key found for this signature in database
GPG Key ID: 2F279EAD1F2ACFAF

@ -34,16 +34,12 @@ end
group :development do
gem "amazing_print"
gem "annotate"
gem "guard", require: false
gem "guard-minitest", require: false
gem "letter_opener"
gem "listen"<%= gemfile_requirement("listen") %>
gem "spring"
<% if gemfile_requirement("spring-watcher-listen") -%>
gem "spring-watcher-listen"<%= gemfile_requirement("spring-watcher-listen") %>
<% end -%>
gem "terminal-notifier", require: false
gem "terminal-notifier-guard", require: false
gem "web-console"<%= gemfile_requirement("web-console") %>
end

@ -1,14 +0,0 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :minitest, spring: "bin/rails test" do
watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^app/controllers/application_controller\.rb$}) { "test/controllers" }
watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
watch(%r{^lib/(.+)\.rb$}) { |m| "test/unit/lib/#{m[1]}_test.rb" }
watch(%r{^lib/tasks/(.+)\.rake$}) { |m| "test/unit/lib/tasks/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})
watch(%r{^test/test_helper\.rb$}) { "test" }
watch(%r{^test/support/.+\.rb}) { "test" }
end

@ -82,7 +82,6 @@ The template will perform the following steps:
* [annotate][] auto-generates schema documentation
* [autoprefixer-rails][] automates cross-browser CSS compatibility
* [amazing_print][] try `ap` instead of `puts`
* [guard][] runs tests as you develop; mandatory for effective TDD
* [rubocop][] enforces Ruby code style
* Security
* [brakeman][] and [bundler-audit][] detect security vulnerabilities
@ -114,7 +113,6 @@ Rails generators are very lightly documented; what youll find is that most of
[annotate]:https://github.com/ctran/annotate_models
[autoprefixer-rails]:https://github.com/ai/autoprefixer-rails
[amazing_print]:https://github.com/amazing-print/amazing_print
[guard]:https://github.com/guard/guard
[rubocop]:https://github.com/bbatsov/rubocop
[Postmark]:http://postmarkapp.com
[postmark-rails]:http://www.rubydoc.info/gems/postmark-rails/0.12.0

@ -26,7 +26,6 @@ def apply_template!
copy_file "overcommit.yml", ".overcommit.yml"
template "ruby-version.tt", ".ruby-version", force: true
copy_file "Guardfile"
copy_file "Procfile"
apply "Rakefile.rb"
@ -47,7 +46,7 @@ def apply_template!
create_database_and_initial_migration
run_with_clean_bundler_env "bin/setup"
binstubs = %w[brakeman bundler bundler-audit guard rubocop sidekiq terminal-notifier]
binstubs = %w[brakeman bundler bundler-audit rubocop sidekiq]
run_with_clean_bundler_env "bundle binstubs #{binstubs.join(' ')} --force"
template "rubocop.yml.tt", ".rubocop.yml"

Loading…
Cancel
Save