Update spring-commands-rspec and springify bin/rspec

This commit is contained in:
Aditya Prakash 2016-02-16 21:46:33 +05:30
parent ed083be58b
commit 67ac6f0d65
4 changed files with 28 additions and 2 deletions

View file

@ -129,3 +129,4 @@ AllCops:
- 'vendor/bundle/**/*'
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'

View file

@ -415,8 +415,8 @@ GEM
simplecov-html (0.8.0)
sixarm_ruby_unaccent (1.1.1)
slop (3.6.0)
spring (1.1.2)
spring-commands-rspec (1.0.2)
spring (1.6.3)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.11.3)
hike (~> 1.2)

7
bin/rspec Executable file
View 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
View 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