updates binstubs
This commit is contained in:
23
bin/rails
23
bin/rails
@@ -1,8 +1,17 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
begin
|
# frozen_string_literal: true
|
||||||
load File.expand_path("../spring", __FILE__)
|
#
|
||||||
rescue LoadError
|
# This file was generated by Bundler.
|
||||||
end
|
#
|
||||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
# The application 'rails' is installed as part of a gem, and
|
||||||
require_relative '../config/boot'
|
# this file is here to facilitate running it.
|
||||||
require 'rails/commands'
|
#
|
||||||
|
|
||||||
|
require "pathname"
|
||||||
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
|
require "rubygems"
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
load Gem.bin_path("railties", "rails")
|
||||||
|
|||||||
23
bin/rake
23
bin/rake
@@ -1,8 +1,17 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
begin
|
# frozen_string_literal: true
|
||||||
load File.expand_path("../spring", __FILE__)
|
#
|
||||||
rescue LoadError
|
# This file was generated by Bundler.
|
||||||
end
|
#
|
||||||
require_relative '../config/boot'
|
# The application 'rake' is installed as part of a gem, and
|
||||||
require 'rake'
|
# this file is here to facilitate running it.
|
||||||
Rake.application.run
|
#
|
||||||
|
|
||||||
|
require "pathname"
|
||||||
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
|
require "rubygems"
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
load Gem.bin_path("rake", "rake")
|
||||||
|
|||||||
16
bin/rspec
16
bin/rspec
@@ -1,9 +1,5 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
begin
|
# frozen_string_literal: true
|
||||||
load File.expand_path('../spring', __FILE__)
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.message.include?('spring')
|
|
||||||
end
|
|
||||||
#
|
#
|
||||||
# This file was generated by Bundler.
|
# This file was generated by Bundler.
|
||||||
#
|
#
|
||||||
@@ -11,11 +7,11 @@ end
|
|||||||
# this file is here to facilitate running it.
|
# this file is here to facilitate running it.
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'pathname'
|
require "pathname"
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
Pathname.new(__FILE__).realpath)
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
require 'rubygems'
|
require "rubygems"
|
||||||
require 'bundler/setup'
|
require "bundler/setup"
|
||||||
|
|
||||||
load Gem.bin_path('rspec-core', 'rspec')
|
load Gem.bin_path("rspec-core", "rspec")
|
||||||
|
|||||||
24
bin/spring
24
bin/spring
@@ -1,15 +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.
|
||||||
|
#
|
||||||
|
|
||||||
# This file loads spring without using Bundler, in order to be fast.
|
require "pathname"
|
||||||
# It gets overwritten when you run the `spring binstub` command.
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
unless defined?(Spring)
|
require "rubygems"
|
||||||
require 'rubygems'
|
require "bundler/setup"
|
||||||
require 'bundler'
|
|
||||||
|
|
||||||
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
|
load Gem.bin_path("spring", "spring")
|
||||||
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq }
|
|
||||||
gem 'spring', match[1]
|
|
||||||
require 'spring/binstub'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user