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

@ -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]