2015年9月7日月曜日
2014年10月9日木曜日
rbenv のちりぬるを
本家
https://github.com/sstephenson/rbenv
https://github.com/sstephenson/ruby-build
https://github.com/sstephenson/rbenv-default-gems
インストール
# rbenv
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# ruby-build
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# default gems
$ git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
# すべてのバージョンでbundler を自動インストール
$ echo 'bundler' > ~/.rbenv/default-gems
コマンド
rbenv install --list
rbenv install 2.1.2
# 利用可能なversion (未インストールも含めて)$ rbenv install --list
# インストールされているversion
$ rbenv versions
■ Todo
user 用とsystem全体
rbenv local と .ruby-version
2014年8月31日日曜日
rspec 関連
rspec doc (Relish)Better Specs
とりあえず、この辺りをまねしてみる。
RailsのテストフレームワークRSpecの基礎知識
テストの実行が、よりスムーズになるように
Setup Rails 4.1, Spring, Rspec, and Guard
matchers
Built in matchers (Relish)
Matchers (apidoc)
■ APIのテスト
Request spec を利用するのがポイント。
Rails API Testing Best Practices
Rails でつくる API のテストの書き方(RSpec + FactoryGirl)
2011年5月13日金曜日
ruby1.9のインストール
zlibとかいろいろ必要だと思うが、既に大体入っている。
libyaml をインストール(gemで必要)
http://pyyaml.org/wiki/LibYAML
libyaml をインストール(gemで必要)
http://pyyaml.org/wiki/LibYAML
後は、configure,make, make install .....
登録:
投稿 (Atom)