Permalink
Please
sign in to comment.
Showing
with
39 additions
and 0 deletions.
- +1 −0 Gemfile
- +3 −0 Gemfile.lock
- +5 −0 bin/rails
- +5 −0 bin/rake
- +8 −0 bin/rspec
- +17 −0 bin/spring
@@ -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