Skip to content

Commit ccb5aca

Browse files
Fix deprecation warning with latest jruby/bundler (#17766) (#17767)
This commit updates the pluginmanager to not use a deprecated argument. See ruby/rubygems@d1963bf (cherry picked from commit 443e527) Co-authored-by: Cas Donoghue <[email protected]>
1 parent b6f4ad2 commit ccb5aca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pluginmanager/bundler/logstash_injector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def inject(gemfile_path, lockfile_path, dependencies)
9696
definition.remove_platform(specific_platform)
9797
end
9898
definition.add_platform(Gem::Platform.new('java'))
99-
definition.lock(lockfile_path)
99+
definition.lock
100100
gemfile.save
101101
rescue => e
102102
# the error should be handled elsewhere but we need to get the original file if we dont

lib/pluginmanager/bundler/logstash_uninstall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def uninstall!(gems_to_remove)
6262
definition = builder.to_definition(lockfile_path, {})
6363

6464
# lock the definition and save our modified gemfile
65-
definition.lock(lockfile_path)
65+
definition.lock
6666
gemfile.save
6767

6868
gems_to_remove.each do |gem_name|

0 commit comments

Comments
 (0)