From 5900b5c85065cad16f0f3cec40b7b35d62d9125b Mon Sep 17 00:00:00 2001 From: Matt Bearman Date: Thu, 12 Sep 2024 10:04:32 +0100 Subject: [PATCH] chore: Fix linting issues - add_runtime_dependency is deprecated in favour of add_dependency - params are not required for `super` when the method signature is unchanged --- apia.gemspec | 4 ++-- lib/apia/dsls/endpoint.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apia.gemspec b/apia.gemspec index a695cb5..8842c73 100644 --- a/apia.gemspec +++ b/apia.gemspec @@ -13,6 +13,6 @@ Gem::Specification.new do |s| s.authors = ['Adam Cooke'] s.email = ['adam@k.io'] s.licenses = ['MIT'] - s.add_runtime_dependency 'json' - s.add_runtime_dependency 'rack' + s.add_dependency 'json' + s.add_dependency 'rack' end diff --git a/lib/apia/dsls/endpoint.rb b/lib/apia/dsls/endpoint.rb index df939e3..f9a8d18 100644 --- a/lib/apia/dsls/endpoint.rb +++ b/lib/apia/dsls/endpoint.rb @@ -69,7 +69,7 @@ def field(name, *args, type: nil, **options, &block) field :pagination, type: PaginationObject end - super(name, *args, type: type, **options, &block) + super end def fields(fieldset)