Skip to content

Commit

Permalink
Make version checker optional with env variable WEBMOCK_CHECK_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasgd committed Nov 11, 2024
1 parent 9ff63ac commit ce33a42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/webmock/util/version_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def initialize(library_name, library_version, min_patch_level, max_minor_version
end

def check_version!
return unless ENV['WEBMOCK_CHECK_VERSION'] == "1"
warn_about_too_low if too_low?
warn_about_too_high if too_high?
warn_about_unsupported_version if unsupported_version?
Expand Down

0 comments on commit ce33a42

Please sign in to comment.