Просмотр исходного кода

Maintenance: Update dependency rubocop to v1.61.0

renovatebot 1 год назад
Родитель
Сommit
c14c5774f7
2 измененных файлов с 7 добавлено и 5 удалено
  1. 5 3
      Gemfile.lock
  2. 2 2
      lib/ldap.rb

+ 5 - 3
Gemfile.lock

@@ -432,6 +432,7 @@ GEM
       racc
     pg (1.5.5)
     power_assert (2.0.3)
+    prism (0.24.0)
     promise.rb (0.7.4)
     pry (0.14.2)
       coderay (~> 1.1)
@@ -538,7 +539,7 @@ GEM
       rspec-core (> 3.3)
     rspec-support (3.12.1)
     rszr (1.5.0)
-    rubocop (1.60.2)
+    rubocop (1.61.0)
       json (~> 2.3)
       language_server-protocol (>= 3.17.0)
       parallel (~> 1.10)
@@ -549,8 +550,9 @@ GEM
       rubocop-ast (>= 1.30.0, < 2.0)
       ruby-progressbar (~> 1.7)
       unicode-display_width (>= 2.4.0, < 3.0)
-    rubocop-ast (1.30.0)
-      parser (>= 3.2.1.0)
+    rubocop-ast (1.31.0)
+      parser (>= 3.3.0.4)
+      prism (>= 0.24.0)
     rubocop-capybara (2.20.0)
       rubocop (~> 1.41)
     rubocop-factory_bot (2.25.1)

+ 2 - 2
lib/ldap.rb

@@ -58,7 +58,7 @@ class Ldap
   #  #=> <Net::LDAP::Entry...>
   #
   # @return [true] Returns always true
-  def search(filter, base: nil, scope: nil, attributes: nil, &block)
+  def search(filter, base: nil, scope: nil, attributes: nil, &)
 
     base  ||= base_dn
     scope ||= Net::LDAP::SearchScope_WholeSubtree
@@ -69,7 +69,7 @@ class Ldap
       scope:         scope,
       attributes:    attributes,
       return_result: false, # improves performance
-      &block
+      &
     )
   end