1. 16 Jan, 2020 4 commits
  2. 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.
  3. 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.
  4. 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.
  5. 18 Dec, 2019 5 commits
    • Replace soft-deprecated constant `HashWithIndifferentAccess` to… · a05e4586
      naari3 authored
      Replace soft-deprecated constant `HashWithIndifferentAccess` to `ActiveSupport::HashWithIndifferentAccess` (#699)
      
    • Delete TODO.md (#700) · a91b65bf
      Andrew W. Lee authored
      Removing `TODO.md` as prior to renaming it hasn't been touched in 5 years. 
      
      See https://github.com/ctran/annotate_models/commits/v3.0.3/TODO.rdoc
    • Tidy README (#701) · a631f5ad
      Andrew W. Lee authored
      * Fix instances of `additional file patterns` in README
      
      Other CLI flags are using dash, so using `--additional-file-patterns` notation to keep it similar to others.
      
      * Tidy: Replace `*` with `*`
      
      Doing some tidying now that we switched from RDoc to markdown.
    • [Fix #430] Handle columns from activerecord-postgis-adapter (#694) · c13fe49c
      inkstak authored
      Same problem returned by @janosrusiczki in #430
      
      Spatial columns with activerecord-postgis-adapter (5.2.2) are not displayed nice
      
      ```
      # name           :string(3)
      # active         :boolean          default(FALSE), not null
      # geom           :geometry({:srid= geometry, 4326
      ```
      
      That's come from activerecord-postgis-adapter, with redefined columns as such :
      
      ``` 
      #<ActiveRecord::ConnectionAdapters::PostGIS::SpatialColumn 
        @sql_type="geometry(Geometry,4326)",
        @geo_type="Geometry",
        @geometric_type=RGeo::Feature::Geometry,
        @srid=4326,
        @limit={:srid=>4326, :type=>"geometry"}
        [...]
      >
      ```
      
      This fix displays them like this :
      
      ```
      # name           :string(3)
      # active         :boolean          default(FALSE), not null
      # geometry       :geometry         geometry, 4326
      ```
      
      Another possibility would have been to display them as below, but it involves a lot of extra-spaces for other columns.
      
      ```
      # name           :string(3)
      # active         :boolean                   default(FALSE), not null
      # geometry       :geometry(Geometry, 4326)
      ```
  6. 17 Dec, 2019 2 commits
  7. 02 Dec, 2019 3 commits
  8. 09 Nov, 2019 9 commits
  9. 31 Oct, 2019 1 commit
  10. 06 Oct, 2019 1 commit
  11. 05 Oct, 2019 4 commits
  12. 03 Oct, 2019 1 commit
  13. 02 Oct, 2019 2 commits
  14. 01 Oct, 2019 1 commit
  15. 30 Sep, 2019 1 commit