Skip to content

Commit

Permalink
Merge pull request #260 from wpscanteam/fix-warning-ruby3.3
Browse files Browse the repository at this point in the history
Fixes various warnings in ruby 3.3
  • Loading branch information
erwanlr authored Sep 5, 2024
2 parents 456ae93 + 253e148 commit 4163c8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cms_scanner.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.add_dependency 'ethon', '>= 0.14', '< 0.17' # https://github.com/typhoeus/ethon/issues/185
s.add_dependency 'get_process_mem', '~> 0.2.5'
s.add_dependency 'nokogiri', '~> 1.16'
s.add_dependency 'opt_parse_validator', '~> 1.9.5'
s.add_dependency 'opt_parse_validator', '~> 1.10.0'
s.add_dependency 'public_suffix', '>= 4.0.3', '< 6.1'
s.add_dependency 'ruby-progressbar', '>= 1.10', '< 1.14'
s.add_dependency 'typhoeus', '>= 1.3', '< 1.5'
Expand All @@ -31,6 +31,11 @@ Gem::Specification.new do |s|

s.add_dependency 'sys-proctable', '>= 1.2.2', '< 1.4.0' # Required by get_process_mem for Windows OS.

# Fixes warning: ostruct was loaded from the standard library
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.3')
s.add_dependency('ostruct', '~> 0.6')
end

s.add_development_dependency 'bundler', '>= 1.6'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rspec', '~> 3.12.0'
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'simplecov' # More config is defined in ./.simplecov
require 'rspec/its'
require 'webmock/rspec'
require 'active_support'
require 'active_support/time'

# See http://betterspecs.org/
Expand Down

0 comments on commit 4163c8a

Please sign in to comment.