闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
463 B

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