1. 07 Jul, 2019 1 commit
    • Add tests for the CLI (#635) · f612f8ad
      Andrew W. Lee authored
      Currently there's no test coverage on CLI. This adds tests for a new class Parser which will replace the command line options currently in bin/annotate.
      
      The technical direction I'm planning to go is to remove ENV variables completely and to have things passed into as arguments. Will be adding deprecation warnings in 3.0 and then deprecate ENV variables completely in 3.1. Deprecation warnings will be non-blocking in 3.0 when an ENV variable is set and an argument isn't passed in, and will becoming blocking in 3.1.
  2. 18 Apr, 2019 1 commit
  3. 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
      ```
  4. 15 Oct, 2017 1 commit
  5. 13 Oct, 2017 1 commit
  6. 12 Jul, 2017 1 commit
    • annotate --routes modifies only routes.rb (#485) · 5e3820b8
      Hitabis GmbH authored
      * annotate --routes modifies only routes.rb
      
      This change is a proposed solution to #357 and an alternative to the already proposed solution #361.
      In #361 it is needed to call `annotate --routes --ignore-models` to achieve the same as in this change with only `annotate --routes`.
      
      * Call eager_load only when models are included
      
      This to prevent activerecord model errors when using mongoid for example and calling `annotate --routes`
  7. 09 Jun, 2017 1 commit
  8. 17 Dec, 2016 1 commit
  9. 15 Dec, 2016 1 commit
  10. 29 Jul, 2016 2 commits
  11. 25 Jan, 2016 1 commit
  12. 19 Jan, 2016 1 commit
  13. 11 Jan, 2016 1 commit
  14. 30 Dec, 2015 2 commits
  15. 27 Dec, 2015 1 commit
  16. 30 Nov, 2015 1 commit
  17. 10 Apr, 2015 1 commit
  18. 27 Mar, 2015 1 commit
  19. 02 Mar, 2015 1 commit
  20. 15 Jan, 2015 1 commit
  21. 13 Jan, 2015 1 commit
  22. 03 Jan, 2015 1 commit
  23. 25 Nov, 2014 1 commit
  24. 26 May, 2014 1 commit
  25. 03 Apr, 2014 1 commit
  26. 26 Feb, 2014 2 commits
  27. 02 Jan, 2014 1 commit
  28. 04 Dec, 2013 1 commit
  29. 24 Sep, 2013 1 commit
  30. 27 Aug, 2012 1 commit
  31. 22 Aug, 2012 5 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