Mercurial > rsstweet
comparison bin/spring @ 0:a1c9fadc0904
Initial.
Generated with:
rails new rsstweet -J -S -O -G --skip-keeps
author | edogawaconan <me@myconan.net> |
---|---|
date | Fri, 05 Sep 2014 18:24:19 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a1c9fadc0904 |
---|---|
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 | |
6 unless defined?(Spring) | |
7 require "rubygems" | |
8 require "bundler" | |
9 | |
10 if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) | |
11 ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) | |
12 ENV["GEM_HOME"] = "" | |
13 Gem.paths = ENV | |
14 | |
15 gem "spring", match[1] | |
16 require "spring/binstub" | |
17 end | |
18 end |