1. 01 Feb, 2020 1 commit
    • Fix bin/annotate NoMethodError (#745) · e296d00a
      Andrew W. Lee authored
      Helper methods were moved into Annotate::Helpers but instances in bin/annotate had not been updated. Because of this, bin/annotate would throw NoMethodError.
  2. 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.
  3. 18 Apr, 2019 1 commit
  4. 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
      ```
  5. 15 Oct, 2017 1 commit
  6. 13 Oct, 2017 1 commit
  7. 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`
  8. 09 Jun, 2017 1 commit
  9. 17 Dec, 2016 1 commit
  10. 15 Dec, 2016 1 commit
  11. 29 Jul, 2016 2 commits
  12. 25 Jan, 2016 1 commit
  13. 19 Jan, 2016 1 commit
  14. 11 Jan, 2016 1 commit
  15. 30 Dec, 2015 2 commits
  16. 27 Dec, 2015 1 commit
  17. 30 Nov, 2015 1 commit
  18. 10 Apr, 2015 1 commit
  19. 27 Mar, 2015 1 commit
  20. 02 Mar, 2015 1 commit
  21. 15 Jan, 2015 1 commit
  22. 13 Jan, 2015 1 commit
  23. 03 Jan, 2015 1 commit
  24. 25 Nov, 2014 1 commit
  25. 26 May, 2014 1 commit
  26. 03 Apr, 2014 1 commit
  27. 26 Feb, 2014 2 commits
  28. 02 Jan, 2014 1 commit
  29. 04 Dec, 2013 1 commit
  30. 24 Sep, 2013 1 commit
  31. 27 Aug, 2012 1 commit
  32. 22 Aug, 2012 5 commits
  33. 26 Jul, 2012 1 commit