Tag: Bundler
source 'https://rubygems.org' gem 'activerecord' gem 'mysql2'
$ bundle install --path vendor/bundle
require "rubygems" require "bundler/setup" require "active_record"
ruby - Are bundle exec and require 'bundler/setup' equivalent? - Stack Overflowに、bundle execとbundle/setupの違いの説明あり。
bundle gem sampleapp -b -t #rspecが適用 bundle gem sampleapp -b --test=minitest #minitestが適用
/.bundle/configに以下を記述。bundle configで確認できる。
--- BUNDLE_PATH: ./vendor/bundle