deploy and bins scripts now rubocop friendly

This commit is contained in:
Priit Tamboom 2014-09-25 13:45:05 +03:00
parent 1f2c12d7da
commit d25b5ef29e
6 changed files with 21 additions and 22 deletions

View file

@ -2,6 +2,7 @@
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError
puts 'no spring'
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'

View file

@ -2,6 +2,7 @@
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError
puts 'no spring'
end
require_relative '../config/boot'
require 'rake'

View file

@ -7,9 +7,10 @@ unless defined?(Spring)
require 'rubygems'
require 'bundler'
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
if match
ENV['GEM_PATH'] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
ENV['GEM_HOME'] = ''
ENV['GEM_HOME'] = nil
Gem.paths = ENV
gem 'spring', match[1]