Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2015-12-10 20:23:59 +0300
committerDennis Schubert <mail@dennis-schubert.de>2015-12-31 17:35:45 +0300
commit44bc55337d4f0b73b8d5ba9dfbae43a0475dee32 (patch)
tree8b7b26f39308efca16cfd466f9047b3833d15288 /bin
parent75c8d0c4ed2fdd923d43e07ddea8ac4f14d35ae0 (diff)
bump spring
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cucumber5
-rwxr-xr-xbin/rails9
-rwxr-xr-xbin/rake5
-rwxr-xr-xbin/rspec5
-rwxr-xr-xbin/spring19
5 files changed, 23 insertions, 20 deletions
diff --git a/bin/cucumber b/bin/cucumber
index 12971cdce..f135a7564 100755
--- a/bin/cucumber
+++ b/bin/cucumber
@@ -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 'bundler/setup'
load Gem.bin_path('cucumber', 'cucumber')
diff --git a/bin/rails b/bin/rails
index 7feb6a30e..0af1c3baf 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,8 +1,11 @@
#!/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
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
-require_relative '../config/boot'
+require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'
diff --git a/bin/rake b/bin/rake
index 8017a0271..d87d5f578 100755
--- a/bin/rake
+++ b/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'
diff --git a/bin/rspec b/bin/rspec
index 20060ebd7..6e6709219 100755
--- a/bin/rspec
+++ b/bin/rspec
@@ -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 'bundler/setup'
load Gem.bin_path('rspec-core', 'rspec')
diff --git a/bin/spring b/bin/spring
index de6070b2a..62ec28f8c 100755
--- a/bin/spring
+++ b/bin/spring
@@ -1,18 +1,15 @@
#!/usr/bin/env ruby
-# This file loads spring without using Bundler, in order to be fast
-# It gets overwritten when you run the `spring binstub` command
+# This file loads spring without using Bundler, in order to be fast.
+# It gets overwritten when you run the `spring binstub` command.
unless defined?(Spring)
- require "rubygems"
- require "bundler"
+ require 'rubygems'
+ require 'bundler'
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
- ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
- ENV["GEM_HOME"] = nil
- Gem.paths = ENV
-
- gem "spring", match[1]
- require "spring/binstub"
+ 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'
end
end