run the command bundle installin your shell once you have created your gemfile.
This command will search for your Gemfile and install the appropriate Gems in the specified versions.
Gemfiles are installed because in your Gemfile you specify the source from which to download gems.
You can create a gemfile by simply typing bundle initin your shell
I am adding a Gemfile example for your reference:
source "https://rubygems.org"
ruby "2.2.3"
gem "sinatra"
gem "sinatra-flash"
gem "sinatra-partial"
gem "bcrypt"
gem "dm-validations"
gem "dm-transactions"
gem "data_mapper"
gem "dm-postgres-adapter"
gem "pg"
gem "database_cleaner"
group :test do
gem "rspec"
gem "capybara"
gem "rspec-sinatra"
gem "cucumber"
gem "coveralls", require: false
end
source
share