Drop guard/spring
No developer left using this...
This commit is contained in:
parent
28caa143e8
commit
5b698f9a4a
7 changed files with 1 additions and 169 deletions
1
bin/rake
1
bin/rake
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env ruby
|
||||
load File.expand_path('spring', __dir__)
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
Rake.application.run
|
||||
|
|
|
|||
14
bin/spring
14
bin/spring
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
if !defined?(Spring) && [nil, 'development', 'test'].include?(ENV['RAILS_ENV'])
|
||||
gem "bundler"
|
||||
require "bundler"
|
||||
|
||||
# Load Spring without loading other gems in the Gemfile, for speed.
|
||||
Bundler.locked_gems&.specs&.find { |spec| spec.name == 'spring' }&.tap do |spring|
|
||||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
||||
gem 'spring', spring.version
|
||||
require 'spring/binstub'
|
||||
rescue Gem::LoadError
|
||||
# Ignore when Spring is not installed.
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue