fail_fast 0.1.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/CHANGELOG.txt +5 -0
  2. data/README.markdown +109 -49
  3. data/VERSION +1 -1
  4. data/fail_fast.gemspec +36 -24
  5. data/lib/fail_fast/base/base.rb +44 -0
  6. data/lib/fail_fast/base/utils.rb +58 -0
  7. data/lib/fail_fast/base/z_only_for_tests.rb +10 -0
  8. data/lib/fail_fast/{misc.rb → extensions/base_commands.rb} +3 -3
  9. data/lib/fail_fast/{check_active_record_db.rb → extensions/check_active_record_db.rb} +17 -52
  10. data/lib/fail_fast/{check_email.rb → extensions/check_email.rb} +1 -1
  11. data/lib/fail_fast/{check_file_system.rb → extensions/check_file_system.rb} +4 -4
  12. data/lib/fail_fast/{check_mongo_db.rb → extensions/check_mongo_db.rb} +4 -4
  13. data/lib/fail_fast/{check_url.rb → extensions/check_url.rb} +2 -2
  14. data/lib/fail_fast/extensions/check_value.rb +40 -0
  15. data/lib/fail_fast/main.rb +16 -71
  16. data/lib/fail_fast/report.txt.erb +45 -6
  17. data/lib/fail_fast/support/error_db.rb +23 -0
  18. data/lib/fail_fast/support/error_details.rb +10 -0
  19. data/lib/fail_fast/support/z_only_for_tests.rb +6 -0
  20. data/lib/fail_fast.rb +6 -10
  21. data/show_all_errors.rb +12 -1
  22. data/spec/errors_storage_spec.rb +18 -0
  23. data/spec/file_is_empty_spec.rb +32 -4
  24. data/spec/file_is_missing_spec.rb +5 -3
  25. data/spec/multiple_blocks_support_spec.rb +37 -0
  26. data/spec/report_printing_spec.rb +29 -0
  27. data/spec/spec_helper.rb +44 -18
  28. metadata +37 -25
  29. data/lib/fail_fast/check_value.rb +0 -38
  30. /data/spec/{misc_spec.rb → base_commands_spec.rb} +0 -0
  31. /data/spec/{has_active_record_db_spec.rb → check_active_record_db_spec.rb} +0 -0
  32. /data/spec/{has_email_for_spec.rb → check_email_spec.rb} +0 -0
  33. /data/spec/{file_system_spec.rb → check_file_system_spec.rb} +0 -0
  34. /data/spec/{has_mongoDB_for_spec.rb → check_mongo_db_spec.rb} +0 -0
  35. /data/spec/{has_url_for_spec.rb → check_url_spec.rb} +0 -0
  36. /data/spec/{has_value_for_spec.rb → check_value_spec.rb} +0 -0
File without changes