A web application to help check for domain or SSL/TLS certificate expirations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
1.4 KiB

  1. # A sample Guardfile
  2. # More info at https://github.com/guard/guard#readme
  3. ## Uncomment and set this to only include directories you want to watch
  4. # directories %w(app lib config test spec features) \
  5. # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
  6. ## Note: if you are using the `directories` clause above and you are not
  7. ## watching the project directory ('.'), then you will want to move
  8. ## the Guardfile to a watched dir and symlink it back, e.g.
  9. #
  10. # $ mkdir config
  11. # $ mv Guardfile config/
  12. # $ ln -s config/Guardfile .
  13. #
  14. # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
  15. guard "minitest", spring: "bin/rails test" do
  16. # Rails 5
  17. watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
  18. watch(%r{^app/controllers/application_controller\.rb$}) { "test/controllers" }
  19. watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
  20. watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
  21. watch(%r{^app/services/notifier/.+\.rb}) { |_m| "test/services/notifier" }
  22. watch(%r{^app/services/whois/.+\.rb}) { |_m| "test/services/whois" }
  23. watch(%r{^app/services/ssl/.+\.rb}) { |_m| "test/services/ssl" }
  24. watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
  25. watch(%r{^test/.+_test\.rb$})
  26. watch(%r{^test/test_helper\.rb$}) { "test" }
  27. watch(%r{^test/fixtures/.+\.yml$}) { "test" }
  28. watch(%r{^test/factories/.+\.rb$}) { "test" }
  29. end