diff options
| author | Teddy Wing | 2015-12-30 16:58:07 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:45:24 -0800 |
| commit | 6674d1f2f5ec395f90d958001dce4a20cdad7879 (patch) | |
| tree | 782d2d4bcfeb3d3fbd8f0d5a5c1eb46165ab5e0b /bin/spring | |
| download | Evernote-Rails-Example-6674d1f2f5ec395f90d958001dce4a20cdad7879.tar.bz2 | |
Initial commit. Base Rails 4.2.5 project.
Diffstat (limited to 'bin/spring')
| -rwxr-xr-x | bin/spring | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..62ec28f --- /dev/null +++ b/bin/spring @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)) + Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq } + gem 'spring', match[1] + require 'spring/binstub' + end +end |
