diff --git a/lib/rom/yesql/gateway.rb b/lib/rom/yesql/gateway.rb index 0d903e0..7188e4e 100644 --- a/lib/rom/yesql/gateway.rb +++ b/lib/rom/yesql/gateway.rb @@ -71,7 +71,7 @@ class Gateway < ROM::Gateway # @option :query_proc [Proc] # # @api public - def initialize(*) + def initialize(*, **) super @connection = Sequel.connect(uri, options) @queries = @queries.merge(load_queries(path)).freeze diff --git a/rom-yesql.gemspec b/rom-yesql.gemspec index ecd2417..3185ef3 100644 --- a/rom-yesql.gemspec +++ b/rom-yesql.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency "rom", "~>5" - spec.add_runtime_dependency "dry-core", "~>0.4" + spec.add_runtime_dependency "dry-core", "~>1.0" spec.add_runtime_dependency "sequel", "~>5" spec.add_development_dependency "bundler" spec.add_development_dependency "rake", "~> 10.0" diff --git a/spec/integration/adapter_spec.rb b/spec/integration/adapter_spec.rb index 1f78ba3..c72adac 100644 --- a/spec/integration/adapter_spec.rb +++ b/spec/integration/adapter_spec.rb @@ -8,7 +8,7 @@ let(:container) { ROM.container(configuration) } let!(:configuration) do - ROM::Configuration.new(:yesql, [uri, path: path, queries: {reports: report_queries}]) + ROM::Configuration.new(:yesql, *[uri, path: path, queries: {reports: report_queries}]) end let(:report_queries) { {all_users: "SELECT * FROM users ORDER BY %{order}"} }