about summary refs log tree commit diff
path: root/bin/spring
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2021-08-23 16:29:19 -0400
committerBen Harris <ben@tilde.team>2021-08-23 16:29:19 -0400
commit229d79fce9a092bd2e71559603fba67000b18254 (patch)
treec960aa3d7ff077eca7af027df61385e88c8454c9 /bin/spring
parent0d1be8d46ae036ad1588f6c2e590eb1ba3993eb2 (diff)
update to rails 3.0.2
Diffstat (limited to 'bin/spring')
-rwxr-xr-xbin/spring14
1 files changed, 14 insertions, 0 deletions
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