何気なくTwitterのタイムラインを見ていたら、 wycatsとd2hがMerbがRails3にマージされるというお知らせをしてました。
Today is a fairly momentous day in the history of Ruby web frameworks
. You will probably find the news I’m about to share with you fairly shocking, but I will attempt to explain the situation.
Merb gets merged into Rails 3!
It’s christmas, baby, and do we have a present for you. We’re ending the bickering between Merb and Rails with a this bombshell:
Merb is being merged into Rails 3!
確かに最近Railsが急速にMerb化してきてる気がするなと思ってたのですが。 save!のポリシーがどういう感じにmergeされるのかが気になる所。
Updates
#merbを見ていて分かった事など。
- "any app can be a slice" 全てのアプリケーションがsliceとして利用可能らしい。てことはRails3にはsliceが入るっぽいですね。
- "we're going to have a rails-core
which is basically merb-core" merb-coreをベースとしてrails-core を作るらしい。 - "goal is beta by RailsConf" 次のRailsConfまでにβを出すのが目標。
- "rails JS helpers become modular" RJSはモジュールかされて標準添付からは追い出される。
- "DM definitely
will be first-clas s. Just because AR is the default, doesn't mean DM shouldn't be just as easy to use." ARが標準のORMとなるが、DMも同等のサポートを受ける。 - 依然としてtest/unitがデフォルト。これを機にRSpecが標準になったら良かったのだけど。
- "get all the specific js code out of the view" JSはviewに書かないスタイルになる。
- "Rails 3 will definitely
have some incompatib ilities with Rails 2.x" Rails 3が2.xとの互換性を保つのは難しそう。
全体的な印象として、MerbをベースにRailsを作り直す(ビッグバンリライトする→ビッグバンリライトではないと書いてた。notを読み落としてました。thanks @moro)ような感じがします。
See Also
posted by
genki
on Wed 24 Dec 2008
at 05:04
with
2 comments
コメントありがとうございます。 確かにsave!の実装自体はORM次第ですね。 現状のMerbのように、どのORMを選ぶかによって互換性のない別なコードで動くようになるのかなー。
個人的には、何らかのORMを抽象化するようなレイヤー(ActiveModel?)的なものが出てくる可能性もあるかなと思っています。
どうなるか今後の動向に注目ですね。