Skip to content

Instantly share code, notes, and snippets.

@masciugo
Last active August 29, 2015 14:26
Show Gist options
  • Save masciugo/d5ac1086e1d85b78bdf2 to your computer and use it in GitHub Desktop.
Save masciugo/d5ac1086e1d85b78bdf2 to your computer and use it in GitHub Desktop.
boilerplate code for a ruby script with bundler/inline
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'sqlite3'
end
require 'active_record'
require 'minitest/autorun'
require 'logger'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment