k776
18p11 comments posted · 0 followers · following 0
15 years ago @ Union Station - Mitchell Hashimoto Joi... · 0 replies · +2 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +2 points
For gems, I'd assume you have lib/gem_name.rb load the railtie.rb file first off (e.g. http://github.com/dkubb/rails3_datamapper/blob/ma... This will go a fair way to making vendor/plugins redundent.
For plugins, would this be best in init.rb? From your post, is the :load_init_rb initializer example actually in Rails, or is this something the plugin itself specifies? And if that's the case, how does Rails load plugins now? Does it look for a vendor/plugin/your_plugin/railtie.rb ?
16 years ago @ Union Station - Rails and Merb Merge: ... · 1 reply · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 3 replies · +1 points
* How do plugins/gems run initializers in Rails 3?
* How do plugins/gems add Rack middleware nicely in Rails 3?
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
There is nothing stopping you from using it right now though. Rails master has been stable for some time now. All tests are passing. I've been able to generate and run an application off Rails 3 for some time now.
So rather than saying "RoR3 is not ready for serious usage", say exactly why it isn't ready so developers might be able to address the issues. Statements like that without explaination don't help anyone.
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
* Increasing Performance and reducing overhead (this post)
* Separation of responsibility and Dependency declaration (previous post)
* ARel integration with ActiveRecord (no blog posts I know of, but a lot of commits for it recently)
* Rails router DSL improved - http://rizwanreza.com/2009/12/20/revamped-routes-... and http://yehudakatz.com/2009/12/26/the-rails-3-rout...
* Gem bundler (allowing references to Rubygems to be removed) - http://yehudakatz.com/2009/11/03/using-the-new-ge...
* Major cleanup / refactoring of internals (particularly around dispatching/respond_to)
* many many more….
As for timelines, while there isn't a specific one available, mainly because with project like this, it is very hard to accuratly predict them, DHH has estimated a beta release by end of January: http://twitter.com/dhh/statuses/7208225785
From what I have seen regarding plugins, Rails 3 will maintain backward compatability, but includes new features such as off loading the rake task loading to the plugin, and adding support for initializers within the plugin. As an example of this, ActiveRecord is now treated as a plugin of Railties (which should make swapping out the ORM a lot less painful). Example: http://github.com/rails/rails/blob/master/activer... . These added abilities should make development via gems a lot easier.
16 years ago @ Union Station - Rails and Merb Merge: ... · 4 replies · +1 points
Re gems: There aren't a lot I know of, but there are some. I was mainly thinking of ones like New Relic gem. If Merb were the base, I'm guessing they'd have had to rewrite their Rails adapter.
Re plugins: Right, I'm not saying plugins won't break between Rails 2 and Rails 3. But, until the plugin is written to use the new api, the code to make things work again should be easier to patch in than it would be to rewrite entirely (or wait for it to be rewritten) for Merb.
16 years ago @ Union Station - Rails and Merb Merge: ... · 1 reply · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 6 replies · +1 points