lib/weneedfeed/faraday_response_middleware.rb in weneedfeed-0.11.0 vs lib/weneedfeed/faraday_response_middleware.rb in weneedfeed-0.12.0
- old
+ new
@@ -1,10 +1,9 @@
# frozen_string_literal: true
-# For faraday_middleware/response_middleware.
+# To load ActiveSupport::IsolatedExecutionState on activesupport 7.
# https://github.com/r7kamura/weneedfeed/issues/19
require 'active_support'
-require 'active_support/isolated_execution_state' if ActiveSupport.gem_version >= Gem::Version.new('7')
require 'active_support/core_ext/array/conversions'
require 'active_support/core_ext/hash/conversions'
require 'faraday'
require 'faraday_middleware/response_middleware'