Commit 156cb75
bin/rails
@@ -1,8 +1,9 @@
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
-rescue LoadError
+rescue LoadError => e
+ raise unless e.message.include?("spring")
end
-APP_PATH = File.expand_path('../../config/application', __FILE__)
-require_relative '../config/boot'
-require 'rails/commands'
+APP_PATH = File.expand_path("../../config/application", __FILE__)
+require_relative "../config/boot"
+require "rails/commands"
bin/rake
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
begin
- load File.expand_path("../spring", __FILE__)
-rescue LoadError
+ load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'
bin/rspec
@@ -1,20 +1,21 @@
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
-rescue LoadError
+rescue LoadError => e
+ raise unless e.message.include?("spring")
end
#
# This file was generated by Bundler.
#
-# The application 'rspec' is installed as part of a gem, and
+# The application "rspec" is installed as part of a gem, and
# this file is here to facilitate running it.
#
-require 'pathname'
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
-require 'rubygems'
-require 'bundler/setup'
+require "rubygems"
+require "bundler/setup"
-load Gem.bin_path('rspec-core', 'rspec')
+load Gem.bin_path("rspec-core", "rspec")
bin/spring
@@ -7,7 +7,7 @@ unless defined?(Spring)
require "rubygems"
require "bundler"
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
+ if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
gem "spring", match[1]
require "spring/binstub"
bin/teaspoon
@@ -1,16 +1,21 @@
#!/usr/bin/env ruby
+begin
+ load File.expand_path("../spring", __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?("spring")
+end
#
# This file was generated by Bundler.
#
-# The application 'teaspoon' is installed as part of a gem, and
+# The application "teaspoon" is installed as part of a gem, and
# this file is here to facilitate running it.
#
-require 'pathname'
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
-require 'rubygems'
-require 'bundler/setup'
+require "rubygems"
+require "bundler/setup"
-load Gem.bin_path('teaspoon', 'teaspoon')
+load Gem.bin_path("teaspoon", "teaspoon")