LoginSignup
0
0

More than 5 years have passed since last update.

Bundlerについて

Posted at

Bundlerについて

  • 沢山のgemを使うRubyスクリプトを作るときや、使用するgemのバージョンを管理したいとき、Bundlerを使うと便利です。
  1. bundlerをインストールします。

    gem install bundler
    
  2. インストール出来たら、Gemfileのひな型を作成します。

    bundle init
    
  3. 実行したディレクトリにGemfileが作成されます。こんな感じで使うgemを列挙します。

    # frozen_string_literal: true
    # ZeroSimAlert Gemfile
    source "https://rubygems.org"
    
    gem "mechanize"
    gem "nokogiri"
    gem "sqlite3"
    gem "mail"
    gem "activesupport"
    
  4. 列挙したら、インストールしてみます。

    bundle install
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0