diff --git a/Gemfile b/Gemfile index 5f9e315..8a23cbd 100644 --- a/Gemfile +++ b/Gemfile @@ -15,9 +15,9 @@ gemspec group :development, :test do gem 'byebug' - gem 'rspec', '~> 3.7' - gem 'rubocop', '1.61.0' - gem 'rubocop-rspec', '3.0.3' + gem 'rspec', '~> 3.13' + gem 'rubocop', '1.81.6' + gem 'rubocop-rspec', '3.7.0' gem 'simplecov', '~> 0.16' end diff --git a/lib/ja2r/element.rb b/lib/ja2r/element.rb index 74208a3..b54ca8d 100644 --- a/lib/ja2r/element.rb +++ b/lib/ja2r/element.rb @@ -50,7 +50,7 @@ def respond_to_missing?(symbol, include_all = false) return true if attributes&.key?(symbol) return true if relationships&.key?(symbol) - safe_traverse? ? true : super + safe_traverse? || super end def safe_traverse? diff --git a/spec/.rubocop.yml b/spec/.rubocop.yml index a243e0e..7cbc6e4 100644 --- a/spec/.rubocop.yml +++ b/spec/.rubocop.yml @@ -1,4 +1,5 @@ -require: rubocop-rspec +plugins: + - rubocop-rspec inherit_from: ../.rubocop.yml Metrics/BlockLength: