Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splat hash params for methods expecting kwargs #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
splat hash params for methods expecting kwargs
  • Loading branch information
Jakanapes committed Jul 8, 2021
commit 72e095608fb526c48f8b82171bd819a30f9bdb98
2 changes: 1 addition & 1 deletion lib/vertica/data_type.rb
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion lib/vertica/row_description.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/vertica/version.rb
Original file line number Diff line number Diff line change
@@ -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