早速Merb-1.0.1にアップデートする必要がでてきたので、手順をメモしておきます。

  1. config/dependencies.rbの中で、
    ruby>>
    merb_gems_version = "1.0.1"
    dm_gems_version = "0.9.7"
    <<--
  2. dm-core,dm-aggregates,dm-migrations,dm-timestamps,dm-types,
    dm-validations,do_sqlite3
    を0.9.7にアップデート

ここまでで、とりあえず merb -iは起動するようになりました。

posted by genki genki on Wed 19 Nov 2008 at 09:48 with 0 comments

今月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で行えます。

pre>>
% sudo gem install merb
<<--

posted by genki genki on Wed 19 Nov 2008 at 09:24 with 0 comments

merb -iは、
Merb-1.0におけるscript/console的な対話型インターフェイスを提供するコマンドですが、
アダプターとしてThinを使っていると、エラーが発生してうまく使えないようです。

pre>>
% merb -i
(snip)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 29906
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
merb : worker (port 4000) ~ Starting Thin at port 4000
merb : worker (port 4000) ~ Using Thin adapter on host 0.0.0.0 and port 4000.
merb : worker (port 4000) ~ Successfully bound to port 4000
/opt/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.2/lib/eventmachine.rb:531:in
`start_tcp_server': no acceptor (RuntimeError)
<<--

mongrelとwebratをインストールし、adapterとしてMongrelを使うようにすると、merb -iでエラーが出なくなりました。

pre>>
% merb -i
(snip)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 29931
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
irb: warn: can't alias context from irb_context.
irb(main):001:0>
<<--

Merbの名称はMongrel+ERBから来てるみたいだけど、
とりあえずはしばらくMongrelを使っておくのが無難かもですね。
少なくとも開発環境では。

posted by genki genki on Wed 19 Nov 2008 at 08:26 with 0 comments
posted by genki genki on Wed 19 Nov 2008 at 08:10 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
merbmemonews
Comments rssrss
https://xn--mgmarkt6-9db.com https://xn--mgmarkt6-9db.com: Как обезопасить хранилище криптовалюты: сравнение... 04/23 20:02
https://www.lifnest.com/author/bradwhiddon136/ https://www.lifnest.com/author/bradwhiddon136/: Лучший bulk index checker из тех, что я пробовал... 04/23 10:21
https://mklider.ru/katalog/protivopozharnoe-oborudovanie/predohranitel-ognevoy-zhidkostnyy-pozh/ https://mklider.ru/katalog/protivopozharnoe-oborudovanie/predohranitel-ognevoy-zhidkostnyy-pozh/: За многие годы работы по производству резервуаров ... 04/23 10:05
https://landminder.com/author/sharonhindman https://landminder.com/author/sharonhindman: Работает стабильно даже на больших объемах данных. 04/23 05:59
https://mimrent.com/author/laylazercho023/ https://mimrent.com/author/laylazercho023/: Good blog. I really liked this. Many thanks for ... 04/23 02:56
https://xn--mgmrket6-px0d.com https://xn--mgmrket6-px0d.com: Как отличить настоящее зеркало MEGA от подделки в ... 04/22 23:19
https://xn--mgmarkt5-9db.com https://xn--mgmarkt5-9db.com: Как проверить безопасность MEGA: аудит аккаунта в ... 04/22 23:08
https://uae.buyallasia.com/author-profile/lilianahornick/ https://uae.buyallasia.com/author-profile/lilianahornick/: Пользуюсь IndexChecker уже месяц, полет нормальный... 04/22 20:07