From 44a8f43a547c054c62ee2fea07d2e8d06f5c85ec Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Thu, 21 Dec 2023 11:48:11 -0700 Subject: [PATCH] allow compatibility with Ruby 2.6 --- .rubocop.yml | 2 +- bundler-multilock.gemspec | 2 +- lib/bundler/multilock/ext/plugin/dsl.rb | 2 +- lib/bundler/multilock/ext/source.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3e9e3af..11606f3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,7 +7,7 @@ require: - rubocop-rake AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 2.6 Naming/FileName: Exclude: diff --git a/bundler-multilock.gemspec b/bundler-multilock.gemspec index cdf70db..ba4e7a4 100644 --- a/bundler-multilock.gemspec +++ b/bundler-multilock.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.files = Dir.glob("lib/**/*") + %w[plugins.rb] spec.require_paths = ["lib"] - spec.required_ruby_version = ">= 2.7" + spec.required_ruby_version = ">= 2.6" spec.add_dependency "bundler", ">= 2.4.19", "< 2.6" diff --git a/lib/bundler/multilock/ext/plugin/dsl.rb b/lib/bundler/multilock/ext/plugin/dsl.rb index 36a2afd..4c8eecb 100644 --- a/lib/bundler/multilock/ext/plugin/dsl.rb +++ b/lib/bundler/multilock/ext/plugin/dsl.rb @@ -7,7 +7,7 @@ module PluginExt module DSL ::Bundler::Plugin::DSL.include(self) - def lockfile(...) + def lockfile(*, **) # pass end end diff --git a/lib/bundler/multilock/ext/source.rb b/lib/bundler/multilock/ext/source.rb index 845b30b..2df72fa 100644 --- a/lib/bundler/multilock/ext/source.rb +++ b/lib/bundler/multilock/ext/source.rb @@ -6,7 +6,7 @@ module Ext module Source ::Bundler::Source.prepend(self) - def print_using_message(...) + def print_using_message(*) return if Bundler.settings[:suppress_install_using_messages] super