From dd592be6ce49057d6ee5aa9d68204a25a9b99fd5 Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 16:58:07 +0200 Subject: [PATCH] Fixes warnings when using Ruby 3.3 --- wpscan.gemspec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wpscan.gemspec b/wpscan.gemspec index 1b9cf0563..994a09204 100644 --- a/wpscan.gemspec +++ b/wpscan.gemspec @@ -22,6 +22,14 @@ Gem::Specification.new do |s| s.add_dependency 'cms_scanner', '~> 0.14.3' + # Fixes + # - warning: ostruct was loaded from the standard library + # - warning: fiddle was loaded from the standard library + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.3') + s.add_dependency('ostruct', '~> 0.6') + s.add_dependency('fiddle', '~> 1.1') + end + s.add_development_dependency 'bundler', '>= 1.6' s.add_development_dependency 'memory_profiler', '~> 1.0.0' s.add_development_dependency 'rake', '~> 13.0'