diff --git a/Gemfile b/Gemfile index 20601dc..ca598b7 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,7 @@ group :development, :test do gem 'rake', '~> 13.1' gem 'rubocop', '~> 1.60' gem 'rubocop-minitest', '~> 0.34.5' - gem 'rubocop-performance', '~> 1.12' + gem 'rubocop-performance', '~> 1.20' gem 'rubocop-rake', '~> 0.6.0' gem 'simplecov', '~> 0.22.0' gem 'vcr', '5.0' diff --git a/Gemfile.lock b/Gemfile.lock index e93387e..b0847e4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -70,9 +70,9 @@ GEM rubocop-minitest (0.34.5) rubocop (>= 1.39, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) - rubocop-performance (1.18.0) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.2) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) rubocop-rake (0.6.0) rubocop (~> 1.0) ruby-progressbar (1.13.0) @@ -104,7 +104,7 @@ DEPENDENCIES rake (~> 13.1) rubocop (~> 1.60) rubocop-minitest (~> 0.34.5) - rubocop-performance (~> 1.12) + rubocop-performance (~> 1.20) rubocop-rake (~> 0.6.0) simplecov (~> 0.22.0) vcr (= 5.0) diff --git a/lib/datacite/doi_response.rb b/lib/datacite/doi_response.rb index 1cd22fd..da5c89e 100644 --- a/lib/datacite/doi_response.rb +++ b/lib/datacite/doi_response.rb @@ -27,7 +27,7 @@ class DOIResponse def initialize(metadata) metadata[:data][:attributes].each do |(k, v)| self.class.attr_accessor(k) unless self.class.method_defined? k.to_sym - send("#{k}=", v) + send(:"#{k}=", v) end end end