From d25e1a97627c968e78a2f3b08acdf5d067948098 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Fri, 17 Jun 2022 12:46:37 +0200 Subject: [PATCH] ruby-2.7 needs ** for key-value-pair-arguments --- lib/knot/protocol.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/knot/protocol.rb b/lib/knot/protocol.rb index 903697b..bdb7c02 100644 --- a/lib/knot/protocol.rb +++ b/lib/knot/protocol.rb @@ -179,10 +179,10 @@ class Knot::Protocol def zone( zone) @zones[zone.to_s.to_sym] end - def conf_set( **opts) call opts.update( command: 'conf-set') end - def conf_unset( **opts) call opts.update( command: 'conf-set') end + def conf_set( **opts) call **opts.update( command: 'conf-set') end + def conf_unset( **opts) call **opts.update( command: 'conf-set') end - def zone_set( **opts) call opts.update( command: 'zone-set') end - def zone_unset( **opts) call opts.update( command: 'zone-unset') end - def zone_get( **opts) call opts.update( command: 'zone-get') end + def zone_set( **opts) call **opts.update( command: 'zone-set') end + def zone_unset( **opts) call **opts.update( command: 'zone-unset') end + def zone_get( **opts) call **opts.update( command: 'zone-get') end end