1. 13 Feb, 2020 2 commits
  2. 11 Feb, 2020 1 commit
    • Add integration tests to project (#747) · ec0b3b61
      Andrew W. Lee authored
      Adds integration tests to the project that's able to run in CI across different ruby versions.
      
      * Adds a Rails 5.2.4.1 app
      * Adds a Rails 6.0.2.1 app
      
      Fixes #733 
  3. 06 Feb, 2020 1 commit
  4. 04 Feb, 2020 2 commits
  5. 03 Feb, 2020 1 commit
  6. 01 Feb, 2020 3 commits
  7. 27 Jan, 2020 3 commits
  8. 26 Jan, 2020 3 commits
  9. 24 Jan, 2020 1 commit
    • Support YARD notation (#724) · 06255470
      tvallois authored
      The scope of this pull request is to allow annotate_models to generate models documentation using YARD. This is the first step, I'll add more features later.
  10. 22 Jan, 2020 1 commit
  11. 20 Jan, 2020 5 commits
  12. 19 Jan, 2020 4 commits
  13. 18 Jan, 2020 2 commits
    • Refactor AnnotateModels::Helpers (#723) · 1c5deb09
      Shu Fujita authored
      I refactored two methods in AnnotateModels::Helpers for readability.
    • Refactor AnnotateRoutes.routes_file_exist? (#716) · 9a8db1b7
      Shu Fujita authored
      I refactored `AnnotateRoutes.routes_exists?` and methods using this.
      The points are as follows.
      
      *   Removing `puts` in `AnnotateRoutes.routes_exists?`
      *   Using `File.exist?` instead of `File.exists?` because `File.exists?` is deprecated
      *   Renaming `AnnotateRoutes.routes_exists?` to `AnnotateRoutes.routes_file_exists?` in order to make the name of method more explanatory
  14. 16 Jan, 2020 4 commits
  15. 15 Jan, 2020 3 commits
    • Refactor AnnotateRoutes.header (#714) · da0adbdb
      Shu Fujita authored
      I refactored `AnnotateRoutes.header` for performance, and add `AnnotateRoutes.comment` to make code DRY.
    • Freeze constant AnnotateRoutes::HEADER_ROW (#713) · 3e3d6056
      Shu Fujita authored
      As the change log shows, I froze the constant `HEADER_ROW` in accordance with the normal Ruby style regulation.
    • Add constants MAGIC_COMMENT_MATCHER (#711) · 2213ece2
      Shu Fujita authored
      I added `AnnotateModels::MAGIC_COMMENT_MATCHER` and `AnnotateRoutes::MAGIC_COMMENT_MATCHER` instad of `AnnotateModels.magic_comment_matcher` and `AnnotateRoutes.magic_comment_matcher`.
      
      I think that they should be constants because the result of Regexp is always fixed.
  16. 06 Jan, 2020 2 commits
    • Rename method and variable of AnnotateRoutes for readability (#709) · ee88f0fd
      Shu Fujita authored
      Before I commited, the method `AnnotateRoutes.where_header_found` returned an array of `real_content` and `header_found_at`.
      
      I fixed the name of method and variable because they did not match.
      
      I renamed the method `real_content_and_header_position` and unified related variable names to `header_position`.
    • Add Dockerfile to project (#710) · d737e10f
      Andrew W. Lee authored
      The integration tests require RVM to run. Without them they can't run.
      
      Added Dockerfile to make it easier to run the project in an isolated environment.
  17. 30 Dec, 2019 1 commit
    • Refactor lib/annotate.rb (#707) · 3f0b6b32
      Andrew W. Lee authored
      This change converts .all_options into a constant and moves it into Annotate::Constants. It also changes usages of .all_options.
  18. 18 Dec, 2019 1 commit