mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 09:46:03 -04:00
parent
5f3f18c9b0
commit
6d08a7c1cd
3 changed files with 4 additions and 4 deletions
|
@ -285,7 +285,7 @@ def assemblyDeps = [downloadAndInstallJRuby, assemble] + subprojects.collect {
|
||||||
it.tasks.findByName("assemble")
|
it.tasks.findByName("assemble")
|
||||||
}
|
}
|
||||||
|
|
||||||
def bundlerVersion = "2.3.18"
|
def bundlerVersion = "~> 2"
|
||||||
|
|
||||||
tasks.register("installBundler") {
|
tasks.register("installBundler") {
|
||||||
dependsOn assemblyDeps
|
dependsOn assemblyDeps
|
||||||
|
|
|
@ -163,7 +163,7 @@ module LogStash
|
||||||
begin
|
begin
|
||||||
execute_bundler(options)
|
execute_bundler(options)
|
||||||
break
|
break
|
||||||
rescue ::Bundler::VersionConflict => e
|
rescue ::Bundler::SolveFailure => e
|
||||||
$stderr.puts("Plugin version conflict, aborting")
|
$stderr.puts("Plugin version conflict, aborting")
|
||||||
raise(e)
|
raise(e)
|
||||||
rescue ::Bundler::GemNotFound => e
|
rescue ::Bundler::GemNotFound => e
|
||||||
|
|
|
@ -88,8 +88,8 @@ describe LogStash::Bundler do
|
||||||
|
|
||||||
context 'abort with an exception' do
|
context 'abort with an exception' do
|
||||||
it 'gem conflict' do
|
it 'gem conflict' do
|
||||||
allow(::Bundler::CLI).to receive(:start).with(bundler_args) { raise ::Bundler::VersionConflict.new('conflict') }
|
allow(::Bundler::CLI).to receive(:start).with(bundler_args) { raise ::Bundler::SolveFailure.new('conflict') }
|
||||||
expect { subject }.to raise_error(::Bundler::VersionConflict)
|
expect { subject }.to raise_error(::Bundler::SolveFailure)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'gem is not found' do
|
it 'gem is not found' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue