1. 09 Nov, 2019 1 commit
  2. 02 Oct, 2019 1 commit
  3. 28 Sep, 2019 1 commit
  4. 26 Sep, 2019 1 commit
  5. 03 Sep, 2019 1 commit
    • Make it possible to annotate models and routes together (#647) · 846c7f8e
      Andrew W. Lee authored
      Prior to this change, `Annotate.include_models?` returned the inverse of `Annotate.include_routes?`. This made it so annotating models and routes was not possible to do together.
      
      This PR adds an explicit `--models` flag and also adds it the option to `lib/generators/annotate/templates/auto_annotate_models.rake` with the default being set to `false`. 
      
      Fixes #563 and undoes the bug introduced in #485.
  6. 02 Sep, 2019 1 commit
    • Tidy spec directory (#646) · 2775001d
      Andrew W. Lee authored
      In looking into #563, I realized there are gaps in test coverage. For example, `bin/annotate` doesn't have any tests. 
      
      Tidying the spec directory to make it easier to add tests in future work.
  7. 06 Aug, 2019 1 commit
  8. 16 Jul, 2019 1 commit
    • Refactor Parser (#641) · f8f1b178
      Andrew W. Lee authored
      Refactored Parser to isolate changes being made to ENV. This way we have an intermediate step where we know the environment variables being set.
  9. 10 Jul, 2019 1 commit
    • Add option for additional file patterns (#633) · f95913ba
      Ryan authored
      This PR adds an option named `additional_file_patterns`.  You can specify custom path patterns (including globs) that the gem will use to annotate.
      
      For example, I used it like this on a project:
      
      ```ruby
      Annotate.set_defaults(
            'additional_file_patterns' => [
              File.join(Rails.application.root, 'app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb'),
              File.join(Rails.application.root, 'spec/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb')
            ],
            ...
      )
      ```
      
      This makes it possible to have files nested under a directory which corresponds to the model.
      
      I believe this fixes #594.
  10. 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.
  11. 01 Jul, 2019 1 commit
    • Fix BigDecimal.new (#634) · 46d2d63f
      ねず authored
      `BigDecimal.new` is deprecated in future version of Ruby in favor of using `BigDecimal(...)`.
  12. 23 May, 2019 1 commit
  13. 18 Apr, 2019 1 commit
  14. 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
      ```
  15. 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)
  16. 22 Jan, 2019 1 commit
  17. 09 Sep, 2018 1 commit
    • Fix alignment of multi-byte fullwidth character comments (#575) · 26142667
      oieioi authored
      This fixes alignment of Japanese, Korean and Chinese fullwidth character comments.
      
      The displayed widths of multi-byte fullwidth characters are generally
      twice as large as the ASCII characters, but String#size returns only the number of characters.
      So if the column comment contains fullwidth multibyte characters, the alignment is broken.
  18. 28 Aug, 2018 1 commit
  19. 23 Feb, 2018 1 commit
  20. 04 Dec, 2017 1 commit
  21. 01 Nov, 2017 1 commit
  22. 20 Oct, 2017 1 commit
  23. 18 Oct, 2017 3 commits
  24. 13 Oct, 2017 1 commit
  25. 11 Oct, 2017 1 commit
  26. 03 Oct, 2017 1 commit
  27. 27 Jul, 2017 1 commit
  28. 25 Jul, 2017 3 commits
  29. 12 Jul, 2017 1 commit
  30. 03 Jul, 2017 1 commit
  31. 02 Jul, 2017 1 commit
  32. 06 Jun, 2017 1 commit
  33. 02 Jun, 2017 2 commits
  34. 01 May, 2017 1 commit
  35. 02 Feb, 2017 1 commit