Skip to content
Permalink
Browse files

Add spring-commands-rspec and generate binstubs

  • Loading branch information...
parrish authored and arfon committed Mar 18, 2018
1 parent 70452b5 commit 944528d4839fb39d38f37f6a60f8c1bced561d21
Showing with 39 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +5 −0 bin/rails
  4. +5 −0 bin/rake
  5. +8 −0 bin/rspec
  6. +17 −0 bin/spring
@@ -44,4 +44,5 @@ group :development do
gem 'web-console', '~> 3.5.1'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-commands-rspec', group: :development
end
@@ -219,6 +219,8 @@ GEM
faraday (~> 0.8, < 0.10)
spring (2.0.2)
activesupport (>= 4.2)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
@@ -280,6 +282,7 @@ DEPENDENCIES
sanitize (~> 4.5.0)
sass-rails (~> 5.0.7)
spring
spring-commands-rspec
uglifier (= 4.0.1)
unicorn (~> 5.3.1)
web-console (~> 3.5.1)
@@ -1,4 +1,9 @@
#!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
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'
@@ -1,4 +1,9 @@
#!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'
Rake.application.run
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
begin
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')
@@ -0,0 +1,17 @@
#!/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'

lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
if spring
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem 'spring', spring.version
require 'spring/binstub'
end
end

0 comments on commit 944528d

Please sign in to comment.
You can’t perform that action at this time.