Skip to content

Instantly share code, notes, and snippets.

@simplay
Created October 13, 2017 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simplay/4c2faa34a3a1d934ffd30daccb4c8351 to your computer and use it in GitHub Desktop.
Save simplay/4c2faa34a3a1d934ffd30daccb4c8351 to your computer and use it in GitHub Desktop.
Require all gems specified in a Gemfile in a non Rails app.

Inside Gemfile:

source "https://rubygems.org"
gem 'hashtel'

The app.rb code:

require 'rubygems'
require 'bundler'
Bundler.require(:default)
"wow".pastel_color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment