2008-10-01から1ヶ月間の記事一覧

ユニットテストをカバレッジ測定(MbUnit , NCover)

ユニットテスト(MbUnit.Cons) ./MbUnit.Cons.exe "テスト対象のアセンブリ" ユニットテストのカバレッジ測定(NCover.Console) ./NCover.Console.exe /c "MbUnitの実行ファイル" "テスト対象のアセンブリ" /a "カバレッジ採取したいアセンブリの名前空間…

stmsでインストールしたgem

gemのリスト確認(local) > gem list --local *** LOCAL GEMS *** actionmailer (1.3.6) actionpack (1.13.6) actionwebservice (1.2.6) activerecord (1.15.6) activesupport (1.4.4) rails (1.2.6) rake (0.7.3) spreadsheet-excel (0.3.5.1) gemのリスト確…

Ruby 1.8.7とRailsの愛称

Ruby 1.8.7からはString#charsが定義されるようになった為、Railsのように積極的に組み込みクラスを改変しているものを使用すると、"hogehoge".firstを実行すると NoMethodError: undefined method `[]' for # などとなる。対策の一つとしては、config/envir…

DB:migration

マイグレーションファイルの生成 > script/generate plugin_migration または > script/generate plugin_migration login_engine テーブル生成 > rake migrate または > rake db:migrate

spreadsheet-excelのインストール

> gem install spreadsheet-excel # インストール

rails plugin のインストール

(1)plugin「ActiveScaffold 」のインストール http://activescaffold.com/tutorials/getting-started > ruby script/plugin install http://activescaffold.googlecode.com/svn/tags/active_scaffold (2)plugin「login_engine 」のインストール http:/…

railsアプリケーションの生成

(1)railsアプリケーションの生成 rails app_name (2)ruby/open-uri の設定 ①open-uri.rbの編集 rails の script/plugin など、ruby の open-uri を使用しているプログラムはそのままでは環境変数にプロキシを設定しても認証には対応してくれない。その…

Ruby環境構築メモ for Windows

(1)Rubyのインストール オフィシャルサイト(http://www.ruby-lang.org/ja/)を参照 (2)RubyGemsのインストール ①Zlib http://www.zlib.netからwindows版のzlib(現時点で1.2.3)をダウンロードして、この中のlibフォルダとincludeフォルダをc:\rubyにコピ…