Skip to content

Commit

Permalink
Fixes warnings when using Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr authored Sep 5, 2024
1 parent dbabca5 commit dd592be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wpscan.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit dd592be

Please sign in to comment.