diff --git a/Gemfile b/Gemfile index 4b9d978d4..abbd3332f 100644 --- a/Gemfile +++ b/Gemfile @@ -207,7 +207,7 @@ group :production do end group :development do - gem 'annotaterb' + gem 'annotate' gem 'bullet' gem 'letter_opener' gem 'scss_lint', require: false diff --git a/Gemfile.lock b/Gemfile.lock index fa3a5e788..99e75b33c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -128,9 +128,9 @@ GEM selectize-rails (~> 0.6) ai-agents (0.4.3) ruby_llm (~> 1.3) - annotaterb (4.20.0) - activerecord (>= 6.0.0) - activesupport (>= 6.0.0) + annotate (3.2.0) + activerecord (>= 3.2, < 8.0) + rake (>= 10.4, < 14.0) ast (2.4.3) attr_extras (7.1.0) audited (5.4.1) @@ -992,7 +992,7 @@ DEPENDENCIES administrate-field-active_storage (>= 1.0.3) administrate-field-belongs_to_search (>= 0.9.0) ai-agents (>= 0.4.3) - annotaterb + annotate attr_extras audited (~> 5.4, >= 5.4.1) aws-sdk-s3 diff --git a/lib/tasks/auto_annotate_models.rake b/lib/tasks/auto_annotate_models.rake index 9dcd13126..8a89739b6 100644 --- a/lib/tasks/auto_annotate_models.rake +++ b/lib/tasks/auto_annotate_models.rake @@ -2,14 +2,11 @@ # NOTE: are sensitive to local FS writes, and besides -- it's just not proper # NOTE: to have a dev-mode tool do its thing in production. if Rails.env.development? - require 'annotate_rb' - - AnnotateRb::Core.load_rake_tasks - + require 'annotate' task :set_annotation_options do # You can override any of these by setting an environment variable of the # same name. - AnnotateRb::Options.set_defaults( + Annotate.set_defaults( 'additional_file_patterns' => [], 'routes' => 'false', 'models' => 'true', @@ -58,4 +55,6 @@ if Rails.env.development? 'with_comment' => 'true' ) end + + Annotate.load_tasks end