Regenerate bin stubs

These are the new binstubs available in the our current `spring`
version, which make specs run much faster 😌
This commit is contained in:
rgarcia
2018-02-06 01:00:40 +01:00
parent 7e67e8c93b
commit a359517288
4 changed files with 28 additions and 13 deletions

View File

@@ -1,4 +1,9 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
APP_PATH = File.expand_path('../../config/application', __FILE__) APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot' require_relative '../config/boot'
require 'rails/commands' require 'rails/commands'

View File

@@ -1,4 +1,9 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require_relative '../config/boot' require_relative '../config/boot'
require 'rake' require 'rake'
Rake.application.run Rake.application.run

View File

@@ -1,4 +1,9 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
# frozen_string_literal: true # frozen_string_literal: true
# #
# This file was generated by Bundler. # This file was generated by Bundler.

View File

@@ -1,17 +1,17 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'spring' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require "pathname" # This file loads spring without using Bundler, in order to be fast.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", # It gets overwritten when you run the `spring binstub` command.
Pathname.new(__FILE__).realpath)
require "rubygems" unless defined?(Spring)
require "bundler/setup" require 'rubygems'
require 'bundler'
load Gem.bin_path("spring", "spring") lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
if spring
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem 'spring', spring.version
require 'spring/binstub'
end
end