Merb 1.0.7 Release Notes

We just released Merb 1.0.7. Some highlights:

以下適当に訳したり訳さなかったり。

  • merb-action-argsが、仮引数のデフォルト値として[]などのような値が使われても大丈夫になった。
  • 通常起動した場合にpidファイルを出さなくなった。
  • 絶対パスでpartialを使えるようになった
  • _template_forをキャッシュするようになった
  • routerのdefer_toに関するドキュメントを改善
  • request() now goes through additional rack middleware, not just the default Merb application
  • 生成される.gitignoreを改善。
  • 生成されるdependencies.rbにdatamapperとdo_sqlite3を追加
  • merb_mailerの古いドキュメントを直した
  • fixed at least one case where thor bundling was throwing an error related to full_name. If you encounter other errors, please report them immediately on the Merb tracker and tag them “bundling”
  • fixed an issue with merb-helpers where label() was ignoring passed in attributes
posted by Png genki on Mon 29 Dec 2008 at 13:18

何気なくTwitterのタイムラインを見ていたら、 wycatsとd2hがMerbがRails3にマージされるというお知らせをしてました。

Rails And Merb Merge

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-class. 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 incompatibilities with Rails 2.x" Rails 3が2.xとの互換性を保つのは難しそう。

全体的な印象として、MerbをベースにRailsを作り直す(ビッグバンリライトする→ビッグバンリライトではないと書いてた。notを読み落としてました。thanks @moro)ような感じがします。

See Also

posted by Png genki on Wed 24 Dec 2008 at 05:04 with 2 comments

I made a SIMBL plugin for Terminal.app which enable us to copy on selection. Here is the plugin named TerminalCopyOnSelect.

TerminalCopyOnSelect.bundle.zip

INSTALLATION

  1. At first, you should install SIMBL.
  2. Download the zipped plugin file I mentioned above and expand it.
  3. Copy the extracted file "TerminalCopyOnSelect.bundle" to the plugin directory which is located at ~/Library/Application Support/SIMBL/Plugins/
  4. Terminate all processes of Terminal.app and restart it.

You're done! Now you can get copied selected text from the terminal when you released mouse button on it.

You are also able to disable this feature by turning off the following menu "Copy On Select".

ss01

Finally, I opened the source of this plugin on the GitHub under the MIT license.

Enjoy!

posted by Png takiuchi on Tue 25 Nov 2008 at 19:11 with 8 comments

DHHの Tweet によるとRails-2.2.2がリリースされた模様です。

   1  % gem search -r rails
   2  (snip)
   3  rails (2.2.2)
   4  (snip)

Rails 2.2: i18n, HTTP validators, thread safety, JRuby/1.9 compatibility, docs

Rails 2.2 is finally done after we cleared the last issues from the release candidate program. This release contains an long list of fixes, improvements, and additions that’ll make everything Rails smoother and better, but we also have a number of star player features to parade this time.

posted by Png genki on Sat 22 Nov 2008 at 04:59

今月16日のMerb newsで、数日後にリリースされると予定されていた Merb-1.0.1がリリースされたみたいです。

Merb news nov-16-2008

Merb 1.0.1

Merb 1.0.1 is in the work and should be released in the next few days. It’s just a maintenance release, so nothing new but we expect to ship with the new upcoming version of DataMapper, optimized generator (you will be able to use spaces in between arguments if you follow the unix standard) and some bug fixes.

インストール/アップデートはRubyGemsで行えます。

   1  % sudo gem install merb

posted by Png genki on Wed 19 Nov 2008 at 09:27

今話題の gemspec.info でs21gブログのOpenIDでログイン出来るようにしていただけました。

まいむぞうさんありがとうございます!

s21gブログのOpenIDは、

   1  blog.s21g.com/openid/<user id>

の形式です。

posted by Png genki on Mon 27 Oct 2008 at 11:08

昨日のRails勉強会でMaihaさん、Yuguiさんと話してましたが、 PayPalが日本円でのマイクロペイメントサービスを開始したようです。

PayPal、日本円でもマイクロペイメントサービス開始

米eBay傘下の決済サービス大手PayPalは22日、少額決済を行える、いわゆる「マイクロペイメント」サービスを拡大したと発表した。米国だけでなく、日本円など19通貨にも対応した。

この業界でB2Cサービスを展開してる会社にとっては、結構大きな出来事じゃないでしょうか。

See Also

posted by Png genki on Mon 27 Oct 2008 at 07:35

中川さん(aka Psychs) がiPhone用の画像ダウンロードライブラリ 「ImageStore」 をGitHub上で公開されたようです。

iPhone 用の画像ダウンロードライブラリ、ImageStore のソースコードを公開します。

http://github.com/psychs/imagestore/tree/master

ライセンスは、New BSD ライセンスです。

Thanks!

posted by Png genki on Sat 25 Oct 2008 at 04:40

This release includes a small spec change.

I changed spec of count method. Now it works without :group option. If you want old behaviour, you can use count_ids method instead.

http://github.com/genki/pagination_scope/tree/master

Good luck ;-)

posted by Png takiuchi on Sun 28 Sep 2008 at 03:57

Today, maiha, the author of the one of the most authorized books regarding rails in Japan, had sent me a patch including various improvements for the PaginationScope. I want to say thank you for the great contribution.

And then I merged it into the master and pushed to the GitHub.

http://github.com/genki/pagination_scope/tree/master

Here is the list of improvements from Maiha.

<モデル>

  • AR.paginate の第三引数に options を渡せるように変更
  • AR.paginate の options は第一引数でも可能にした AR.paginate(params[:page], 10, options) 以外にも以下のように書ける
       1     options = {
       2       :page => params[:page],
       3       :per_page => 10,
       4       :order => "id",
       5     }
       6     AR.paginate(options)
    

<ヘルパ>

  • Helper#paginate のオプション名を変更 (newer->prev, older->next) 昇順、降順によって newer/older が逆の意味になってわかり辛かったので
  • Helper#paginate の各要素にクラス名を付与 will_paginate のスタイルシートがそのまま使えるように合わせた
  • Helper#paginate のリンクに rel 属性を追加 AutoPagerize 対応
  • Helper#paginate のオプションに truncate を追加 省略時の '...' を設定可能にした

Thanks again!

posted by Png takiuchi on Fri 26 Sep 2008 at 18:48