GGG

プログラミング言語やソフトウェア開発について思ったことを書いてます

Gemfile を使って gemを管理する

bundler をインストールし、以降は Gemfileで管理する

>gem install bundler
Fetching: bundler-1.11.2.gem (100%)
Successfully installed bundler-1.11.2
Parsing documentation for bundler-1.11.2
Installing ri documentation for bundler-1.11.2
Done installing documentation for bundler after 10 seconds
1 gem installed

>runemacs Gemfile
# 後述

>bundle install --path vendor/bundler
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Installing coderay 1.1.0
Installing method_source 0.8.2
Installing slop 3.6.0
Using bundler 1.11.2
Installing pry 0.10.3
Bundle complete! 1 Gemfile dependency, 5 gems now installed.
Bundled gems are installed into ./vendor/bundler.

Gemfile

source "https://rubygems.org"

gem "pry"

Reference

ruby.studio-kingdom.com