Rakefile in blacklight-spotlight-4.0.1 vs Rakefile in blacklight-spotlight-4.0.2

- old
+ new

@@ -76,14 +76,14 @@ require 'fileutils' template_path = File.expand_path(File.join(File.dirname(__FILE__), 'template.rb')) Dir.mktmpdir do |dir| Dir.chdir(dir) do - Bundler.with_clean_env do + Bundler.with_unbundled_env do version = "_#{Gem.loaded_specs['rails'].version}_" if Gem.loaded_specs['rails'] - Bundler.with_clean_env do + Bundler.with_unbundled_env do IO.popen({ 'SPOTLIGHT_GEM' => File.dirname(__FILE__) }, ['rails', version, 'new', 'internal', '--skip-spring', '-m', template_path] + [err: %i[child out]]) do |io| IO.copy_stream(io, $stderr) @@ -91,10 +91,10 @@ raise 'Failed to generate spotlight' if exit_status.nonzero? end end - Bundler.with_clean_env do + Bundler.with_unbundled_env do Dir.chdir('internal') do APP_ROOT = Dir.pwd SolrWrapper.wrap(port: '8983') do |solr| solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path('..', File.dirname(__FILE__)), 'solr', 'conf')) do system 'bin/rails s'