Question About Railties, rails repo and rails gems
I am having a hard time understanding the rails repo. Active record, railties and all others(action view, etc) are in a monorepo. rails/rails.
They are all separate gems as well? Can someone explain this to me? Each action/active is a gem & available on rubygems.
Or is the rails repo /activerecord boilerplate to connect to the actual gem?
Tldr: what's the difference between activerecord gem and the folder that sits in rails repo titled "activerecord"?
Thanks!
Edit: it looks like the individual gems (activerecord) is not on rubygems. Now I am more confused. When I run "bundler list" it treats each one as a separate gem. Why is this?
It is a bit strange, but yes, they do use it as a monorepo. All the code for ActiveRecord is in the activerecord folder and so on. Each of those folders is a gem and gets published along with the Rails release. https://rubygems.org/gems/activerecord
The reason they do this is because they have to coordinate releasing all these gems at the same time with each new Rails release. This helps keep things consistent since they can keep track of it all in one place. Rails 6.1 can release updates for every gem with one command since it's all in the same repo.