master
1#!/usr/bin/env ruby
2
3# This file loads spring without using Bundler, in order to be fast.
4# It gets overwritten when you run the `spring binstub` command.
5
6unless defined?(Spring)
7 require 'rubygems'
8 require 'bundler'
9
10 if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
11 Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
12 gem 'spring', match[1]
13 require 'spring/binstub'
14 end
15end