rubricksを動かす。

Railsをお勉強する上で、オープンソースでなんか面白そうなもの
ないかなぁって探していたら、rubricksというRailsベースのCMSがあった。

とりあえず、インストールしてみた。
インストールマニュアル上には
Macがなかったけど、windowsの方を見ながら、やった。

「rake db:migrate」って打ったときにエラーが起きたので、調べると

RAILS_ROOT/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb

      s1 = Digest::SHA1.new(password).digest
      s2 = Digest::SHA1.new(s1).digest
      x = Digest::SHA1.new(message + s2).digest

で566行目あたりでnewメソッドを呼び出し時にエラーになっているので、
ちょいと修正。

     s1 = Digest::SHA1.digest(password)
     s2 = Digest::SHA1.digest(s1)
     x = Digest::SHA1.digest(message + s2)

こんな感じにしたら、動きました。
ちなみに以下のバージョンで動いてます。

>gem list

LOCAL GEMS ***

actionmailer (1.3.3)
Service layer for easy email delivery and testing.

actionpack (1.13.3)
Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.2.3)
Web service support for Action Pack.

activerecord (1.15.3)
Implements the ActiveRecord pattern for ORM.

activesupport (1.4.2)
Support and utility classes used by the Rails framework.

cgi_multipart_eof_fix (2.1)
Fix an exploitable bug in CGI multipart parsing which affects Ruby
<= 1.8.5 when multipart boundary attribute contains a non-halting
regular expression string.

daemons (1.0.6)
A toolkit to create and control daemons in different ways

fastthread (1.0)
Optimized replacement for thread.rb primitives

gem_plugin (0.2.2)
A plugin system based only on rubygems that uses dependencies only

mongrel (1.0.1)
A small fast HTTP library and server that runs Rails, Camping, Nitro
and Iowa apps.

mongrel_cluster (0.2.1)
Mongrel plugin that provides commands and Capistrano tasks for
managing multiple Mongrel processes.

rails (1.2.3)
Web-application framework with template engine, control-flow layer,
and ORM.

rake (0.7.3)
Ruby based make-like utility.

sources (0.0.1)
This package provides download sources for remote gem installation

vim-ruby (2007.05.07)
Ruby configuration files for Vim. Run 'vim-ruby-install.rb' to
complete installation.