ctran / annotate_models

Annotate Rails classes with schema and routes info
Other
4.42k stars 620 forks source link

Rails 8.0 Support #1032

Open andynu opened 2 weeks ago

andynu commented 2 weeks ago

The gem should work with Rails 8.0

Commands

gem install rails
rails new example
cd example
bundle add annotate --version '3.2.0'

Outcome:

Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because annotate >= 3.2.0 depends on activerecord >= 3.2, < 8.0
  and rails >= 8.0.0 depends on activerecord = 8.0.0,
  annotate >= 3.2.0 is incompatible with rails >= 8.0.0.
So, because Gemfile depends on rails ~> 8.0.0
  and Gemfile depends on annotate = 3.2.0,
  version solving has failed.

Version

davidrunger commented 2 weeks ago

PR: https://github.com/ctran/annotate_models/pull/1033

davidrunger commented 2 weeks ago

Per this thread, it seems like this gem might not be maintained anymore, and many people are moving to the fork https://github.com/drwl/annotaterb (annotaterb), which is already compatible with Rails 8.

Note, however, that the annotaterb fork is not an exact drop-in replacement. There are some changes in the syntax of the CLI command(s), and I found that many of the CLI options seem not to work for me, and instead I must specify the options that I want via a .annotaterb.yml config file, rather than via command line flags.

spaquet commented 2 weeks ago

@davidrunger thx for pointing this. The maintainer of this project should then put it in archive mode and let the community know where to go...

aitor commented 1 week ago

@spaquet Correct, I didn't know that this gem was abandonware. Please @ctran, @Adeynack, @n-rodriguez, @lovro-bikic can any of you confirm if that is the case so we can all move on?

n-rodriguez commented 1 week ago

@aitor Hi there! Actually I'm not a maintainer of annotate_model (only a contributor) but I've finally switched to https://github.com/drwl/annotaterb. It works and seems to be well maintained 👍 So feel free to move on it.

Adeynack commented 1 week ago

Dear @aitor : Same as @n-rodriguez: I contributed only 2 PRs here. I am not a maintainer. I learn right now of this, as you are posting those. 😮

Thanks @aitor for the suggestion. I will give it a look ASAP.