add spring

This commit is contained in:
yafeilee 2014-05-11 18:54:28 +08:00
parent 30c227634b
commit 94ad9f9be5
5 changed files with 37 additions and 0 deletions

View File

@ -32,6 +32,7 @@ gem 'sidekiq'
gem 'rest-client'
group :development do
gem 'spring'
gem 'quiet_assets'
gem 'guard'
gem 'guard-rails'

View File

@ -228,6 +228,7 @@ GEM
railties (>= 3.0, < 4.2)
slim (~> 2.0)
slop (3.5.0)
spring (1.1.2)
sprockets (2.8.0)
hike (~> 1.2)
multi_json (~> 1.0)
@ -293,4 +294,5 @@ DEPENDENCIES
sidekiq
simple_form
slim-rails
spring
uglifier (>= 1.3.0)

9
bin/rails Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'

7
bin/rake 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('rake', 'rake')

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