RVM Rails3 をUbuntu 11.04にインストール

Railsの環境構築はいつもうまくいかないので自分用にメモっておく

rvmのインストール

公式ドキュメント
https://rvm.beginrescueend.com/rvm/install/

rvmとは何かについてはこのスライドがわかりやすいです。
http://www.slideshare.net/chsh404/rails-7751577

以下rvmのインストール手順コマンドのみ

$ sudo apt-get install build-essential bison openssl libreadline5 libreadline-dev curl git zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev
$ sudo apt-get install ruby1.8 rubygems1.8
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm )
$ vi .bashrc

以下の行を追加

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

変更を適用

$ source .bashrc

※「https://rvm.beginrescueend.com/install/rvm」のURLはしょっちゅう変わるらしいので、インストールの際は公式サイトをチェックした方が良さそう

Ruby1.9をインストール

$ rvm install 1.9.2
$ rvm use 1.9.2 --default

Railsをインストール

$ gem install rails

確認

$ rails new hello-rails3
$ cd hello-rails3
$ bundle install
$ rails s

http://localhost:3000にアクセスして「Welcome aboard
You’re riding Ruby on Rails!」とかかれたページが表示されればOK

今回もこれ書くのに、いくつブログみたかわからない。Rubyはほんと環境構築だけはネックなんだよなあ。

Google Secure Data Connectorの概要説明資料をアップしました。

Google Secure Data Connector説明用に作成した資料をSlide Shareにアップしました。

資料の内容について補足

p3 Google Secure Data Connectorのしくみ

com.google.dataconnector.client.SdcConnectionの辺りに記述されている
http://code.google.com/p/google-secure-data-connector/source/browse/trunk/data-connector-agent/src/java/com/google/dataconnector/client/SdcConnection.java

p7 AppEngineアプリをドメインに限定して公開

以下に手順が書いてあります。
公式ドキュメント:
http://code.google.com/intl/ja/appengine/articles/auth.html
Google サポートフォーラム:
http://www.google.com/support/a/bin/answer.py?hl=ja&answer=91077

p10 demo

前回の記事「Google Secure Data Connectorを利用してFW内のデータをAppsと連携する」のソースをgithubにアップしました。ほんとに最小限です。エラーハンドリングもしてません。
https://github.com/hrendoh/hello-sdc

p11 認証データの受け渡しについて

ガジェットについての記述:
http://code.google.com/securedataconnector/docs/1.0/tutorials/gadgets.html#ModifyGadgetToAccessPrivateData
AppEngine、SpreadSheetについての記述:
http://code.google.com/securedataconnector/docs/1.3/security.html#AuthenticationRequests

p13 RestletでEC2もSDCエージェントと連携

これは気になるけどまったく未調査。
http://blog.noelios.com/2011/03/31/leveraging-sdc-beyond-google-cloud-with-restlet/