1. 29 Sep, 2019 1 commit
  2. 28 Sep, 2019 1 commit
  3. 27 Sep, 2019 1 commit
  4. 26 Sep, 2019 1 commit
  5. 16 Sep, 2019 1 commit
  6. 03 Sep, 2019 5 commits
  7. 02 Sep, 2019 2 commits
  8. 08 Aug, 2019 1 commit
  9. 06 Aug, 2019 1 commit
  10. 16 Jul, 2019 3 commits
  11. 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.
  12. 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.
  13. 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(...)`.
  14. 16 Jun, 2019 2 commits
  15. 23 May, 2019 1 commit
  16. 08 May, 2019 1 commit
  17. 28 Apr, 2019 2 commits
  18. 22 Apr, 2019 2 commits
  19. 18 Apr, 2019 1 commit
  20. 08 Apr, 2019 2 commits
  21. 15 Feb, 2019 2 commits
  22. 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)
  23. 25 Jan, 2019 1 commit
  24. 22 Jan, 2019 1 commit
  25. 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.
  26. 06 Sep, 2018 3 commits