mirror of
https://github.com/elastic/logstash.git
synced 2025-04-20 12:47:23 -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")
|
||||
}
|
||||
|
||||
def bundlerVersion = "2.3.18"
|
||||
def bundlerVersion = "~> 2"
|
||||
|
||||
tasks.register("installBundler") {
|
||||
dependsOn assemblyDeps
|
||||
|
|
|
@ -163,7 +163,7 @@ module LogStash
|
|||
begin
|
||||
execute_bundler(options)
|
||||
break
|
||||
rescue ::Bundler::VersionConflict => e
|
||||
rescue ::Bundler::SolveFailure => e
|
||||
$stderr.puts("Plugin version conflict, aborting")
|
||||
raise(e)
|
||||
rescue ::Bundler::GemNotFound => e
|
||||
|
|
|
@ -88,8 +88,8 @@ describe LogStash::Bundler do
|
|||
|
||||
context 'abort with an exception' do
|
||||
it 'gem conflict' do
|
||||
allow(::Bundler::CLI).to receive(:start).with(bundler_args) { raise ::Bundler::VersionConflict.new('conflict') }
|
||||
expect { subject }.to raise_error(::Bundler::VersionConflict)
|
||||
allow(::Bundler::CLI).to receive(:start).with(bundler_args) { raise ::Bundler::SolveFailure.new('conflict') }
|
||||
expect { subject }.to raise_error(::Bundler::SolveFailure)
|
||||
end
|
||||
|
||||
it 'gem is not found' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue