Update spring-commands-rspec and springify bin/rspec
This commit is contained in:
parent
ed083be58b
commit
67ac6f0d65
4 changed files with 28 additions and 2 deletions
|
|
@ -129,3 +129,4 @@ AllCops:
|
||||||
- 'vendor/bundle/**/*'
|
- 'vendor/bundle/**/*'
|
||||||
- 'bundle/**/*'
|
- 'bundle/**/*'
|
||||||
- 'config/**/*'
|
- 'config/**/*'
|
||||||
|
- 'bin/*'
|
||||||
|
|
|
||||||
|
|
@ -415,8 +415,8 @@ GEM
|
||||||
simplecov-html (0.8.0)
|
simplecov-html (0.8.0)
|
||||||
sixarm_ruby_unaccent (1.1.1)
|
sixarm_ruby_unaccent (1.1.1)
|
||||||
slop (3.6.0)
|
slop (3.6.0)
|
||||||
spring (1.1.2)
|
spring (1.6.3)
|
||||||
spring-commands-rspec (1.0.2)
|
spring-commands-rspec (1.0.4)
|
||||||
spring (>= 0.9.1)
|
spring (>= 0.9.1)
|
||||||
sprockets (2.11.3)
|
sprockets (2.11.3)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
|
|
|
||||||
7
bin/rspec
Executable file
7
bin/rspec
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
begin
|
||||||
|
load File.expand_path("../spring", __FILE__)
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
require 'bundler/setup'
|
||||||
|
load Gem.bin_path('rspec-core', 'rspec')
|
||||||
18
bin/spring
Executable file
18
bin/spring
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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
|
||||||
|
|
||||||
|
unless defined?(Spring)
|
||||||
|
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"] = ""
|
||||||
|
Gem.paths = ENV
|
||||||
|
|
||||||
|
gem "spring", match[1]
|
||||||
|
require "spring/binstub"
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue