pennylane-hq / activerecord-adapter-redshift

Other
6 stars 27 forks source link

Multi-version compatibility including 7.1 #14

Closed quentindemetz closed 8 months ago

quentindemetz commented 8 months ago

Fork the directory tree by activerecord version and load the proper definition of the adapter based on the runtime version of ActiveRecord.

This includes the changes in https://github.com/pennylane-hq/activerecord7-redshift-adapter/pull/13

https://github.com/makandra/gemika seems to be a good way to implement basic testing for this

quentindemetz commented 8 months ago

Thanks for your feedback @owst

quentindemetz commented 8 months ago

Playing devil's advocate, but if we get activerecord-redshift-adapter it will break existing (legacy and non-updated) rails 3 apps which might rely on this gem. There's likely a bunch of these out there.

How about activerecord-adapter-redshift 😉 ?

owst commented 8 months ago

That's a good point - I wonder if a major version bump would be sufficient to sign post that the gem has significantly changed. Either way, it's moot unless rubygems would allow publishing a new gem under and old name - I somewhat doubt it.

I think it would be better to keep the activerecord-X-adapter naming convention along with the other popular gems:

image

So perhaps activerecord-redshift-X-adapter for some reasonable choice of X - new? modern? recent? ...?