On 6/26/07, Derrick Spell <[EMAIL PROTECTED]> wrote: > But what if the adapters were bundled as RubyGems?
Nice idea, it seems to me that it goes in the same direction as the (proper) rails core wrt distribution... And, pardon me if my understanding > of RubyGems is demonstrated to be painfully lacking, but couldn't we > also say that a specific version of rails requires a certain version > of the adapter gem? I think this is correct... Of course, the elephant in the room is, what to do when rails is not > being run as a gem. How would this affect rails:freeze:edge? What about using svn:externals or simply modify the rails:freeze:edge to pull the adapter code from some external repository? But the real question is: would it be a good thing to make rails core depend on external libraries (not in the standard ruby distribution)? I'd dare to say the it is already this case as this happens with most of the libraries *used* by the database adapters. >From another point ov view: also today different database adapters depend on external libraries (typically gems) to handle the lower levels i.e. also for rails 1.2, with the oracle adapter *in the core* you still need to install the oci gem to be able to connect (with platform specific code), the same goes for the mysql adapter if you want to use the native libs, and so on for the others. This make me think that in the end we may even let the adapters live in plugins and let the user specify them on application creation (in addition to being able to add them with the usual script/plugin install). # rails --with-adapter=oracle ... N.B. I'd make this command (and the adapter plugin install) check and eventually pull down not only the adapter plugin but also all the correct required libraries (gems and such). In the end the amount of work required to the user could be even less than today :) cheers, Luca --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
