bootsnap, spring, sofurry type fixes

This commit is contained in:
Dylan Knutson
2025-07-08 01:25:00 +00:00
parent f79e37f256
commit 0427ac43c7
24 changed files with 176 additions and 38 deletions

4
bin/parallel_cucumber Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require 'bundler/setup'
load Gem.bin_path('parallel_tests', 'parallel_cucumber')

4
bin/parallel_rspec Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require 'bundler/setup'
load Gem.bin_path('parallel_tests', 'parallel_rspec')

4
bin/parallel_spinach Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require 'bundler/setup'
load Gem.bin_path('parallel_tests', 'parallel_spinach')

4
bin/parallel_test Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require 'bundler/setup'
load Gem.bin_path('parallel_tests', 'parallel_test')

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
APP_PATH = File.expand_path("../config/application", __dir__)
require_relative "../config/boot"
require "rails/commands"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require_relative "../config/boot"
require "rake"
Rake.application.run

4
bin/rspec Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require 'bundler/setup'
load Gem.bin_path('rspec-core', 'rspec')

14
bin/spring Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env ruby
# This file loads Spring without loading other gems in the Gemfile in order to be fast.
# It gets overwritten when you run the `spring binstub` command.
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
require "bundler"
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"
end
end