Skip to content

Commit

Permalink
Exclude em-http-request on Ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 committed Sep 22, 2024
1 parent f4bfa73 commit 34d1628
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 341 deletions.
2 changes: 2 additions & 0 deletions lib/webmock/http_lib_adapters/em_http_request_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

return if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4.0') && Gem.loaded_specs['em-http-request'].version <= Gem::Version.new('1.1.7')

begin
require 'em-http-request'
rescue LoadError
Expand Down
Loading

0 comments on commit 34d1628

Please sign in to comment.