From 72e095608fb526c48f8b82171bd819a30f9bdb98 Mon Sep 17 00:00:00 2001 From: Patrick Sharp Date: Thu, 8 Jul 2021 09:56:05 -0500 Subject: [PATCH] splat hash params for methods expecting kwargs --- lib/vertica/data_type.rb | 2 +- lib/vertica/row_description.rb | 2 +- lib/vertica/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vertica/data_type.rb b/lib/vertica/data_type.rb index 7e94a24..fe90c69 100644 --- a/lib/vertica/data_type.rb +++ b/lib/vertica/data_type.rb @@ -42,7 +42,7 @@ def build(oid: nil, **kwargs) raise Vertica::Error::UnknownTypeError, "Unknown type OID: #{unknown_oid}" end - new(args.merge(kwargs)) + new(**args.merge(kwargs)) end # The name of the default deserializer proc. diff --git a/lib/vertica/row_description.rb b/lib/vertica/row_description.rb index 63c7777..a563573 100644 --- a/lib/vertica/row_description.rb +++ b/lib/vertica/row_description.rb @@ -15,7 +15,7 @@ class Vertica::RowDescription def self.build(columns) case columns when Vertica::Protocol::RowDescription - new(columns.fields.map { |fd| Vertica::Column.build(fd) }) + new(columns.fields.map { |fd| Vertica::Column.build(**fd) }) when Vertica::RowDescription columns when Array diff --git a/lib/vertica/version.rb b/lib/vertica/version.rb index 8753d20..93b116f 100644 --- a/lib/vertica/version.rb +++ b/lib/vertica/version.rb @@ -1,5 +1,5 @@ module Vertica # The version of the package. We adhere to semantic versioning. # To release a new version, update this constant, commit to master, and run `rake release` - VERSION = "1.0.3" + VERSION = "1.0.4" end