$ bundle init iting new Gemfile to /home/hoge/sinatra/Gemfile
Gemfile を編集
Gemfile
1 2 3 4
# A sample Gemfile source"https://rubygems.org"
gem "sinatra"
Sinatra をインストール
Terminal
1 2 3 4 5 6 7 8
$ bundle install Fetching gem metadata from https://rubygems.org/..... Installing rack (1.4.1) Installing rack-protection (1.2.0) Installing tilt (1.3.3) Installing sinatra (1.3.3) Using bundler (1.1.4) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.