Archive for December, 2008

メイク(Make)のようなレイク(Rake)

イラスト提供: blogs.sun.com

レイクは、ユニックスのメイクと同様のユーティリティです。レイクは、ルビーのメイク、またはルビー・メイクのことです。幸運にもレイルには、あなたをヘルプする多くのタスクがあります。ルビー・レイクにサポートされている重要なコマンドの中には、

以下のリストのものがあります。

  • rake db:fixture:load- 現在の環境のデータベースにフィクスチャーをロードする
  • rake db:migrate -db/rateでのスクリプトを通じてデータベースを移動する
  • rake db:schema:dump – DBに対して使用できるdb/schema.rb ファイルを作成する
  • rake db:schema:load – schema.rb ファイルをデータベースにロードする
  • rake db:sessions:clear – セッション・テーブルを消去する
  • rake db:sessions:create – セッション・テーブルを
    "CGI::Session::ActiveRecordStore"の使用に作成する
  • rake db:structure:dump – SQL ファイルへのデータベースのストラクチャーを捨てる
  • rake db:test:clone – 現現在の環境のデータベースからテスト・データベースを再生する
  • rake db:test:clone_structure – デベロップメント・ストラクチャーからデータベースを再生する
  • rake db:test:prepare – テスト・データベースを準備し、スキーマをロードする
  • rake db:test:purge – テスト・データベースを空にする
  • rake doc:app -アプリケーションHTML ファイルを作る
  • rake doc:clobber_app – rdoc プロダクツを除去する
  • rake doc:clobber_plugins – プラグインドキュメンテーションを除去する
  • rake doc:clobber_rails – rdoc プロダクツを除去する
  • rake doc:plugins – 全てのインストールされたプラグイン用のドキュメンテーションを作り出す

Ruby and Merb combines to form Rails 3

For a long time, Ruby on Rails and Merb has been on opposite sides of the programmer’s planet. However, a development has been sighted and the two will now merge and become: Rails 3.

We all realized that working together for a common good would be much more productive than duplicating things on each side of the fence. Merb and Rails already share so much in terms of design and sensibility that joining forces seemed like the obvious way to go. All we needed was to sit down for a chat and hash it out, so we did just that.

What this will mean in practice is that the Merb team is putting their efforts into bringing all of the key Merb ideas into Rails 3. Yehuda Katz will outright join the Rails core team, Matt Aimonetti will work on a new evangelism team, and Carl Lerche and Daniel Neighman (hassox) will be co-starring the effort to bring all this over. We’ve immortalized the merge with plaque page at rubyonrails.org/merb.

Always give peace a chance, I say.

Source