1. 08 Apr, 2019 1 commit
    • Add frozen option for CI environment (#603) · fe172282
      Daisuke Yokomoto authored
      Add --frozen option to abort instead of write annotation.
      This is mainly for CI environment to detect missing annotation.
      Similar motivation with bundle install --frozen.
      
      works like:
      ```
      $ rake db:migrate frozen=yes
      
      annotate error. spec/models/user_spec.rb needs to be updated, but annotate was run with `--frozen
      ```
  2. 15 Feb, 2019 2 commits
  3. 14 Feb, 2019 1 commit
    • Refactor hooking ActiveRecord migration tasks (#588) · dc827279
      Yuichi Tanikawa authored
      - Use Rake::Task#enhance insteaad of defining same tasks again
      - Remove hooking db:migrate:change task which doesn't exist
      - Fix hooking db:migrate:reset task so that the annotation runs after
        all migration tasks (#548)
  4. 10 May, 2018 1 commit
  5. 13 Oct, 2017 1 commit
  6. 25 Jul, 2017 1 commit
  7. 02 Jun, 2017 1 commit
  8. 30 May, 2017 1 commit
  9. 05 Mar, 2017 1 commit
    • Prevent root_dir option from being empty (#448) · 8341983f
      Emil Sågfors authored
      * Prevent root_dir option from being empty
      
      When setting root_dir to an empty string (as is done in the default rake
      task config) this line previously caused root_dir to become an empty
      array.
      
      This in turn caused factories, specs etc not to be annotated.
      
      This is just a quick band-aid on a larger problem. We have option
      parsing spread out over many different places, with slight mismatches
      like this in the assumptions made.
      
      * Handle blank values & comma-separated strings in AnnotateModels.root_dir
      
      These cases are currently handled (inconsistently) in the different
      option parsing routines.
      
      * Pass root_dir forward unmodified
      
      The different cases are now handled inside AnnotateModels
  10. 31 Jan, 2017 1 commit
  11. 10 May, 2016 1 commit
  12. 25 Jan, 2016 1 commit
  13. 19 Jan, 2016 1 commit
  14. 11 Jan, 2016 2 commits
  15. 27 Dec, 2015 1 commit
  16. 02 Dec, 2015 2 commits
  17. 30 Nov, 2015 2 commits
  18. 24 Nov, 2015 1 commit
  19. 23 Nov, 2015 1 commit
  20. 15 Nov, 2015 1 commit
  21. 14 Jul, 2015 1 commit
  22. 19 Jun, 2015 1 commit
  23. 17 Jun, 2015 1 commit
  24. 03 Jun, 2015 1 commit
  25. 10 Apr, 2015 1 commit
  26. 02 Mar, 2015 1 commit
  27. 15 Jan, 2015 1 commit
  28. 13 Jan, 2015 1 commit
  29. 08 Feb, 2014 1 commit
  30. 27 Aug, 2012 1 commit
  31. 22 Aug, 2012 4 commits
  32. 26 Jul, 2012 1 commit
  33. 09 Jun, 2012 1 commit
    • Revert "Changed to sort be default with an option to not sort." · 637499db
      Alex Chaffee authored
      This reverts commit 8d3c00c7.
      
      Sorry, but database order should be the default unless a user really wants it alphabetized. (We should also allow a .annotate file so users can set their own preferred options more easily.)
      
      Conflicts:
      
      	.gitignore
      	bin/annotate
      	lib/annotate/annotate_models.rb
      	lib/tasks/annotate_models.rake