From 229d79fce9a092bd2e71559603fba67000b18254 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 23 Aug 2021 16:29:19 -0400 Subject: update to rails 3.0.2 --- bin/spring | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/spring (limited to 'bin/spring') diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..b4147e8 --- /dev/null +++ b/bin/spring @@ -0,0 +1,14 @@ +#!/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 -- cgit 1.4.1