Bundlerをインストール $ sudo gem install bundlerGemfileを書く source :rubygemsgem 'sinatra', '>= 1.0'gem 'sinatra-reloader'gem 'sinatra-content-for'gem 'haml'Bundle install でライブラリをインストール $ cd MY/APP$ bundle install --path vendor/bundleRubyのコードでBundlerで入れたライブラリを使う require 'rubygems'require 'bundler/setup'必要ならGemfileの場所を指定。絶対パスで実行するときとか必要。ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)Bundleアップデート $ bundle update.gitignore に追加 vendor/bundle/*.bundleirb $ bundle console |
