mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
deploy and bins scripts now rubocop friendly
This commit is contained in:
parent
1f2c12d7da
commit
d25b5ef29e
6 changed files with 21 additions and 22 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue